Repository navigation
fix(ci): reject untidy files in every tracked Go module - #5778
Conversation
Part of #5326. Check module boundaries and use read-only tidy diffs before the required Go regression suite. Cover nested modules, sum drift, missing files, workspace redirection and failed discovery with real offline controls. Regenerate existing module drift with Go 1.26.10.
At head The offline fixture reproduces the original gap (ordinary Go tests accept an unused requirement) and passes 12 actual guard controls. These cover root/nested dependency drift, a newly indexed module, sum-only drift, a missing sum, inherited workspace/modfile settings, missing/linked manifests, linked directories, partial failed discovery and empty discovery. Module files are compared before and after each guard invocation. The fixture also passes with inherited ShellCheck, shfmt, actionlint, the policy routing/result-boundary fixture, and the affected Go packages Independent static review found no remaining actionable correctness/security finding after the missing-manifest and proxy-isolation controls were added. Hosted CI, a current-head permitted review, protected merge and post-merge proof remain required; these local receipts are not a claim of delivery. Hosted evidence at prior signed head Current signed head At current head Readiness at exact signed head As a user I exercised the actual nine-module read-only tidy guard and all 12 real module controls, including exact go.mod/go.sum drift assertions; missing and malformed boundaries fail before module work, and failed checks leave source unchanged. This validates the CI guard behavior, not a production change or a portfolio-wide latency improvement. All readable required gates pass. The configured code-quality rule remains unreadable to the helper and is left to the ordinary protected merge service, without an inferred pass. |
@coderabbitai full review |
Action performed
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
|
@coderabbitai full review |
Action not completed
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
Dependency updates can pass Platform CI with inconsistent module files, leaving an unrelated later change to discover the failure.
What
Require consistent dependencies across every tracked Go module before accepting a change, with a clear repair message and no automatic edits. Clean up the existing inconsistencies so the baseline satisfies the new requirement.
Fixes #5326