Skip to content

Commit

Permalink
ci: fix CircleCI dynamic job selection
Browse files Browse the repository at this point in the history
We fix a residual issue in #11668 whereby no suites where actually
dynamically selected for CircleCI.
  • Loading branch information
P403n1x87 committed Jan 8, 2025
1 parent 8dc9bdc commit 0e31457
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/gen_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ def gen_required_suites(template: dict) -> None:
required_suites = template["requires_tests"]["requires"] = []
for_each_testrun_needed(
suites=sorted(
set(n.rpartition("::")[-1] for n, s in get_suites().items() if not s.get("skip", False))
& set(template["jobs"].keys())
set(
n
for n, s in get_suites().items()
if not s.get("skip", False) and n.rpartition("::")[-1] in template["jobs"]
)
),
action=lambda suite: required_suites.append(suite),
action=lambda suite: required_suites.append(suite.rpartition("::")[-1]),
git_selections=extract_git_commit_selections(os.getenv("GIT_COMMIT_DESC", "")),
)

Expand Down

0 comments on commit 0e31457

Please sign in to comment.