Repository navigation
docs: charter step 53, network-dependent tests blur CI's red signal - #415
Merged
Merged
Conversation
internal/lorepackage's TestRegistry_SyncIntegration clones https://github.com/NobleFactor/devlore-registry.git from CI runners. On PR #414 the macOS runner failed DNS -- "Could not resolve host: github.com" -- and produced a red check that had nothing to do with the change under review, 30 seconds after the clone started. It matters more than a single flake because this repository currently runs on a known-failure baseline: the Windows leg is expected to fail at exactly 28, verified name by name, and a 29th name is a real regression. That discipline works only while a failure is attributable. A red check that sometimes means "the network was unwell" makes "is this red mine?" a judgment call on every PR, and judgment calls at that frequency decay into reflex. THE SOLUTION IS DELIBERATELY NOT CHOSEN. The charter requires three discoveries first: enumerate every network-reaching test by BEHAVIOR rather than by name (a https:// grep is a proxy -- it hits URL-parsing tests that never fetch, and misses anything reaching the network through a helper or provider); measure how often this actually fires from CI history rather than impression; and establish whether the registry's contract needs a real remote, any git remote, or a fake transport. Six candidate directions are recorded with the residual each one buys -- local fixture repo, record/replay, gated integration tag, skip-on-unreachable, retry, scheduled job -- and the charter says explicitly that the answer may be none of them. Worth starting from: cmd/devlore-index/main_test.go already builds a LOCAL devlore-registry fixture and chdirs away so a real sibling checkout cannot leak in. The precedent exists in-repo and should be understood before anything new is invented. Assisted-by: Claude Signed-off-by: David Noble <[email protected]>
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.
Summary
Charters step 53.
internal/lorepackage'sTestRegistry_SyncIntegrationcloneshttps://github.com/NobleFactor/devlore-registry.gitfrom CI runners; on#414 the macOS runner failed DNS and produced
a red check unrelated to the change under review:
Why it earns a step
This repository currently runs on a known-failure baseline — the Windows leg is expected to fail
at exactly 28, verified name by name, and a 29th name is a real regression. That discipline works
only while a failure is attributable. A red check that sometimes means "the network was unwell"
turns is this red mine? into a judgment call on every PR, and judgment calls at that frequency
decay into reflex. The failure was also slow: 30 seconds of clone timeout before the verdict.
The solution is deliberately not chosen
Three discoveries come before any fix is designed:
https://grep is a proxy— it hits URL-parsing tests that never fetch, and misses anything reaching the network through
a helper or a provider.
git remote, or a fake transport. That is a question about the contract, not about test plumbing.
Six candidate directions are recorded, each with the residual it buys — local fixture repo (stops
testing the real transport), record/replay (drifts silently), gated integration tag (a test nobody
runs rots), skip-on-unreachable (a permanent outage then looks like a pass), retry (hides genuine
intermittency), scheduled job (signal arrives after merge). The charter says explicitly that the
answer may be none of them.
Worth starting from:
cmd/devlore-index/main_test.goalready builds a localdevlore-registryfixture and chdirs away so a real sibling checkout cannot leak in.
Documentation only.
Assisted-by: Claude