Skip to content

Cleanup ci.yaml matrix usage#7260

Open
ShaharNaveh wants to merge 5 commits intoRustPython:mainfrom
ShaharNaveh:CLN-ci-matrix
Open

Cleanup ci.yaml matrix usage#7260
ShaharNaveh wants to merge 5 commits intoRustPython:mainfrom
ShaharNaveh:CLN-ci-matrix

Conversation

@ShaharNaveh
Copy link
Contributor

@ShaharNaveh ShaharNaveh commented Feb 28, 2026

Summary by CodeRabbit

  • Chores
    • Restructured CI pipeline to use a matrix-driven configuration for clearer, scalable job definitions.
    • Consolidated build and test steps across platforms for more consistent execution.
    • Unified platform-dependent and -independent test handling, simplifying skip/exclude logic.
    • Improved messaging and control for environment-polluting tests and per-job arguments.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 28, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e333638 and f140f63.

📒 Files selected for processing (1)
  • .github/workflows/ci.yaml

📝 Walkthrough

Walkthrough

Refactors .github/workflows/ci.yaml to replace OS-specific skip/env variables with a matrix.job-driven configuration (fields: os, cargo_args, env_polluting_tests, skips), consolidating build/test steps and removing per-OS conditional blocks.

Changes

Cohort / File(s) Summary
CI workflow restructuring
.github/workflows/ci.yaml
Replaced OS-specific skip and ENV_POLLUTING_TESTS_* variables with a matrix.job array containing os, cargo_args, env_polluting_tests, and skips; removed WINDOWS_SKIPS and related comments; unified build and test steps to consume matrix.job (EXTRA_CARGO_ARGS, dynamic -x exclude lists, and env-polluting test handling); added Windows 2025 matrix entry with jit features.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • youknowone

Poem

🐇 I hopped through YAML, neat and spry,

Matrix seeds planted in the sky,
Jobs now dance in tidy rows,
Fewer branches, cleaner flows,
A carrot-toast to CI, bye-bye old woes!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main objective of the pull request—refactoring CI configuration to consolidate and clean up matrix-driven test execution patterns.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ShaharNaveh ShaharNaveh marked this pull request as ready for review February 28, 2026 12:52
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/ci.yaml (1)

343-367: ⚠️ Potential issue | 🟠 Major

ENV_POLLUTING_TESTS_COMMON is referenced but not defined.

Line 346 references ${{ env.ENV_POLLUTING_TESTS_COMMON }}, but this environment variable is not defined anywhere in the file. Combined with matrix.job.env_polluting_tests being set to "" for all matrix entries, the for-loop body will never execute, making this step a silent no-op.

If there are currently no environment-polluting tests to check, consider either:

  1. Defining ENV_POLLUTING_TESTS_COMMON in the env: section (even if empty, for clarity), or
  2. Removing this step entirely if it's no longer needed, or
  3. Adding a comment explaining that this step is intentionally dormant pending future polluting tests.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/ci.yaml around lines 343 - 367, The workflow step's
for-loop references ENV_POLLUTING_TESTS_COMMON and
matrix.job.env_polluting_tests but ENV_POLLUTING_TESTS_COMMON is not defined, so
the loop will be a no-op; fix by defining ENV_POLLUTING_TESTS_COMMON in the
workflow's env: block (even as an empty string) or remove/comment out this step
if it's no longer needed — locate the references to ENV_POLLUTING_TESTS_COMMON
and matrix.job.env_polluting_tests in the CI step that runs rustpython (the for
thing in ... loop) and either add an env: ENV_POLLUTING_TESTS_COMMON: "" entry
at the top-level env or delete/add a clear comment explaining the step is
intentionally dormant.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In @.github/workflows/ci.yaml:
- Around line 343-367: The workflow step's for-loop references
ENV_POLLUTING_TESTS_COMMON and matrix.job.env_polluting_tests but
ENV_POLLUTING_TESTS_COMMON is not defined, so the loop will be a no-op; fix by
defining ENV_POLLUTING_TESTS_COMMON in the workflow's env: block (even as an
empty string) or remove/comment out this step if it's no longer needed — locate
the references to ENV_POLLUTING_TESTS_COMMON and matrix.job.env_polluting_tests
in the CI step that runs rustpython (the for thing in ... loop) and either add
an env: ENV_POLLUTING_TESTS_COMMON: "" entry at the top-level env or delete/add
a clear comment explaining the step is intentionally dormant.

ℹ️ Review info

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5c726e1 and e333638.

📒 Files selected for processing (1)
  • .github/workflows/ci.yaml

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