Skip to content

docs: charter step 53, network-dependent tests blur CI's red signal - #415

Merged
David-Noble-at-work merged 1 commit into
developfrom
charter-network-dependent-tests
Aug 14, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
charter-network-dependent-tests

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

Charters step 53. internal/lorepackage's TestRegistry_SyncIntegration clones
https://github.com/NobleFactor/devlore-registry.git from CI runners; on
#414 the macOS runner failed DNS and produced
a red check unrelated to the change under review:

fatal: unable to access 'https://github.com/NobleFactor/devlore-registry.git/':
Could not resolve host: github.com

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:

  1. Enumerate every network-reaching test by behavior, not 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 a provider.
  2. Measure how often this fires, from CI history rather than impression.
  3. Establish what the test is for — whether the registry's contract needs a real remote, any
    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.go already builds a local devlore-registry
fixture and chdirs away so a real sibling checkout cannot leak in.

Documentation only.

Assisted-by: Claude

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]>
@David-Noble-at-work David-Noble-at-work self-assigned this Aug 14, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 1a454cd into develop Aug 14, 2026
7 of 8 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the charter-network-dependent-tests branch August 14, 2026 23:42
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