Skip to content

Mark test_kpoint_isdf_symmetries() as flaky#1401

Open
mhucka wants to merge 2 commits into
quantumlib:mainfrom
mhucka:mark-flaky-test
Open

Mark test_kpoint_isdf_symmetries() as flaky#1401
mhucka wants to merge 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 Things to do before the next release labels Jul 9, 2026
@mhucka mhucka requested a review from arettig July 9, 2026 04:50
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 priority/before-1.7.2 Things to do before the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant