Skip to content

Comments

Actions Updates For pkg_resources Fix#775

Open
ericspod wants to merge 1 commit intoProject-MONAI:devfrom
ericspod:pkg_resources_fix
Open

Actions Updates For pkg_resources Fix#775
ericspod wants to merge 1 commit intoProject-MONAI:devfrom
ericspod:pkg_resources_fix

Conversation

@ericspod
Copy link
Member

@ericspod ericspod commented Feb 14, 2026

Description

This fixes any potential issues in the Actions scripts relating to the missing pkg_resources module. This was fixed in Core by forcing pip to build in the install environment rather than in an isolated one so that it's forced to use an older version of setuptools, thus avoiding errors with pkg_resources not being present in PyPI anymore. Here this doesn't occur directly in the scripts as an issue but can if models require certain dependencies which cannot be installed because of this error (eg. MetricsReloaded). See Project-MONAI/MONAI#8536.

Status

Ready

Please ensure all the checkboxes:

  • Codeformat tests passed locally by running ./runtests.sh --codeformat.
  • In-line docstrings updated.
  • Update version and changelog in metadata.json if changing an existing bundle.
  • Please ensure the naming rules in config files meet our requirements (please refer to: CONTRIBUTING.md).
  • Ensure versions of packages such as monai, pytorch and numpy are correct in metadata.json.
  • Descriptions should be consistent with the content, such as eval_metrics of the provided weights and TorchScript modules.
  • Files larger than 25MB are excluded and replaced by providing download links in large_file.yml.
  • Avoid using path that contains personal information within config files (such as use /home/your_name/ for "bundle_root").

Summary by CodeRabbit

  • Chores
    • Updated CI/CD pipeline workflows to use newer GitHub Actions versions and consolidated dependency caching configurations for improved build reliability and efficiency.

Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 14, 2026

Walkthrough

This PR updates GitHub Actions workflows by upgrading action versions (checkout v6, setup-python v6), simplifying Python version specification from 3.10.14 to 3.10, replacing manual caching logic with setup-python's built-in pip caching, adding wheel-stub to dependency installations, and correcting a typo.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Updates
.github/workflows/code-format-check.yml, .github/workflows/premerge-cpu.yml, .github/workflows/update-model-info.yml, .github/workflows/weekly-tests-cpu.yml
Upgraded checkout and setup-python actions to v6; simplified Python version from 3.10.14 to 3.10; replaced manual date-based and pip caching with setup-python's consolidated cache: 'pip' option; added wheel-stub to dependency upgrades; corrected typo from "parallize" to "parallelize" in code-format-check.yml.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A rabbit bounces with delight,
Actions updated, versions bright!
Caching flows smooth, dependencies clear,
Wheels spin faster throughout the year! 🚀

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating GitHub Actions scripts to address pkg_resources issues.
Description check ✅ Passed The description follows the template structure with a clear explanation of the fix, references to the upstream issue, and proper status marking. The relevant checklist items are appropriately marked.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into dev

✏️ 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

No actionable comments were generated in the recent review. 🎉


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.

@ericspod ericspod requested a review from wendell-hom February 14, 2026 19:08
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