fix: silence messages on module load#3688
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (56)
✨ Finishing Touches
🧪 Generate 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
🤖 I have created a release *beep* *boop* --- ## [9.10.0](v9.9.0...v9.10.0) (2025-08-19) ### Features * migrate to scheduler plugin interface and scheduler plugins ([#3676](#3676)) ([26fcd38](26fcd38)) ### Bug Fixes * don't rate limit jobs when touching ([#3699](#3699)) ([9c499e5](9c499e5)) * raise an error when different rules produce identical (temp) output ([#3667](#3667)) ([f627176](f627176)) * silence messages on module load ([#3688](#3688)) ([b13e9c8](b13e9c8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
<!--Add a description of your PR here--> On some HPC, `module load` prints to `stdout` when loading the requirements of the environmental modules: ``` $ module load bowtie2/2.5.4 Loading bowtie2/2.5.4 Loading requirement: binutils/2.40 gcc/13.2.0 ``` Not sure why, but this triggers an error when `snakemake` tries to parse it: ``` Unable to determine Python version from output 'Loading bowtie2/2.5.4 Loading requirement: binutils/2.40 gcc/13.2.0 [3, 13] ': Expecting value: line 1 column 1 (char 0) ``` Changes have been tested on both `lmod` and `envmod`. ### QC <!-- Make sure that you can tick the boxes below. --> * [x] The PR contains a test case for the changes or the changes are already covered by an existing test case. * [x] The documentation (`docs/`) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Updated environment module loading to suppress output during module load operations for a cleaner user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
🤖 I have created a release *beep* *boop* --- ## [9.10.0](snakemake/snakemake@v9.9.0...v9.10.0) (2025-08-19) ### Features * migrate to scheduler plugin interface and scheduler plugins ([snakemake#3676](snakemake#3676)) ([26fcd38](snakemake@26fcd38)) ### Bug Fixes * don't rate limit jobs when touching ([snakemake#3699](snakemake#3699)) ([9c499e5](snakemake@9c499e5)) * raise an error when different rules produce identical (temp) output ([snakemake#3667](snakemake#3667)) ([f627176](snakemake@f627176)) * silence messages on module load ([snakemake#3688](snakemake#3688)) ([b13e9c8](snakemake@b13e9c8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
On some HPC,
module loadprints tostdoutwhen loading the requirements of the environmental modules:Not sure why, but this triggers an error when
snakemaketries to parse it:Changes have been tested on both
lmodandenvmod.QC
docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).Summary by CodeRabbit