Skip to content

LTS compatibility aborts on GitHub DNS failure during repeated release discovery #8514

Closed as not planned

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.com diagnostic 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

  1. eddyashton commented on Oct 7, 2026

    @eddyashton
    Member

    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

    • The original failure was git ls-remote reporting Could not resolve host: github.com. The preceding unable to access is Git’s generic context for that specific transport failure. There is no recorded GitHub HTTP rate-limit response or Retry-After value.
    • The preceding compatibility pass verified its transactions and shut down normally. The snapshot pass failed during release discovery before starting its nodes; there is no evidence here of a CCF ledger/snapshot compatibility defect.
    • The test’s own GitHub activity was small: four successful refs queries, approximately four release-existence HEAD checks and two package downloads before the fifth refs query failed. A complete invocation would normally make six refs queries with those releases, not thousands of requests in a burst. These are application operations, not measured DNS packet counts; resolver caching and retransmissions were not recorded.
    • The last confirmed external GitHub access was a successful package download at approximately 00:47:40 UTC. The failed snapshot discovery began at 00:51:19 UTC, about 3 minutes 39 seconds later. The intervening work was local. It is therefore plausible that this was the first access during a period of trouble, but we cannot determine whether the failure was momentary or lasted minutes, or when it recovered.
    • LTS is the principal test in that run performing GitHub lookups during test execution. Other tests passing does not establish that GitHub resolution remained healthy at the failure time.

    Follow-up evidence and its limits

    • We searched available failed Long Test logs for September 7–October 7: 48 readable failed-job logs across 30 runs, including Debug, Release, combined Shuffled/LTS/Snmalloc, ASAN and TSAN. The original incident was the only matching github.com resolution failure, including a search for alternate resolver-error wording. Six job logs from two runs were unavailable; 28 other workflow-run records exposed no failed jobs. This is not an exhaustive history or a measured failure rate.
    • The five-minute diagnostic probe, using fresh-process system lookups on the same runner pool and Azure Linux container/network configuration, passed. This was a different runner instance and time, and exercised system getaddrinfo rather than the complete Git/libcurl path, so it does not rule out intermittent or runner-specific failures. The debugging-only PR ci: Investigate runner DNS failures (debugging only) #8523 is closed without merging its temporary CI wiring.
    • GitHub’s public incident history and the public outage reports checked did not identify an outage overlapping 2026-09-25 00:51 UTC. Nearby billing/API/Projects incidents had already resolved and do not explain this DNS diagnostic. This does not exclude regional networking or resolver trouble.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions