Problem
Changes to packages/react-on-rails-pro-node-renderer/ do not trigger the pnpm build (which runs tsc) or type-check CI jobs. This allowed a TypeScript compilation error to be merged to master in PR #2456.
Root Cause
The change detection script (script/ci-changes-detector) has two issues:
-
Orphaned flag: The script correctly computes RUN_PRO_NODE_RENDERER_TESTS=true when node-renderer files change (line 288), but no workflow in .github/workflows/ references run_pro_node_renderer_tests — it is never consumed.
-
Missing condition: PRO_NODE_RENDERER_CHANGED is not included in the conditions for RUN_PRO_TESTS (line 280) or RUN_PRO_LINT (line 276), which are the flags that the pro-test-package-and-gem.yml and pro-lint.yml workflows actually gate on.
As a result, when a PR only touches files under packages/react-on-rails-pro-node-renderer/, the detect-changes job runs but all downstream build/test/lint jobs are SKIPPED.
Impact
Suggested Fix
Either:
- Add
PRO_NODE_RENDERER_CHANGED to the RUN_PRO_TESTS and RUN_PRO_LINT conditions in script/ci-changes-detector
- Or create a dedicated workflow that consumes the
run_pro_node_renderer_tests flag and runs pnpm build + type-check + jest for the node-renderer package
Problem
Changes to
packages/react-on-rails-pro-node-renderer/do not trigger thepnpm build(which runstsc) or type-check CI jobs. This allowed a TypeScript compilation error to be merged to master in PR #2456.Root Cause
The change detection script (
script/ci-changes-detector) has two issues:Orphaned flag: The script correctly computes
RUN_PRO_NODE_RENDERER_TESTS=truewhen node-renderer files change (line 288), but no workflow in.github/workflows/referencesrun_pro_node_renderer_tests— it is never consumed.Missing condition:
PRO_NODE_RENDERER_CHANGEDis not included in the conditions forRUN_PRO_TESTS(line 280) orRUN_PRO_LINT(line 276), which are the flags that thepro-test-package-and-gem.ymlandpro-lint.ymlworkflows actually gate on.As a result, when a PR only touches files under
packages/react-on-rails-pro-node-renderer/, thedetect-changesjob runs but all downstream build/test/lint jobs are SKIPPED.Impact
thistype mismatch inworker.ts:170) that breakspnpm build/pnpm install(since thepreparescript runstsc).Suggested Fix
Either:
PRO_NODE_RENDERER_CHANGEDto theRUN_PRO_TESTSandRUN_PRO_LINTconditions inscript/ci-changes-detectorrun_pro_node_renderer_testsflag and runspnpm build+ type-check + jest for the node-renderer package