Repository navigation
[Sync] Update project files from source repository (ca0ff0d) - #350
Merged
mrz1836 merged 1 commit intoAug 21, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates CI configuration with strict benchstat Go-version validation and a Windows-runner guard.
Changes:
- Replaces silent version fallback with regex validation.
- Adds Bash-based Windows runner detection.
- The workflow guard requires redesign because service containers initialize before steps, and direct matrix interpolation creates shell-injection risk.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Summary |
|---|---|
.github/workflows/fortress-test-matrix.yml |
Adds a Windows guard, but has a moderate issue (4 votes): service setup may fail before the guard runs. It also has a critical issue (4 votes): matrix values are interpolated unsafely into shell code. |
.github/actions/setup-benchstat/action.yml |
Replaces fallback parsing with strict minimum Go-version validation. |
Suppressed comments (1)
.github/workflows/fortress-test-matrix.yml:148
matrix.osis aruns-onlabel, not a reliable representation of the operating system. For example, a Windows self-hosted runner can be selected byself-hostedor a custom label, and the lowercasewindows*pattern will then miss it and allow the Bash-only steps to continue. Use the runner'sRUNNER_OSvalue (Windows) for this check, retainingmatrix.osonly for the diagnostic message.
if [[ "$MATRIX_OS" == windows* ]]; then
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
github-actions
Bot
deleted the
chore/sync-files-go-bitcoin-20260821-163710-ca0ff0d
branch
August 21, 2026 18:27
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.
What Changed
BENCHSTAT_LATEST_MIN_GOin.github/actions/setup-benchstat/action.ymlwith a strict regex validation that fails fast on invalid inputsed-based parsing with silent fallback to 1.26 defaults to aBASH_REMATCH-based approach that exits with a clear error message when the version cannot be parsed.github/workflows/fortress-test-matrix.ymlthat explicitly blocks Windows runners with a clear error messageshell: bashto detectwindows*inmatrix.osand exits immediately before other bash-only steps can fail in confusing waysWhy It Was Necessary
sed-based parsing would silently fall back to hard-coded 1.26 defaults on malformed input, which could select incompatible builds once benchstat requires Go 1.27+ without surfacing the configuration errorTesting Performed
BENCHSTAT_LATEST_MIN_GOvalues now trigger immediate failure with the clear error message instead of silent fallbackImpact / Risk
BENCHSTAT_LATEST_MIN_GOvalues will now fail explicitly—this is intentional to surface configuration errors