Skip to content

ai-code-review-rc: skip unsampled PRs before starting CodeBuild - #543

Merged
theihor merged 1 commit into
masterfrom
ai-review-rc-sampling-gate
Oct 8, 2026
Merged

theihor merged 1 commit into
masterfrom
ai-review-rc-sampling-gate

Conversation

@theihor

@theihor theihor commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

The get-commits job starts a CodeBuild runner for every PR, even when the series is outside the shadow review sample. Move sampling to the job condition so that unsampled PRs skip both jobs before a runner is allocated.

Select PRs whose head SHA starts with 0-3, approximately one in four. This replaces the series-ID modulo check with four short expressions. Keep test PRs against ai-review-base unconditional.

Assisted-by: Codex:GPT-6

The get-commits job starts a CodeBuild runner for every PR, even when
the series is outside the shadow review sample. Move sampling to the
job condition so that unsampled PRs skip both jobs before a runner is
allocated.

Select PRs whose head SHA starts with 0-3, approximately one in four.
This replaces the series-ID modulo check with four short expressions.
Keep test PRs against ai-review-base unconditional.

Assisted-by: Codex:GPT-6
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor
theihor force-pushed the ai-review-rc-sampling-gate branch from 9545c4d to f0ad1be Compare October 8, 2026 23:29
@theihor
theihor merged commit dda79f4 into master Oct 8, 2026
70 checks passed
@theihor
theihor deleted the ai-review-rc-sampling-gate branch October 8, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant