Skip to content

Fix wrong python version selection in some daily CI tasks#2576

Merged
egparedes merged 13 commits intoGridTools:mainfrom
egparedes:fix-daily-ci-py-versions
Apr 17, 2026
Merged

Fix wrong python version selection in some daily CI tasks#2576
egparedes merged 13 commits intoGridTools:mainfrom
egparedes:fix-daily-ci-py-versions

Conversation

@egparedes
Copy link
Copy Markdown
Contributor

@egparedes egparedes commented Apr 16, 2026

Fix a bug in the way nox was called to run some specific sessions which made every CI matrix entry run more tests than needed: -t (tag filter) and -s (session filter) options do not interact together as an intersection, but -t completely replaces -s.

Additionally, fix some other minor issues and add comments on how to debug CI issues for this workflow without running all tests.

@egparedes egparedes marked this pull request as ready for review April 17, 2026 15:42
Copilot AI review requested due to automatic review settings April 17, 2026 15:42
@egparedes egparedes requested a review from edopao April 17, 2026 15:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes daily CI running unintended extra tests by correcting nox session selection and aligning Python version handling, plus adds CI debugging guidance.

Changes:

  • Update nox/uv Python version selection behavior and constraints in noxfile.py.
  • Fix daily CI workflow invocation to use nox -k (instead of -t overriding -s) and pass the target Python via -p.
  • Add CI-only debugging comments/options for collecting tests without running them.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
noxfile.py Updates shebang Python version, sets UV_VENV_CLEAR, and adjusts the manual Python version constraint used when creating session envs.
.github/workflows/daily-ci.yml Adjusts the CI run commands to avoid -t overriding -s, adds debug output, and documents a collect-only knob.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread noxfile.py
Comment thread noxfile.py
Comment thread .github/workflows/daily-ci.yml
Comment thread .github/workflows/daily-ci.yml Outdated
@egparedes egparedes requested a review from romanc April 17, 2026 15:55
Copy link
Copy Markdown
Contributor

@romanc romanc left a comment

Choose a reason for hiding this comment

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

To be completely honest, this is all a bit voodo to me, but in general terms I think this looks good.

Happy to hear that we don't have 80 workflosws running anymore nightly 🎉

@egparedes egparedes merged commit 24ed83e into GridTools:main Apr 17, 2026
32 checks passed
Copy link
Copy Markdown
Contributor

@edopao edopao left a comment

Choose a reason for hiding this comment

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

Thanks for this fix! LGTM

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.

4 participants