Skip to content

Mark test_kpoint_isdf_symmetries() as flaky#1401

Merged
arettig merged 2 commits into
quantumlib:mainfrom
mhucka:mark-flaky-test
Jul 9, 2026
Merged

Mark test_kpoint_isdf_symmetries() as flaky#1401
arettig merged 2 commits into
quantumlib:mainfrom
mhucka:mark-flaky-test

Conversation

@mhucka

@mhucka mhucka commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

This function in file src/openfermion/resource_estimates/pbc/thc/factorizations/isdf_test.py occasionally fails to converge. This PR marks it as flaky and tells pytest to retry it once, so that people don't waste time chasing ghosts.

This function occasionally fails to converge.

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds a flaky decorator to the test_kpoint_isdf_symmetries test. The review feedback correctly points out that the repository uses the pytest-retry framework rather than pytest-rerunfailures, and suggests correcting the decorator parameter from reruns=1 to retries=1.

Comment thread src/openfermion/resource_estimates/pbc/thc/factorizations/isdf_test.py Outdated
…_test.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@mhucka mhucka added area/health Involves code and/or project health priority/before-1.7.2 labels Jul 9, 2026
@mhucka
mhucka requested a review from arettig July 9, 2026 04:50

@arettig arettig left a comment

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.

LGTM

@arettig
arettig added this pull request to the merge queue Jul 9, 2026
Merged via the queue into quantumlib:main with commit b126b88 Jul 9, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/health Involves code and/or project health

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants