Repository navigation
[Sync] Update project files from source repository (d0f1a8f) - #352
Merged
mrz1836 merged 1 commit intoAug 22, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Syncs CI/project configuration from the upstream source repository to make validation stricter and keep tool pins current, primarily improving GitHub Actions reliability and error reporting.
Changes:
- Tighten Go version parsing in
setup-benchstatby using anchored regex validation instead ofsedextraction. - Update mage-x and staticcheck version pins.
- Improve
fortress-test-matrixpreflight validation (reject macOS runners in addition to Windows; add JSON-object shape validation for the matrix input).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/actions/setup-benchstat/action.yml | Switches Go version extraction to anchored regex validation using BASH_REMATCH to reject malformed versions. |
| .github/env/10-mage-x.env | Bumps mage-x and staticcheck version pins. |
| .github/workflows/fortress-test-matrix.yml | Expands runner validation to reject macOS + Windows and adds a guard that the matrix input is a JSON object. |
Suppressed comments (1)
.github/workflows/fortress-test-matrix.yml:167
- This error message tells users to "Set PRIMARY_RUNNER/SECONDARY_RUNNER to ubuntu-* runners", but those identifiers are not inputs to this reusable workflow (it has an input named "primary-runner"). Consider updating the guidance to reference the actual configuration surface (the test-matrix "os" values and/or the "primary-runner" input) to avoid confusing callers.
if [[ -n "$UNSUPPORTED" ]]; then
echo "::error title=Unsupported runner::Test matrix contains non-Linux runner(s): ${UNSUPPORTED}. This workflow is bash-only and uses a Linux service container, so only Linux (ubuntu-*) runners are supported. Set PRIMARY_RUNNER/SECONDARY_RUNNER to ubuntu-* runners."
echo "❌ Non-Linux runners in matrix: ${UNSUPPORTED}"
💡 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-20260822-161759-d0f1a8f
branch
August 22, 2026 16: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
.github/actions/setup-benchstat/action.yml: Replacedsed-based Go version parsing with anchored regex validation usingBASH_REMATCH. The new logic explicitly rejects malformed inputs (e.g., "1.25junk", "127", "1.2z") instead of silently coercing them, matching the pattern used forBENCHSTAT_LATEST_MIN_GOvalidation..github/env/10-mage-x.env: UpdatedMAGE_X_VERSIONfromv1.26.3tov1.26.4andMAGE_X_STATICCHECK_VERSIONfrom2026.2to2026.2.1..github/workflows/fortress-test-matrix.yml: Expanded runner validation to reject both Windows and macOS runners (previously only Windows). Updated documentation and error messages to clarify that only Linux (ubuntu-*) runners are supported due to bash-only steps and the required Linux service container. Added validation to ensure the test matrix input is a JSON object, not an array/string/number.Why It Was Necessary
sed-based Go version extraction silently accepted invalid inputs like "1.25junk" as valid version 1.25, creating potential for misconfiguration to go unnoticed.Testing Performed
sedlogic would have accepted.Impact / Risk
PRIMARY_RUNNERorSECONDARY_RUNNERwill now fail validation with a clear error message, requiring migration to ubuntu-* runners.