Skip to content

Fix exact floating-point comparison causing flaky test#9021

Merged
mergify[bot] merged 1 commit into
Qiskit:mainfrom
jakelishman:fix-flaky-aer-expectation-test
Oct 28, 2022
Merged

Fix exact floating-point comparison causing flaky test#9021
mergify[bot] merged 1 commit into
Qiskit:mainfrom
jakelishman:fix-flaky-aer-expectation-test

Conversation

@jakelishman
Copy link
Copy Markdown
Member

Summary

This triggered semi-reliably on Windows with all optional packages installed, with the output different by 2 ULP. It's a floating-point equality check, so what we care about asserting is approximate equality, not exact.

Details and comments

Turned up by #8967.

This triggered semi-reliably on Windows with all optional packages
installed, with the output different by 2 ULP.  It's a floating-point
equality check, so what we care about asserting is approximate equality,
not exact.
@jakelishman jakelishman added type: qa Issues and PRs that relate to testing and code quality stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. Changelog: None Do not include in the GitHub Release changelog. labels Oct 28, 2022
@qiskit-bot
Copy link
Copy Markdown
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 the following people are requested to review this:

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 3345743990

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 84.489%

Files with Coverage Reduction New Missed Lines %
qiskit/extensions/quantum_initializer/squ.py 2 79.78%
Totals Coverage Status
Change from base Build 3345598975: 0.2%
Covered Lines: 62173
Relevant Lines: 73587

💛 - Coveralls

@mergify mergify Bot merged commit 7987742 into Qiskit:main Oct 28, 2022
mergify Bot pushed a commit that referenced this pull request Oct 28, 2022
This triggered semi-reliably on Windows with all optional packages
installed, with the output different by 2 ULP.  It's a floating-point
equality check, so what we care about asserting is approximate equality,
not exact.

(cherry picked from commit 7987742)
mergify Bot added a commit that referenced this pull request Oct 28, 2022
This triggered semi-reliably on Windows with all optional packages
installed, with the output different by 2 ULP.  It's a floating-point
equality check, so what we care about asserting is approximate equality,
not exact.

(cherry picked from commit 7987742)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
@jakelishman jakelishman deleted the fix-flaky-aer-expectation-test branch October 30, 2022 23:41
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 the GitHub Release changelog. stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. 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