Skip to content

Move network-dependent PDBStatus and AtomCache tests to integration tests - #1178

Merged
josemduarte merged 1 commit into
biojava:masterfrom
josemduarte:jd/issue-1146
Dec 5, 2026
Merged

josemduarte merged 1 commit into
biojava:masterfrom
josemduarte:jd/issue-1146

Conversation

@josemduarte

Copy link
Copy Markdown
Contributor

Part of #1146.

PDBStatusTest and most of AtomCacheTest in biojava-structure reach RCSB, so an intermittent 502 from data.rcsb.org turns unrelated pull requests red. They now run in biojava-integrationtest, the nightly job, not on every PR.

  • PDBStatusTest (3 tests): moved whole. Every test queries the holdings-status endpoint.
  • AtomCacheTest (10 tests): the 8 that download structures, SCOP files or chemical components moved to org.biojava.nbio.structure.test.io.AtomCacheTest. The 2 offline tilde-path tests stay in biojava-structure.
  • GlobalsHelper and the atp.cif.gz fixture moved with them, since nothing else uses them.

The issue proposes stubbing the status lookup instead. That would take only one of several network calls out of these tests: AtomCacheTest also downloads mmCIF files, SCOP and chemical components. These tests check those downloads, so the integration module is where they belong. The issue's survey of other network-dependent unit tests, and the possible build-time guard, are not part of this PR.

Tested locally: 2/2 in biojava-structure, 8/8 and 3/3 in biojava-integrationtest.

🤖 Generated with Claude Code

…ests (biojava#1146)

PDBStatusTest queries data.rcsb.org, and all but two AtomCacheTest tests
download structures, SCOP or chemical components, so an RCSB hiccup failed
unrelated pull requests. They now run in biojava-integrationtest (nightly),
with GlobalsHelper and the atp.cif.gz fixture, which only they use. The two
offline path tests stay in biojava-structure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
josemduarte added a commit that referenced this pull request Dec 5, 2026
None of the workflows cached ~/.m2, so every job in every run downloaded
all dependencies from Maven Central. With five PR jobs per push that
invites rate limiting: run 47481362706 on PR #1178 failed after 45 s,
before any test ran, when Central answered 429 Too Many Requests while
resolving org.sonatype.oss:oss-parent:pom:9.

Add cache: 'maven' to every actions/setup-java step (PR build, master
build, nightly integration tests), keyed by setup-java on the pom.xml
hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josemduarte
josemduarte merged commit d710118 into biojava:master Dec 5, 2026
4 of 5 checks passed
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.

1 participant