ci: Skip test suite when no code files changed #5889
1 issue
code-review: Found 1 issue (1 high)
High
Tests on master/release/major branches can be incorrectly skipped - `.github/workflows/test-integrations-ai.yml:51`
The PR description states 'Pushes to master/release//major/ branches always run the full suite', but the test job's if condition (line 51) only checks needs.changes.outputs.has_code_changes == 'true' without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Also found at:
.github/workflows/ci.yml:44.github/workflows/test-integrations-agents.yml:51.github/workflows/test-integrations-cloud.yml:51.github/workflows/test-integrations-common.yml:51.github/workflows/test-integrations-dbs.yml:51.github/workflows/test-integrations-gevent.yml:51.github/workflows/test-integrations-graphql.yml:51.github/workflows/test-integrations-mcp.yml:51.github/workflows/test-integrations-network.yml:51.github/workflows/test-integrations-tasks.yml:51.github/workflows/test-integrations-web-1.yml:51.github/workflows/test-integrations-web-2.yml:51.github/workflows/test-integrations-flags.yml:51scripts/split_tox_gh_actions/templates/base.jinja:36-56
Duration: 4m 41s · Tokens: 2.7M in / 49.6k out · Cost: $4.70 (+extraction: $0.01, +merge: $0.00, +fix_gate: $0.00)
Annotations
Check failure on line 51 in .github/workflows/test-integrations-ai.yml
sentry-warden / warden: code-review
Tests on master/release/major branches can be incorrectly skipped
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 44 in .github/workflows/ci.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-agents.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-cloud.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-common.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-dbs.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-gevent.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-graphql.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-mcp.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-network.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-tasks.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-web-1.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-web-2.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 51 in .github/workflows/test-integrations-flags.yml
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.
Check failure on line 56 in scripts/split_tox_gh_actions/templates/base.jinja
sentry-warden / warden: code-review
[G7J-P8F] Tests on master/release/major branches can be incorrectly skipped (additional location)
The PR description states 'Pushes to master/release/**/major/** branches always run the full suite', but the test job's `if` condition (line 51) only checks `needs.changes.outputs.has_code_changes == 'true'` without considering the branch. This means pushes to protected branches that contain only non-code changes (e.g., a merge commit touching only docs) will skip tests, violating the stated requirement. The condition should include a bypass for push events to these protected branches.