Skip to content

Make the PubChem compound annotation test robust to outages - #1111

Merged
Zethson merged 1 commit into
mainfrom
fix/pubchem-flaky-test
Sep 23, 2026
Merged

Zethson merged 1 commit into
mainfrom
fix/pubchem-flaky-test

Conversation

@Zethson

@Zethson Zethson commented Sep 23, 2026

Copy link
Copy Markdown
Member

Closes #1108.
The compound annotation test now retries when PubChem returns empty results (which pubchempy surfaces as a no-match ValueError), and skips with the reason instead of silently passing after the last retry, so transient PubChem outages no longer fail CI.

pubchempy converts PubChem 404s into empty results, so a transient outage
surfaces as a "no matches" ValueError from annotate_compounds, which the
retry loop did not catch (daily integration run, #1108).
Retry on ValueError too, annotate a copy per attempt, and skip with the
reason after the last retry instead of silently passing.
@Zethson
Zethson merged commit d8820e3 into main Sep 23, 2026
21 of 22 checks passed
@Zethson
Zethson deleted the fix/pubchem-flaky-test branch September 23, 2026 13:11
@codecov-commenter

codecov-commenter commented Sep 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.12%. Comparing base (c7e0f02) to head (7ec0170).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1111      +/-   ##
==========================================
+ Coverage   79.98%   80.12%   +0.14%     
==========================================
  Files          55       55              
  Lines        7518     7571      +53     
==========================================
+ Hits         6013     6066      +53     
  Misses       1505     1505              

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integration Testing CI Test Failure on python 3.12

2 participants