-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
ci: run tests on commits to master and next #11783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughModifies the GitHub Actions workflow to add push event triggers for master and next branches, in addition to the existing pull_request trigger. No changes to job definitions or workflow logic. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ 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 |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/tests.yml (1)
3-6: Operational note: CI load impact from running tests on every master/next commit.Running tests on every push to master and next branches will increase CI load. Consider the frequency of commits and potential queue delays. If this becomes problematic, you may want to add rate limiting (e.g., only on tagged releases) or further refine the branch filter.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/tests.yml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
- GitHub Check: tests-linux (20) / sap
- GitHub Check: tests-linux (20) / mssql
- GitHub Check: tests-linux (20) / oracle
- GitHub Check: tests-linux (18) / sap
- GitHub Check: tests-linux (20) / cockroachdb
- GitHub Check: tests-linux (18) / postgres (14)
- GitHub Check: tests-linux (18) / sqljs
- GitHub Check: tests-linux (18) / postgres (17)
- GitHub Check: tests-linux (18) / oracle
- GitHub Check: tests-linux (18) / sqlite
- GitHub Check: tests-linux (18) / better-sqlite3
- GitHub Check: tests-linux (18) / mysql_mariadb_latest
- GitHub Check: tests-linux (18) / mysql_mariadb
- GitHub Check: tests-linux (18) / mssql
- GitHub Check: tests-windows / sqljs
- GitHub Check: tests-linux (18) / mongodb
- GitHub Check: tests-windows / sqlite
- GitHub Check: tests-windows / better-sqlite3
- GitHub Check: formatting
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
.github/workflows/tests.yml (1)
3-6: Verify intent: Should tests always run on master/next commits, or only when files change?The push trigger syntax is correct, but there's a potential misalignment between the PR objective and the implementation. The PR states the goal is to "run tests against all commits to master and next branches," but the jobs are gated by path-based conditions (e.g., line 77:
if: contains(needs.detect-changes.outputs.changes, 'src-or-tests')).This means tests won't run on commits to master/next if no src or test files changed (e.g., doc-only commits). This could be intentional optimization, but it conflicts with the stated goal of testing "all commits."
Consider:
- If the intent is to always run tests on master/next: Remove or conditionally disable the paths-filter check for push events.
- If the intent is to optimize CI by skipping tests when not needed: Update the PR description to clarify this.
|
Honestly, I would undo the entire PR #11761 (and possibly some of the other commits around that). Still, the actions don't run in forks, so contributors won't be able to test their changes in CI unless they submit a PR. Also, Basically, the entire CI setup was done on purpose the way it was last month ;) We did not really want to change it. |
Actions do run on forks. Example: https://github.com/typeorm/typeorm/pull/11732/checks
Once you introduce nx, you can always adopt CI to the new flow. #11761 brings immediate benefits for now (like branch protection rules, faster CI for some PRs).
Was it? The last significant changes I can see in the history are from June 2025...
Yet someone approved it and used it in the GH settings. So "we" didn't want to change it or you didn't want to change it? |
Co-authored-by: Oleg "OSA413" Sokolov <OSA413@users.noreply.github.com>
Description of change
Modifies our github workflow to run tests against all commits to
masterandnextbranches (though this PR is against master, not next).This behavior was changed via #11761.
Pull-Request Checklist
masterbranchThis pull request links relevant issues asFixes #00000There are new or updated unit tests validating the changeDocumentation has been updated to reflect this changeSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.