Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce parallelism for qpy tests (backport #13735) #13741

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 27, 2025

Summary

In #13506 the QPY backwards compatibility tests are failing because the image is running out of disk space and github actions is killing the runner. The qpy files themselves should be fairly small and will be dwarfed by the virtual environments created to install old versions of qiskit to generate old QPY payloads. We use GNU parallel to speed up the testing, however by doing this we end up having multiple venvs at once which increases the disk space usage. This commit attempts to reduce the pressure on the disk space usage by decreasing the parallelism from N cpus (which is currently 4 for linux runners according to [1]) to 2. This will increase the runtime for this job but if we have insufficient disk space on the image to generate new qpy files there isn't really a choice.

Details and comments

[1] https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories


This is an automatic backport of pull request #13735 done by Mergify.

In #13506 the QPY backwards compatibility tests are failing because the
image is running out of disk space and github actions is killing the
runner. The qpy files themselves should be fairly small and will be
dwarfed by the virtual environments created to install old versions of
qiskit to generate old QPY payloads. We use GNU parallel to speed up the
testing, however by doing this we end up having multiple venvs at once
which increases the disk space usage. This commit attempts to reduce the
pressure on the disk space usage by decreasing the parallelism from N
cpus (which is currently 4 for linux runners according to [1]) to 2.
This will increase the runtime for this job but if we have insufficient
disk space on the image to generate new qpy files there isn't really
a choice.

[1] https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

(cherry picked from commit b718f06)
@mergify mergify bot requested a review from a team as a code owner January 27, 2025 14:04
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core
  • @mtreinish
  • @nkanazawa1989

@github-actions github-actions bot added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog labels Jan 27, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12990740537

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.02%) to 88.932%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/two_qubit_decompose.rs 1 91.96%
crates/qasm2/src/lex.rs 3 91.98%
Totals Coverage Status
Change from base Build 12952946088: 0.02%
Covered Lines: 79170
Relevant Lines: 89023

💛 - Coveralls

@1ucian0 1ucian0 enabled auto-merge January 27, 2025 14:59
@1ucian0 1ucian0 added this pull request to the merge queue Jan 27, 2025
Merged via the queue into stable/1.3 with commit 087e24b Jan 27, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants