Repository navigation
ci: configure cross-platform matrix triggers, artifact naming, and shard display names - #416
Merged
Merged
Conversation
Contributor
Greptile SummaryThe PR adds clearer CI job and shard names, runs the cross-platform packaging matrix for pushes to
Confidence Score: 4/5The PR is not yet safe to merge because rapid pushes to main can still replace a pending cross-platform build and prevent that commit from producing artifacts. The previously reported pending-run replacement remains: main pushes share Files Needing Attention: .github/workflows/nightly-release.yml
|
| Filename | Overview |
|---|---|
| .github/workflows/nightly-release.yml | Adds main-push matrix builds and platform metadata, but the shared concurrency group still allows queued commits to be replaced. |
| .github/workflows/ci.yml | Adds descriptive job names and correctly maps zero-based shard indices to one-based display labels. |
| package.json | Adds architecture-aware artifact filename templates for Windows and macOS packages. |
| tests/dev-tooling-scripts.test.ts | Removes the undeclared YAML parser usage and replaces it with direct workflow text assertions. |
| tests/release-config.test.ts | Adds checks for package artifact templates and the intended cross-platform workflow configuration. |
Sequence Diagram
sequenceDiagram
participant P1 as Main push A
participant P2 as Main push B
participant P3 as Main push C
participant G as Shared concurrency group
participant M as Platform matrix
P1->>G: Start workflow run
G->>M: Run Linux/macOS/Windows builds
P2->>G: Queue pending run
P3->>G: Queue newer pending run
G--xP2: Replace older pending run
M-->>P1: Upload platform artifacts
Note over P2: No matrix artifacts produced
Reviews (6): Last reviewed commit: "Merge branch 'main' into ci/matrix-packa..." | Re-trigger Greptile
This was referenced Aug 20, 2026
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.
Intent
display 1-indexed shard numbers and remove js-yaml from dev tooling tests
What Changed
.github/workflows/ci.ymland configured matrix mappings to present 1-indexed shard numbers for the Linux test suite..github/workflows/nightly-release.ymlto trigger on pushes tomainwith persistent concurrency, parameterized platform matrix targets, and standardized artifact naming aligned withpackage.jsonbuild config.js-yamlrequirement fromtests/dev-tooling-scripts.test.tsin favor of direct workflow assertions and expandedtests/release-config.test.tsto validate matrix build triggers, targets, and packaging artifact templates.Risk Assessment
✅ Low: The changes cleanly parameterize 1-indexed shard numbers via matrix inclusions, remove js-yaml dev tooling dependencies, keep lockfiles synchronized, and conform to all acceptance criteria.
Testing
Verified that CI workflow configures 1-indexed shard display names ('Core Test Suite (Shard 1/2)' and 'Core Test Suite (Shard 2/2)'), that js-yaml is completely removed from dev tooling tests, and that the dev-tooling and release-config test suites pass cleanly.
Evidence: 1-Indexed Shard Numbers and js-yaml Removal Verification
=== Verification Report: 1-indexed Shard Numbers and js-yaml Removal === 1. CI Job Name Display: Defined Name: Core Test Suite (Shard ${{ matrix.shard_number }}/2) 2. Shard Matrix Mapping: matrix: shard: [0, 1] include: - shard: 0 shard_number: 1 - shard: 1 shard_number: 2 steps: 3. Rendered GitHub Actions Job Names: - Shard index 0 -> Display Name: "Core Test Suite (Shard 1/2)" - Shard index 1 -> Display Name: "Core Test Suite (Shard 2/2)" 4. js-yaml Dependency in tests/dev-tooling-scripts.test.ts: Contains js-yaml: false 5. Root package.json dependencies: js-yaml in package.json: falsePipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 2 issues found → auto-fixed ✅
.github/workflows/ci.yml:130- GitHub Actions expression syntax does not support arithmetic operators like '+'. The expression '${{ matrix.shard + 1 }}' in linux-tests job name will cause a workflow parsing/syntax error when GitHub Actions processes ci.yml.package-lock.json:39- 'package-lock.json' contains 'js-yaml' and '@types/js-yaml' entries despite them being removed from 'package.json', causing lockfile desynchronization that can lead to 'npm ci' failures in CI.🔧 Fix: fix CI shard matrix expression and sync lockfile
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
ts-node --transpile-only -P tests/tsconfig.json tests/dev-tooling-scripts.test.tsnpm run test:dev-toolingnpm run test:release-configCI workflow matrix shard indexing & name resolution verificationjs-yaml dependency absence check in test files and package.json✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.