Skip to content

ci: restructure - #1461

Merged
mdydek merged 20 commits into
mainfrom
ci/restructure
Nov 17, 2026
Merged

mdydek merged 20 commits into
mainfrom
ci/restructure

Conversation

@closetcaiman

@closetcaiman closetcaiman commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

⚠️ Breaking changes ⚠️

  • None.

Introduced changes

  • ci.yml is now the only PR entry workflow:
    • one changes job owns every path filter; a package's filter includes its workspace dependencies' (YAML anchors)
    • each touched package runs check-package.yml, which installs the tools listed under ci.tools in its package.json, builds it, then runs its check and test scripts
    • native-build.yml, wpt-tests.yml and the new cpp-coverage.yml are called from ci.yml (workflow_call) instead of having their own triggers and filters
    • Gate job fails if any job failed or was cancelled, so it can be set as the only required check after merge
    • runs on push: main too, so PRs can read caches built on main
    • removed tests.yml, ci-check.yml, js-job.yml, cpp-job.yml, cpp-coverage-job.yml, docs.yml and internaldocs.yml
    • shorter check names: WPT / Run (base), WPT / Compare, Example app / Android, C++ coverage / Coverage
  • added setup-env action replacing checkout-with-node, setup, setup-pnpm and setup-cmake:
    • tools (cmake, cpplint, ktlint, clang-format, llvm, diff-cover) are installed only when a job asks for them, with pinned versions
    • the WPT base side keeps inline setup since it checks out the base branch
  • packages define check and test; root pnpm check / pnpm test run the same thing locally:
    • scripts/run-steps.sh runs all steps and reports every failure, not only the first
    • build is not part of check; pnpm-workspace.yaml tasks builds each package once before any check reads its lib/ (a build inside check raced with dependents' lint)
    • worklets' build.sh no longer rebuilds react-native-audio-api
    • validate.sh --fast calls the packages' check / test instead of repeating the steps
  • C++ tests run only for what changed: run-tests.sh affected picks smoke and extended categories by their paths in filters.sh
    • graph tests no longer have a separate job
    • everything runs on main, manual runs and changes to shared CI files (TEST_ALL=1)
  • C++ coverage is reported on pull requests:
    • cpp-coverage.yml runs on PRs that change react-native-audio-api, only when the smoke suite is selected (same filters.sh rule as the tests); otherwise the job shows as skipped
    • it builds the C++ tests a second time with Clang coverage, in parallel with the library's job
    • the comment shows the totals and the coverage of the lines the PR changed (diff-cover against the merge commit's first parent); no comparison with main yet
    • the coverage HTML artifact is gone; the run summary has the per-file table
  • PR reports (WPT, coverage) share one path:
    • jobs write <kind>/report.md and upload it with the new upload-pr-report action
    • wpt-report-comment.yml → pr-report-comment.yml: one comment per report, edited on every push; it finds the PR by the run's head owner:branch, so fork PRs work without passing the PR number around
  • fixed the FileFormat enum sync check, which always passed (it compared two empty lists); both enum sync scripts are merged into one
  • test:js now loads tests/jest.config.json (RN preset + setup.ts were never applied)
  • bumped action majors; gradle/actions stays on v5 since v6 moved caching into a proprietary component
  • pinned runners to ubuntu-24.04

Important

ci.yml only runs on PRs targeting main, so this PR gets CI only after #1440 is merged and it's retargeted.
The WPT comment (workflow_run) takes effect only after merge.

@closetcaiman
closetcaiman added this pull request to stack #1462 November 16, 2026 17:33
@closetcaiman closetcaiman added the ci Updates to CI/CD workflows, automation scripts, and pipeline configs label Nov 16, 2026
Base automatically changed from chore/pnpm-migration to main November 16, 2026 17:57

@maciejmakowski2003 maciejmakowski2003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

gooood job!

@github-actions github-actions Bot added the conflicts This PR has conflicts with the base branch. label Nov 16, 2026
@github-actions github-actions Bot removed the conflicts This PR has conflicts with the base branch. label Nov 16, 2026
@mdydek
mdydek merged commit 7f627e1 into main Nov 17, 2026
41 of 46 checks passed
@mdydek
mdydek deleted the ci/restructure branch November 17, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Updates to CI/CD workflows, automation scripts, and pipeline configs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants