Skip to content

[Sync] Update project files from source repository (3438a4b) - #357

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260831-151355-3438a4b
Aug 31, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-bitcoin-20260831-151355-3438a4b

Conversation

@mrz1836

@mrz1836 mrz1836 commented Aug 31, 2026

Copy link
Copy Markdown
Member

What Changed

  • Added summary_is_corrupt helper function in .github/scripts/test-result-helpers.sh to detect when a non-empty JSONL summary line is invalid JSON
  • Updated .github/actions/validate-test-results/action.yml to use summary_is_corrupt in three locations (aggregation loop, failure counting, and summary output) to explicitly detect and count corrupted summaries as failures instead of allowing jq to silently coerce fields to 0
  • Updated .github/workflows/dependabot-auto-merge.yml to gracefully skip approve + auto-merge when no GH_PAT_TOKEN is available instead of failing the workflow
  • Updated .github/workflows/fortress-test-matrix.yml comment to clarify that set -e does not abort on failures inside command substitution assignments
  • Bumped GO_PRE_COMMIT_GOLANGCI_LINT_VERSION from v2.13.1 to v2.13.2 in .github/env/10-pre-commit.env
  • Bumped MAGE_X_VERSION from v1.26.4 to v1.26.5 in .github/env/10-mage-x.env
  • Bumped MAGE_X_GOLANGCI_LINT_VERSION from v2.13.1 to v2.13.2 in .github/env/10-mage-x.env
  • Bumped MAGE_X_BENCHSTAT_VERSION_LATEST from v0.0.0-20260819171926-ebcb4798430d to v0.0.0-20260825160852-19be9d8e6c70 in .github/env/10-mage-x.env
  • Updated github/codeql-action/* from db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 (v4.37.8) to cdf488f595d80d6e07e03d4674febd5ab45fa938 (v4.37.9) across codeql-analysis.yml, fortress-security-scans.yml, and scorecard.yml

Why It Was Necessary

  • Corrupted or truncated JSONL files were silently miscounted as passing tests because jq extractions on invalid JSON returned empty values that coerced to 0, causing validation to miss actual failures
  • The dependabot auto-merge workflow would hard-fail when no PAT token was configured (e.g., revoked token), creating red checks on every Dependabot PR despite this being optional automation
  • Tool versions needed updates to stay current with latest releases and bug fixes

Testing Performed

  • Verified summary_is_corrupt function correctly identifies non-empty invalid JSON and returns false for empty summaries
  • Confirmed all three call sites in validate-test-results action properly detect corrupted summaries and increment failure counts
  • Tested dependabot-auto-merge workflow gracefully exits with success when GH_PAT_TOKEN is unavailable

Impact / Risk

  • Low risk - Changes improve correctness by preventing silent test failures from being counted as passes
  • Improved reliability - Dependabot workflow no longer creates false-negative red checks when PAT is unavailable
  • No breaking changes - Tool version bumps are minor updates; CodeQL action update is a patch version

Copilot AI lite review requested due to automatic review settings August 31, 2026 15:14
@mrz1836 mrz1836 self-assigned this Aug 31, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Aug 31, 2026
@github-actions github-actions Bot added update General updates size/M Medium change (51-200 lines) labels Aug 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs CI automation updates from the source repository, focusing on making test-result validation robust to corrupted JSONL summaries, improving Dependabot auto-merge workflow resilience when a PAT isn’t configured, and bumping a few tool/action versions.

Changes:

  • Add summary_is_corrupt helper and use it in the validate-test-results composite action to count invalid JSON summaries as failures (instead of silently coercing fields to 0).
  • Update Dependabot auto-merge workflow to skip approve/auto-merge when GH_PAT_TOKEN is unavailable (instead of failing the workflow).
  • Bump CodeQL action pins and a few tool version env vars.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/scripts/test-result-helpers.sh Adds summary_is_corrupt helper for detecting invalid JSON summary lines.
.github/actions/validate-test-results/action.yml Uses summary_is_corrupt to treat corrupted JSONL summaries as failures in validation, aggregation, and summary output.
.github/workflows/dependabot-auto-merge.yml Skips optional approve/auto-merge behavior when no PAT is available.
.github/workflows/fortress-test-matrix.yml Clarifies comment about set -e behavior inside command substitution assignments.
.github/env/10-pre-commit.env Bumps GO_PRE_COMMIT_GOLANGCI_LINT_VERSION.
.github/env/10-mage-x.env Bumps MAGE_X_VERSION, MAGE_X_GOLANGCI_LINT_VERSION, and MAGE_X_BENCHSTAT_VERSION_LATEST.
.github/workflows/codeql-analysis.yml Bumps pinned CodeQL action SHAs (init/autobuild/analyze).
.github/workflows/fortress-security-scans.yml Bumps pinned CodeQL upload-sarif action SHA.
.github/workflows/scorecard.yml Bumps pinned CodeQL upload-sarif action SHA.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mrz1836
mrz1836 merged commit fa15ebc into master Aug 31, 2026
25 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-bitcoin-20260831-151355-3438a4b branch August 31, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/M Medium change (51-200 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants