Repository navigation
Description
Describe the bug
LTS compatibility aborts on a runner-side GitHub DNS failure during repeated release discovery, before the snapshot compatibility phase starts any nodes.
Long Test run 10458, 2026-09-25, failed only Debug lts_compatibility:
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git ls-remote https://github.com/microsoft/CCF
fatal: unable to access 'https://github.com/microsoft/CCF/':
Could not resolve host: github.com
The non-snapshot pass had verified transactions and gracefully stopped its nodes. At 00:51:19.402Z, the next use_snapshot=True pass constructed another infra.github.Repository. Its GitEnv initialization immediately issued an unguarded git ls-remote, whose exception terminated the test.
The observed immediate cause is DNS resolution failure. The resolver, transport condition, and outage duration are not recorded, so a specific infrastructure root cause or subsequent infrastructure repair cannot be claimed.
To Reproduce
The original runner DNS incident has no deterministic reproducer in the uploaded evidence.
For a controlled regression, exercise remote release discovery with a transient DNS/remote-query failure, including a failure after earlier discovery has succeeded in the same compatibility run. Verify bounded handling, diagnostic propagation, and behavior when the error persists.
The affected path is tests/lts_compatibility.py:678 -> Repository -> GitEnv -> tests/infra/github.py:185.
Expected behavior
Separate external release-discovery failures from actual compatibility failures. Investigate bounded retry/backoff and reuse of already discovered metadata across passes, without suppressing persistent errors or skipping compatibility coverage. Investigate the runner/container DNS incident if infrastructure diagnostics are available.
Environment information
Failing main SHA 9427d3dceac72555d4a1f6a03098b84f0b13640d, attempt 1; job 107886241937 (Long e2e - Debug), CTest 104 lts_compatibility, duration 293.19s.
Azure Linux 3.0; Debug, GLIBCXX_DEBUG=ON, LONG_TESTS=ON; command ./tests.sh --output-on-failure --timeout 1600 -LE "benchmark".
Additional context
CI job log lines 6678-6696 show successful verification and normal shutdown before the snapshot pass. Lines 6708-6735 show the call chain and Git DNS error. Exactly one of 93 CTests failed; the subsequent fuzz step was skipped as a consequence.
The logs-e2e-debug artifact confirms normal shutdown in lts_compatibility_5/out:3007-3012, _6/out:1612-1617, and _7/out:612-617. All eight archived LTS stderr files are empty. This is not evidence of a CCF node crash or a ledger/snapshot compatibility defect.
Both tests/infra/github.py and tests/lts_compatibility.py are byte-identical between the failure SHA and audited main 41d6c20c218666673415d258e7d9201e0891b8df. #8479 repairs reused-runner checkout ownership in a different workflow, not DNS discovery. Recovery fixes #8450 and #8452 likewise do not address this path. No exact matching open issue or confirmed fix was found.
Follow-up investigation (2026-10-07)
Assessment: A scoped release-discovery resilience fix is supported. The infrastructure DNS root cause, outage duration, and whether any proposed retry would have saved the original job remain unknown.
Source findings
GitEnv.__init__ issues two unguarded queries to the same remote for tags and release branches. Automatic long LTS orchestration creates three Repository instances, allowing six refs queries across the live, ledger, and snapshot phases. The original snapshot pass failed during the first query of its new constructor, before starting nodes.
Reusing only Repository is insufficient to freeze versions: release selection still performs fresh release-asset HEAD requests, so an existing tag becoming available between passes can change the selected mapping. The ledger helper also adds a local None: None sentinel, so a shared mapping must be copied before each pass mutates it.
Candidate fix
- Fetch one successful refs snapshot per
GitEnv, parsing both tags and release branches from that result. - Retry only the demonstrated DNS diagnosis, not all exit-128 errors. A proposed Linux policy is three total attempts, 5/30-second backoff, and a 30-second subprocess cap per attempt, following existing CI retry precedent.
- Match the specific
Could not resolve host: github.comdiagnostic under C locale; suppress credential prompts in the scoped subprocess environment. Log attempt/status/diagnostics and propagate the original final failure. Authentication, certificate, repository-not-found, missing-Git, programming, and unclassified failures must remain immediate failures. - Reuse the invocation's existing
Repository; select one supported-release manifest immediately before the paired ledger/snapshot tests and copy it into each pass.
Preserve branch/EOL/semver rules, availability filtering, installation, and both compatibility chains. This is an explicit invocation-scoped manifest, not a global or disk cache. A fresh invocation must see new refs and newly available assets. Missing downloads and later HTTP errors must still fail; do not substitute empty lists, stale success, or skipped coverage.
Evidence and remaining validation
Twelve isolated AST/mock probes supported exact retry bounds, persistent error propagation, one-query parsing, unchanged release selection, paired-pass copying, and fresh-invocation discovery. They made no real network calls or sleeps and did not execute CCF recovery.
python3 -B tests/infra/github.py was blocked by missing GitPython; loguru was also unavailable. No packages were installed. Native GitPython timeout/termination behavior, the implemented self-test, and full LONG_TESTS/non-SAN LTS compatibility remain required. GitPython's POSIX timeout facility is not a universal hard wall-clock guarantee.
If retained runner/container resolver diagnostics exist for 2026-09-25 00:51:19Z, investigate them independently; Python resilience is not a DNS infrastructure repair.
Subsequent PR assessment
No applicable discovery fix was found. #8314 concerns package layout; #8325 adds report validation, not DNS handling; #8505 changes node-removal retries; #8490 does not change these discovery files. #8479 repairs checkout ownership in a different workflow. The affected source remained unchanged in the investigated main revision 41d6c20c218666673415d258e7d9201e0891b8df; the subsequent #8366 advance does not repair this path.
Activity
eddyashton commentedon Oct 7, 2026
Closing as not planned / Won’t Fix: an isolated observed hostname-resolution failure, with insufficient evidence to justify adding complexity to release discovery. This is not a claim that the underlying infrastructure problem has been fixed or that it cannot recur.
What we established
git ls-remotereportingCould not resolve host: github.com. The precedingunable to accessis Git’s generic context for that specific transport failure. There is no recorded GitHub HTTP rate-limit response orRetry-Aftervalue.Follow-up evidence and its limits
Why we are not implementing the candidate changes
The independent investigation correctly identifies duplicate refs queries and outlines a careful caching/retry design. Its mock probes demonstrate behavior under injected failures, not the infrastructure cause, actual outage duration, or that the proposed policy would have helped this run.
Caching, a frozen release manifest, and DNS-specific retries add behavior and complexity that should be justified by demonstrated benefit. There is no evidence that the request volume crossed a DNS limit, that the proposed retry delays cover the failure, or that either caching or retries would help if this failure recurred. Avoiding one lookup could merely move the failure to a later asset check or download. The separate possibility of release selection changing between ledger and snapshot passes has not been observed here and is not evidence of a DNS fix.
We therefore will not introduce those changes on the basis of this incident. The resolver failure cause and duration remain unknown. If retained runner/container DNS diagnostics already exist, they may still be useful, but we have no such evidence available.
We can reopen the investigation if it occurs again, ideally with the original resolver error, direct configured-server DNS responses, runner/container identity and timestamps captured at the time.