Skip to content

ci: limit Python PR test matrix#5611

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:ci/skip-high-python-on-pr
Jun 30, 2026
Merged

ci: limit Python PR test matrix#5611
wanghan-iapcm merged 1 commit into
deepmodeling:masterfrom
njzjz-bot:ci/skip-high-python-on-pr

Conversation

@njzjz-bot

@njzjz-bot njzjz-bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • limit the Test Python pull request matrix to the oldest supported Python version, 3.10
  • keep the full 3.10/3.13 matrix for push and merge queue events
  • apply the same event-aware matrix to duration aggregation so it only downloads artifacts for versions that ran

Motivation

Most PR failures are expected to be version-independent or caught by the oldest supported Python version. Running the latest Python version on push and merge queue still preserves coverage before code lands, while reducing PR CI load.

Tests

  • Parsed .github/workflows/test_python.yml with PyYAML
  • git diff --check

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)

Summary by CodeRabbit

  • Chores
    • Adjusted automated Python test coverage to use a smaller version set for pull requests and a broader set for other runs.
    • Kept the same workflow behavior across all affected checks for more consistent validation.

Run the full Python version matrix only for push and merge queue events. Pull requests keep testing the oldest supported Python version to catch compatibility issues without doubling the CI cost for most PRs.

Authored by OpenClaw (model: custom-chat-jinzhezeng-group/gpt-5.5)
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: aa63d114-c91f-486b-98d8-85247c6bf1ed

📥 Commits

Reviewing files that changed from the base of the PR and between 1550599 and 62ec690.

📒 Files selected for processing (1)
  • .github/workflows/test_python.yml

📝 Walkthrough

Walkthrough

The Python version matrix in .github/workflows/test_python.yml is made event-dependent: pull_request events run only Python 3.10, while push and other events run ["3.10", "3.13"]. This applies to both the testpython and update_durations jobs.

Changes

CI Python Matrix

Layer / File(s) Summary
Conditional Python version matrix
.github/workflows/test_python.yml
Both testpython and update_durations job matrices replace hardcoded ["3.10", "3.13"] with a fromJSON conditional expression that selects ["3.10"] for PRs and ["3.10", "3.13"] for push events.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: limiting the Python test matrix for pull request CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.27%. Comparing base (1550599) to head (62ec690).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5611      +/-   ##
==========================================
- Coverage   82.41%   82.27%   -0.15%     
==========================================
  Files         903      903              
  Lines      101846   101845       -1     
  Branches     4071     4072       +1     
==========================================
- Hits        83940    83795     -145     
- Misses      16439    16579     +140     
- Partials     1467     1471       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@njzjz njzjz requested a review from wanghan-iapcm June 30, 2026 02:34
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Jun 30, 2026
Merged via the queue into deepmodeling:master with commit ee3bda4 Jun 30, 2026
57 checks passed
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.

2 participants