Skip to content

ci: configure cross-platform matrix triggers, artifact naming, and shard display names - #416

Merged
itsbkm merged 11 commits into
mainfrom
ci/matrix-packages-and-triggers
Aug 20, 2026
Merged

itsbkm merged 11 commits into
mainfrom
ci/matrix-packages-and-triggers

Conversation

@khaira777

@khaira777 khaira777 commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Intent

display 1-indexed shard numbers and remove js-yaml from dev tooling tests

What Changed

  • Added descriptive display names for all CI jobs in .github/workflows/ci.yml and configured matrix mappings to present 1-indexed shard numbers for the Linux test suite.
  • Configured .github/workflows/nightly-release.yml to trigger on pushes to main with persistent concurrency, parameterized platform matrix targets, and standardized artifact naming aligned with package.json build config.
  • Removed the js-yaml requirement from tests/dev-tooling-scripts.test.ts in favor of direct workflow assertions and expanded tests/release-config.test.ts to 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: false

=== 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: false

Pipeline

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.ts
  • npm run test:dev-tooling
  • npm run test:release-config
  • CI workflow matrix shard indexing & name resolution verification
  • js-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.

@greptile-apps

greptile-apps Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds clearer CI job and shard names, runs the cross-platform packaging matrix for pushes to main, standardizes matrix artifact names, and adds platform-specific package filename templates.

  • Maps zero-based Linux shard indices to one-based display numbers.
  • Adds named Linux, macOS, and Windows matrix targets and descriptive uploaded artifacts.
  • Removes the direct js-yaml test usage and expands workflow/configuration assertions.
  • Preserves active builds with cancel-in-progress: false, although pending builds still share one replaceable concurrency slot.

Confidence Score: 4/5

The 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 ${{ github.workflow }}-${{ github.ref }}, and cancel-in-progress: false protects only the active run rather than preserving every queued run.

Files Needing Attention: .github/workflows/nightly-release.yml

Important Files Changed

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
Loading

Reviews (6): Last reviewed commit: "Merge branch 'main' into ci/matrix-packa..." | Re-trigger Greptile

Comment thread .github/workflows/nightly-release.yml Resolved
Comment thread tests/release-config.test.ts Resolved
@khaira777 khaira777 changed the title ci: configure matrix workflow on main merge with explicit platform artifact naming ci: declare js-yaml devDependency and prevent matrix cancellations on main Aug 20, 2026
Comment thread package.json Resolved
@khaira777 khaira777 changed the title ci: declare js-yaml devDependency and prevent matrix cancellations on main ci: configure cross-platform matrix triggers, artifact naming, and shard display names Aug 20, 2026
Comment thread .github/workflows/nightly-release.yml Resolved
@itsbkm
itsbkm merged commit 256a852 into main Aug 20, 2026
13 checks passed
@itsbkm
itsbkm deleted the ci/matrix-packages-and-triggers branch August 20, 2026 19:26
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.

2 participants