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

Allow overriding Rust toolchain in tox runs #12827

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

jakelishman
Copy link
Member

Summary

It can be convenient to use different versions of the Rust toolchain for various tox runs. This can already be done externally to tox by a stateful rustup override set <x> followed by clearing the override after the tox run, but allowing the environment variable to pass through lets it be localised to just a single run.

Details and comments

It can be convenient to use different versions of the Rust toolchain for
various `tox` runs.  This can already be done externally to `tox`
by a stateful `rustup override set <x>` followed by clearing the
override after the tox run, but allowing the environment variable to
pass through lets it be localised to just a single run.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality Changelog: None Do not include in changelog labels Jul 26, 2024
@jakelishman jakelishman requested a review from a team as a code owner July 26, 2024 16:25
@qiskit-bot
Copy link
Collaborator

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

  • @Qiskit/terra-core

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10114481476

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 14 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.02%) to 89.722%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 94.02%
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 2 88.39%
crates/qasm2/src/lex.rs 5 92.11%
crates/qasm2/src/parse.rs 6 97.61%
Totals Coverage Status
Change from base Build 10111859581: -0.02%
Covered Lines: 66682
Relevant Lines: 74321

💛 - Coveralls

@mtreinish mtreinish added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Jul 26, 2024
@jakelishman jakelishman added this pull request to the merge queue Jul 26, 2024
Merged via the queue into Qiskit:main with commit b362df0 Jul 26, 2024
15 checks passed
mergify bot pushed a commit that referenced this pull request Jul 26, 2024
It can be convenient to use different versions of the Rust toolchain for
various `tox` runs.  This can already be done externally to `tox`
by a stateful `rustup override set <x>` followed by clearing the
override after the tox run, but allowing the environment variable to
pass through lets it be localised to just a single run.

(cherry picked from commit b362df0)
@jakelishman jakelishman deleted the allow-rust-override branch July 26, 2024 21:56
github-merge-queue bot pushed a commit that referenced this pull request Jul 26, 2024
It can be convenient to use different versions of the Rust toolchain for
various `tox` runs.  This can already be done externally to `tox`
by a stateful `rustup override set <x>` followed by clearing the
override after the tox run, but allowing the environment variable to
pass through lets it be localised to just a single run.

(cherry picked from commit b362df0)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Procatv pushed a commit to Procatv/qiskit-terra-catherines that referenced this pull request Aug 1, 2024
It can be convenient to use different versions of the Rust toolchain for
various `tox` runs.  This can already be done externally to `tox`
by a stateful `rustup override set <x>` followed by clearing the
override after the tox run, but allowing the environment variable to
pass through lets it be localised to just a single run.
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 stable backport potential The bug might be minimal and/or import enough to be port to stable 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