Skip to content

Add a memory monitor to the nightly CI#1892

Merged
mhucka merged 6 commits into
quantumlib:mainfrom
mhucka:change-nightly-pytest
Jul 1, 2026
Merged

Add a memory monitor to the nightly CI#1892
mhucka merged 6 commits into
quantumlib:mainfrom
mhucka:change-nightly-pytest

Conversation

@mhucka

@mhucka mhucka commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Add a continuous memory & disk space monitor process in the background to report free memory & disk space every 10 seconds.

mhucka added 4 commits June 30, 2026 02:21
Also provide the ability to change the value when running the workflow
manually, and print additional debugging information.
This is to reduce the number of possible problems.
@mhucka mhucka changed the title Switch to using "-n logical" with pytest by default Add a memory printing process to the nightly CI Jul 1, 2026
@mhucka mhucka marked this pull request as ready for review July 1, 2026 04:32
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@mhucka mhucka changed the title Add a memory printing process to the nightly CI Add a memory monitor to the nightly CI Jul 1, 2026

@fdmalone fdmalone left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure of the full context but would it be better to add the memory monitoring before making the other changes in order to measure their effect? Feel free to disregard though.

@mhucka

mhucka commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

not sure of the full context but would it be better to add the memory monitoring before making the other changes in order to measure their effect? Feel free to disregard though.

Yeah, you're right. I'll remove the extra changes before merging it.

@mhucka mhucka enabled auto-merge (squash) July 1, 2026 17:43
env:
# Default value for "-n" argument to pytest with pytest-xdist plugin.
pytest-n: ${{inputs.processes || 'logical'}}
pytest-n: ${{inputs.processes || 'auto'}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sets environment variable named pytest-n which cannot be accessed from a shell. Consider renaming to pytest_n or just use the context expression as is in the uv run command below.

@mhucka mhucka Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's referenced using ${{env.pytest-n}}.

It does seem to work as-is. (Also, note that this env variable is not part of this PR, although the value is being changed.)

The notebook runs seem to be failing – let's try reducing the number of processes.
@mhucka mhucka merged commit 64061ac into quantumlib:main Jul 1, 2026
16 checks passed
@mhucka mhucka deleted the change-nightly-pytest branch July 1, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants