From a0a11e1de7f42a7f38b6cc1a574f7945e0481f75 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 26 Oct 2026 18:04:21 +0100 Subject: [PATCH] Pin the real selective-checks auto-approve test to main The test decides approval for a PR targeting main, but built SelectiveChecks with the checkout's default branch. On a release branch that skips provider tests, so the large provider change was estimated cheap and approved. Generated-by: Claude Opus 5 --- dev/breeze/tests/test_workflow_run_approval.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/breeze/tests/test_workflow_run_approval.py b/dev/breeze/tests/test_workflow_run_approval.py index 87e683029112d..6286cda6c3968 100644 --- a/dev/breeze/tests/test_workflow_run_approval.py +++ b/dev/breeze/tests/test_workflow_run_approval.py @@ -484,7 +484,9 @@ def test_write_step_summary_shows_failed_pull_requests_as_failed(tmp_path, monke ) def test_decide_approval_with_real_selective_checks(paths, approve): changed_files = [ChangedFile(path, 10) for path in paths] - selective_checks = SelectiveChecks(files=tuple(paths), commit_ref="HEAD", pr_labels=()) + selective_checks = SelectiveChecks( + files=tuple(paths), default_branch="main", commit_ref="HEAD", pr_labels=() + ) decision = decide_approval( base_branch="main", changed_files=changed_files, selective_checks=selective_checks