Fix minimum dependency Pro test selection on Node 20#4184
Conversation
|
+ci-force-full |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughOne pattern, ChangesNon-RSC test path ignore update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Force-Full Hosted CI RequestedTriggered 9 workflow(s) for View progress in the Actions tab. |
Why
mainis red because the full main-push JS unit matrix ran the Node 20 minimum-dependency conversion after PR #4168 and then executedpackages/react-on-rails-pro/tests/boundedCacheProvider.client.test.tsx. That test imports@testing-library/reactand@testing-library/jest-dom, whilescript/convertintentionally removes@testing-library/*from the root minimum-dependency package set.Follow-on docs PRs could still merge, but their main-push CI failed before useful docs checks because the docs-only safety guard refuses to validate docs-only pushes when the previous
mainSHA already has failed workflows. So the later docs merges are symptoms; the original poison is the unskipped Pro client test in the Node 20/minimum-dependency lane.What changed
Add
boundedCacheProvider[.]client[.]testto the Protest:non-rscignore pattern generated byscript/convert, matching the existing minimum-dependency treatment for other Pro client/RSC tests that need React 19 or testing-library helpers.Why I Am Confident
script/convertremoves@testing-library/*, andboundedCacheProvider.client.test.tsximports@testing-library/reactplus@testing-library/jest-dom, so it belongs with the existing converted-lane client/RSC test skips.ruby script/convert, the generated Protest:non-rscregex ignoredtests/boundedCacheProvider.client.test.tsxand did not ignore an unrelated control test,tests/buildCacheKey.test.ts.JS unit tests for Renderer package / build (20)succeeded on main commita5b9e7e7d, including the Pro JS tests after conversion.a5b9e7e7dcompleted successfully.Validation
ruby -c script/convertbash -n script/ci-changes-detector && script/ci-changes-detector origin/mainruby script/convert, confirmed convertedpackages/react-on-rails-pro/package.jsonignorestests/boundedCacheProvider.client.test.tsx, and confirmed the same regex does not ignoretests/buildCacheKey.test.ts.git diff --check && ruby -c script/convert && BUNDLE_GEMFILE=Gemfile bundle exec rubocop script/convertpnpm start format.listDifferentcodex review --uncommitted: no actionable correctness issues.codex review --base origin/main: clean.bin/ci-local --changedwas attempted. It failed in repo-wide RuboCop on pre-existing unrelated offenses underreact_on_rails/spike/3313_prism_gemfile_rewriter/*; it had already passed setup/docs-sidebar before that unrelated lint failure.Changelog
Not user-visible.
Summary by CodeRabbit