Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
This PR improves the sync-shared-resolver GitHub Actions workflow’s drift-check reporting so CI failures clearly distinguish “real drift” from “check could not run”, and provide richer job summaries for debugging and next steps.
Changes:
- Adds distinct outcomes (0/1/2) with titled annotations and a structured
GITHUB_STEP_SUMMARYtable + collapsible diffs. - Improves console logging with explicit “comparison performed successfully” markers and per-file verdicts.
- Moves temporary artifacts into
${RUNNER_TEMP}and improves diff labeling to clearly name both sides.
Suppressed comments (1)
.github/workflows/sync-shared-resolver.yaml:200
- This summary text says “no comparison was performed”, but this block can run even when some files were successfully compared (e.g., one matched, one fetch failed). Reword to reflect an incomplete/inconclusive run rather than claiming nothing was compared.
echo "One or more sibling files could not be fetched, so"
echo "**no comparison was performed**. This is a transport"
echo "or availability failure and is evidence of neither"
echo "drift nor sync. Re-run this job."
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
A red run of this job previously gave no way to tell whether the check had measured drift or had simply failed to run: both cases emitted an untitled ::error:: annotation and exit code 1, with no job summary at all. The scheduled run that caught the sole-org fallback drift window was therefore hard to distinguish from a broken workflow. Separate the outcomes so the signal is unambiguous. Drift keeps exit code 1 and is titled as a resolver-drift annotation; an unfetchable sibling file now exits 2, is titled as a check that could not run, and states that it is evidence of neither drift nor sync. Each file logs an explicit success/failure marker alongside its diff, and the job writes a step summary carrying a per-file result table, collapsible diffs and the next action to take. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
force-pushed
the
ci/clarify-sync-check-reporting
branch
from
August 3, 2026 12:51
c3fb215 to
48dd095
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (2)
.github/workflows/sync-shared-resolver.yaml:175
- The diff error path (rc >= 2) is labeled as a "tooling failure" and advises re-running. But rc>=2 can also happen for non-transient, actionable problems like a missing local file path, so the annotation text should avoid claiming the cause and should point to verifying file existence/tool availability if it persists.
echo "::error title=Sync check could not run::diff exited" \
"${rc} while comparing ${f}; no verdict was reached for" \
"this file. This is a tooling failure, not resolver" \
"drift. Re-run this job."
.github/workflows/sync-shared-resolver.yaml:129
- The curl failure annotation text states this is a "transport failure" and suggests re-running; however curl can also fail due to persistent causes (e.g., 404 because the file/ref path is wrong). The message should avoid asserting a specific root cause and should direct maintainers to verify the file/ref if retries keep failing.
This issue also appears on line 172 of the same file.
echo "::error title=Sync check could not run::Could not" \
"fetch ${f} from ${SIBLING_REPO}; no verdict was" \
"reached for this file. This is a transport failure," \
"not resolver drift. Re-run this job."
tykeal
approved these changes
Aug 3, 2026
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.
Problem
The scheduled run on 2026-08-03 (run 30793145483) correctly caught the window where the
sole-org fallbackpaired PRs had landed inharden-runner-block-actionbut not yet here. The reporting, however, made that hard to tell:GITHUB_STEP_SUMMARYoutput at all, only three untitled::error::annotations;curland a genuine byte-difference produced the same annotation shape and the same exit code, so a transport outage was indistinguishable from the drift the job exists to measure — or from a plain workflow syntax error;Error:lines, with no marker saying whether the comparison had actually completed.Change
Outcomes are now separated and labelled everywhere they surface:
Shared resolver driftSync check could not runAlso:
✅ Comparison performed successfullyfollowed by an explicit per-file verdict, so a diff tail is never the last thing beforeError:;diff --labelnames both sides (… (this repository)/… (lfreleng-actions/harden-runner-block-action)) instead of leakingsibling.tmp;main;${RUNNER_TEMP}rather than the checkout.The "could not run" case explicitly states that it is evidence of neither drift nor sync, which is the distinction that was missing.
Paired change
An identical change (differing only in
SIBLING_REPO) is raised in the sibling repository so both sides report consistently. The mirroredsrc/resolve_config_source.pyandtests/test_resolve_config_source.pyare untouched, so the two PRs are independent and neither can deadlock the other.Validation
pre-commit run --files .github/workflows/sync-shared-resolver.yaml— passes (yamllint, actionlint incl. shellcheck, check-github-workflows).curl(in-sync, drift, fetch failure), confirming exit codes 0/1/2 and the rendered summary in each case.