Skip to content

feat: support optional Vitest sharding in continuous integration - #608

Merged
neilime merged 1 commit into
mainfrom
feat/ci-vitest-sharding
Nov 16, 2026
Merged

neilime merged 1 commit into
mainfrom
feat/ci-vitest-sharding

Conversation

@neilime

@neilime neilime commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Frontend tests remain on Pleey's CI critical path. Add opt-in Vitest sharding to the existing reusable workflow, so callers can split tests while preparation, lint and build still run once. Existing callers keep one test job and their current reporting behavior.

test: '{"command":"test:ci","shards":2,"comment":false,"report-file":"junit.xml,coverage/lcov.info"}'

The matrix uploads native blobs, including failed-test results. One merge job validates the complete set against the source, project, run and attempt, then publishes combined reports. Missing or changed payloads and failed shard jobs remain fatal even when the merge command succeeds. Arguments use argv arrays with the package manager's separator; merge-command optionally selects a different package script.

Callers keep coverage collection enabled, defer thresholds only while CI_TEST_SHARD is set, and retain their original thresholds for merging. Package scripts must use reporter-specific --outputFile.junit rather than scalar --outputFile. Partial reruns require rerunning the complete workflow. ADR 0004 records these constraints and the rollout decision; action and workflow references were regenerated with the existing official generator.

Validation:

  • All 96 contract and integration tests passed locally in 3.7 seconds. The real Vitest case takes 3.5 seconds and verifies native blob merging, unchanged test inventory and coverage denominators, final threshold enforcement and failed-test reporting. Small local cases cover payload and scheduling failures.
  • The repository's pinned Super-Linter passed for the changed components.
  • Hosted CI passed, including checkout and container sharding, reusing the existing npm fixture image, and assertions for one complete JUnit/LCOV artifact per caller. All PR checks passed (202 successful, 113 skipped or neutral, no failures or pending checks).

Part of cloud-native-aixmarseille/pleey#475 (P6), following cloud-native-aixmarseille/pleey#553. Pleey adoption and the two-shard performance comparison follow upstream review; this PR makes no performance-gain claim.

@github-actions github-actions Bot added the type: feature Introduces a new feature label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Test results

Workflow run and full reports · Commit 450789a

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

No tests reports available for this attempt. See the job results and workflow logs.

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Code coverage

Workflow run and full reports · Commit 450789a

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Coverage: 4 source report(s); percentages remain separate.

Coverage details

Coverage results

ci-reports-1-test-release-actions-package-restore-51e40aba-01c4-4e1b-a149-162058a2c697/lcov.info

Coverage

Metric Covered Total Percentage
Lines 72 72 100.00%
Branches 24 24 100.00%
Functions 4 4 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-release-actions-release-finalize-8c7ae842-e8ef-4b21-91a7-e96172adbed3/lcov.info

Coverage

Metric Covered Total Percentage
Lines 92 92 100.00%
Branches 36 36 100.00%
Functions 6 6 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-release-actions-release-prepare-7148a9c0-fbcd-4365-84de-1a78a223f11e/lcov.info

Coverage

Metric Covered Total Percentage
Lines 513 545 94.13%
Branches 155 178 87.08%
Functions 39 39 100.00%

Overall: 94.13% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-release-actions-release-verify-4d4b79b9-a1be-44d0-a17c-650f9c2763e2/lcov.info

Coverage

Metric Covered Total Percentage
Lines 129 129 100.00%
Branches 74 77 96.10%
Functions 11 11 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Lint results

Workflow run and full reports · Commit 450789a

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
DOCKERFILE_HADOLINT Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
test-release success 4

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Report

Coverage Results

Coverage

Metric Covered Total Percentage
Lines 2 2 100.00%
Functions 1 1 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (216f4aa) to head (9c7e550).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #608   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            3         3           
=========================================
  Hits             3         3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@neilime
neilime merged commit e1bca22 into main Nov 16, 2026
317 checks passed
@neilime
neilime deleted the feat/ci-vitest-sharding branch November 16, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant