Repository navigation
[Sync] Update project files from source repository (cc3b19e) - #351
Merged
mrz1836 merged 1 commit intoAug 22, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the GoFortress CI reusable workflow by validating the caller-provided test matrix up front and by reducing direct GitHub Actions expression interpolation inside bash scripts to improve shell safety and failure clarity.
Changes:
- Added a
validate-matrixpreflight job that parsesinputs.test-matrixand rejects Windows runners beforetest-go(and its service containers) can be scheduled. - Refactored several workflow steps to pass caller/matrix-controlled values via
env:variables rather than${{ }}interpolation insiderun:blocks. - Updated the
setup-benchstatcomposite action to sourceGO_VERSIONfromenv:instead of assigning it inline in the script.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/fortress-test-matrix.yml | Adds preflight matrix validation and routes matrix/inputs into env vars for safer bash execution. |
| .github/actions/setup-benchstat/action.yml | Moves GO_VERSION assignment into env: for consistent shell-safety handling. |
💡 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-003200-cc3b19e
branch
August 22, 2026 00:47
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
MATRIX_OS:${{ matrix.os }}→${{ matrix.os }}(.github/actions/setup-benchstat/action.yml)Added
WINDOWS=$(jq -r '(.github/actions/setup-benchstat/action.yml)Added a new
validate-matrixpreflight job in.github/workflows/fortress-test-matrix.ymlthat runs before test execution to validate the caller-provided test matrix on a Linux runner and reject unsupported Windows runnersRefactored shell variable handling in
.github/actions/setup-benchstat/action.ymlto route GitHub Actions expressions throughenv:blocks instead of direct${{ }}interpolation in scripts for improved shell safetyMoved
GO_VERSIONfrom inline script assignment to env block (GO_VERSION: ${{ inputs.go-version }})Added multiple new environment variables including
TEST_MATRIX,MATRIX_NAME,MATRIX_GO_VERSION,RACE_DETECTION_ENABLED,CODE_COVERAGE_ENABLED,REDIS_ENABLED,REDIS_VERSION,REDIS_CACHE_HIT,REDIS_IMAGE_SIZE,REDIS_CACHE_OP_TIME,REDIS_CONNECTION_TIME, andTEST_EXIT_CODEChanged variable references in scripts from direct interpolation to environment variable expansion (e.g.,
RACEfrom${{ inputs.race-detection-enabled || 'false' }}to${RACE_DETECTION_ENABLED:-false},COVERfrom${{ inputs.code-coverage-enabled || 'false' }}to${CODE_COVERAGE_ENABLED:-false}, andCODEfrom${{ steps.run-tests.outputs.test-exit-code }}to$TEST_EXIT_CODE)Added JSON validation and Windows runner rejection logic that fails fast with clear error messages before test jobs are scheduled
Why It Was Necessary
Testing Performed
jq emptyto fail fast on malformed test matrix inputsneeds: validate-matrixensures the test-go job and all its matrix legs are blocked from starting if preflight validation failsImpact / Risk