-
Notifications
You must be signed in to change notification settings - Fork 212
fix(ci): reduce ci usage by only running jobs on merge group #3194
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,6 @@ | ||||||||||||
| name: Acceptance Tests | ||||||||||||
| on: | ||||||||||||
|
||||||||||||
| on: | |
| on: | |
| push: | |
| branches: | |
| - main |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,6 @@ | ||||||||||||||||||||||||||
| name: Sysgo E2E Tests | ||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| on: | |
| on: | |
| pull_request: | |
| paths: | |
| - 'node/**' | |
| - 'tests/**' | |
| - '.github/workflows/node_e2e_sysgo_tests.yaml' |
Copilot
AI
Dec 12, 2025
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.
Removing the push trigger for the main branch means these tests won't run after PRs are merged to main. While merge_group should catch issues before merging, consider these scenarios:
- Direct pushes to main (if permitted) won't trigger tests
- Post-merge verification won't occur
- Branch protection may not have visibility into the health of the main branch
If your workflow relies exclusively on merge queues and direct pushes to main are disabled via branch protection, this may be acceptable. However, it's worth verifying that this aligns with your repository's branch protection rules and merge strategy.
| on: | |
| on: | |
| push: | |
| branches: | |
| - main |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,6 @@ | ||||||||||||||||||||
| name: Proof | ||||||||||||||||||||
| on: | ||||||||||||||||||||
|
||||||||||||||||||||
| on: | |
| on: | |
| pull_request: | |
| paths: | |
| - 'tests/**' | |
| - '.github/**' | |
| - 'justfile' | |
| - 'Cargo.*' | |
| - '**/Cargo.*' |
Copilot
AI
Dec 12, 2025
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.
Removing the push trigger for the main branch means these tests won't run after PRs are merged to main. While merge_group should catch issues before merging, consider these scenarios:
- Direct pushes to main (if permitted) won't trigger tests
- Post-merge verification won't occur
- Branch protection may not have visibility into the health of the main branch
If your workflow relies exclusively on merge queues and direct pushes to main are disabled via branch protection, this may be acceptable. However, it's worth verifying that this aligns with your repository's branch protection rules and merge strategy.
| merge_group: | |
| merge_group: | |
| push: | |
| branches: | |
| - main |
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.
Removing the
pull_requesttrigger means these critical tests will not run on pull requests at all. This creates a significant workflow issue:If the goal is to reduce CI usage, consider alternative approaches:
pull_requestbut add conditions to skip on draft PRsCompletely removing
pull_requesttriggers from test workflows is likely to cause more problems than it solves.