Skip to content

chore(ci): add concurrency, cache CI tool binaries, and parallelize checks - #34

Merged
zelentsov-dev merged 1 commit into
mainfrom
chore/ci-speed-and-cache
Oct 28, 2026
Merged

zelentsov-dev merged 1 commit into
mainfrom
chore/ci-speed-and-cache

Conversation

@zelentsov-dev

Copy link
Copy Markdown
Owner

Summary

  • Add concurrency with cancel-in-progress: true to ci.yml to cancel superseded workflow runs.
  • Cache compiled Go CI tool binaries (govulncheck, gitleaks, goreleaser, actionlint) in ~/.cache/apple-ads-ci-tools/bin with a versioned .tools-stamp file and parallel go install using an isolated GOCACHE.
  • Run govulncheck, gitleaks, goreleaser check, actionlint, markdownlint-cli2, and validate_distribution.py in parallel across runner vCPUs after go test -race ./..., printing per-check grouped logs and failing if any check exits non-zero.
  • Add cache: true to actions/setup-go in upstream-audit.yml and release.yml.

@zelentsov-dev

Copy link
Copy Markdown
Owner Author

Protocol: DX-REVIEW/1
Message: REVIEW_RESULT
Round: 1
Repository: zelentsov-dev/apple-ads-mcp
PR: 34
Base-SHA: 162c846
Head-SHA: d7154a5
Previous-Reviewed-Head: N/A
Delta: 162c846...d7154a5
Change-Class: ci-workflow
Deployment-Authority: no-deploy

Intent and user effect

Speed up CI and release workflows via concurrency cancellation, Go build/module caching, exact-key CI tool binary caching with .tools-stamp verification, and parallel quality/contract checks.

Scope and exclusions

  • .github/workflows/ci.yml
  • .github/workflows/release.yml
  • .github/workflows/upstream-audit.yml
  • Excluded: MCP server runtime and scripts/validate_distribution.py logic

Preserved contracts and invariants

  • .tools-stamp and executable checks prevent stale or partial tool binary reuse even under cache fallback
  • Parallel go install and parallel quality/contract checks write to isolated log files and distinct binaries without shared-file races
  • scripts/validate_distribution.py release and upstream-audit workflow invariants hold intact

Risk focus

  1. Stale cached tool binaries if cache key or stamp mismatches
  2. Shared-state or output interleaving across parallelized checks in race-and-contract
  3. Substring/ordering invariants enforced by scripts/validate_distribution.py against release.yml and upstream-audit.yml

Evidence ledger

Layer Status Evidence
source VERIFIED Inspected full diff 162c846...d7154a5 and scripts/validate_distribution.py
local N/A CI workflow configuration review in worktree
CI VERIFIED GitHub Actions run 40668939945 green on exact head: test (macos-latest 17s, ubuntu-latest 19s, windows-latest 44s) and race-and-contract (2m43s); live-read-only skipped on PR as designed
device N/A Headless Go MCP server CI workflow change
staging N/A No staging environment
provider N/A Live Apple Ads read-only check is workflow_dispatch on default branch only
production N/A Release workflow only runs on v* tag pushes

Findings

P0-P3: none

Verdict

  • Patch: APPROVE
  • Merge: READY
  • Merge-Actor: TEAMLEAD
  • Release-Deploy: NOT_ASSESSED
  • Production-Authority: OWNER_ONLY
  • Approved-Head: d7154a5
  • CI: VERIFIED 4/4 required checks green (test macos-latest, test ubuntu-latest, test windows-latest, race-and-contract); live-read-only skipped on pull_request
  • Remaining-Not-Checked: Release tag push workflow execution (only triggered on v* tags)

Not checked and residual risk

  • Not checked: Tag-triggered release.yml and scheduled upstream-audit.yml runtime execution
  • Residual risk: actions/cache@v4 emits a non-blocking GitHub runner Node 20 deprecation notice (forced to Node 24 by runner)

@zelentsov-dev
zelentsov-dev merged commit d7154a5 into main Oct 28, 2026
5 checks passed
@zelentsov-dev
zelentsov-dev deleted the chore/ci-speed-and-cache branch October 28, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant