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

Default init plugin was not properly raising when called with an invalid optimization level #12170

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Apr 11, 2024

While @Randl was working on extending types in the qiskit.transpile module, he found a bug in which the default init plugin was not properly raising when called with an invalid optimization level. Thanks @Randl !

---

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>
@1ucian0 1ucian0 added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: Bugfix Include in the "Fixed" section of the changelog affects extended support This issue (also) affects extended support labels Apr 11, 2024
@1ucian0 1ucian0 added this to the 1.0.3 milestone Apr 11, 2024
@1ucian0 1ucian0 requested a review from a team as a code owner April 11, 2024 08:03
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Apr 11, 2024

Pull Request Test Coverage Report for Build 8661412596

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.003%) to 89.365%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 94.03%
crates/qasm2/src/lex.rs 7 92.37%
Totals Coverage Status
Change from base Build 8653934653: 0.003%
Covered Lines: 60171
Relevant Lines: 67332

💛 - Coveralls

ElePT
ElePT previously approved these changes Apr 11, 2024
Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

I think you forgot the bugfix release note - you've tagged it, but not added one.

@1ucian0
Copy link
Member Author

1ucian0 commented Apr 12, 2024

I always thought that changelog was complete while reno is more "user facing". The bug is probably very hard to trigger by accident.

Adding it in 2411f34 .

Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

LGTM, this was a good catch.

@mtreinish mtreinish added this pull request to the merge queue Apr 12, 2024
Merged via the queue into Qiskit:main with commit e0be97c Apr 12, 2024
12 checks passed
mergify bot pushed a commit that referenced this pull request Apr 12, 2024
…valid optimization level (#12170)

* Raise instead of return.

---

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>

* link

* reno

---------

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>
(cherry picked from commit e0be97c)
github-merge-queue bot pushed a commit that referenced this pull request Apr 13, 2024
…valid optimization level (#12170) (#12174)

* Raise instead of return.

---

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>

* link

* reno

---------

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>
(cherry picked from commit e0be97c)

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
@mtreinish
Copy link
Member

@Mergifyio backport stable/0.46

Copy link
Contributor

mergify bot commented Apr 13, 2024

backport stable/0.46

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Apr 13, 2024
…valid optimization level (#12170)

* Raise instead of return.

---

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>

* link

* reno

---------

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>
(cherry picked from commit e0be97c)
github-merge-queue bot pushed a commit that referenced this pull request Apr 14, 2024
…valid optimization level (#12170) (#12175)

* Raise instead of return.

---

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>

* link

* reno

---------

Co-authored-by: Evgenii Zheltonozhskii <zheltonozhskiy@gmail.com>
(cherry picked from commit e0be97c)

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects extended support This issue (also) affects extended support Changelog: Bugfix Include in the "Fixed" section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants