Repository navigation
Move network-dependent PDBStatus and AtomCache tests to integration tests - #1178
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1146.
PDBStatusTestand most ofAtomCacheTestinbiojava-structurereach RCSB, so an intermittent 502 from data.rcsb.org turns unrelated pull requests red. They now run inbiojava-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 toorg.biojava.nbio.structure.test.io.AtomCacheTest. The 2 offline tilde-path tests stay inbiojava-structure.GlobalsHelperand theatp.cif.gzfixture 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:
AtomCacheTestalso 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 inbiojava-integrationtest.🤖 Generated with Claude Code