fix: fix --consider-ancient for input functions (was not applied in those cases)#3788
Conversation
📝 WalkthroughWalkthroughAdds conditional propagation of the "ancient" flag in rule item processing: after default flag application, both string and callable items receive the ancient flag when mark_ancient is true. No public API changes; no other control flow or error handling modifications. Changes
Sequence Diagram(s)sequenceDiagram
participant R as Rule
participant M as FlagMarker
participant I as Item (string/callable)
R->>M: process(item, mark_ancient)
M->>I: apply default flags
alt mark_ancient == true
M->>I: attach "ancient" flag
else mark_ancient == false
M-->>I: no additional flag
end
I-->>R: item with updated flags
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.py⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (1)src/snakemake/rules.py (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). (46)
🔇 Additional comments (1)
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. Comment |
🤖 I have created a release *beep* *boop* --- ## [9.13.2](v9.13.1...v9.13.2) (2025-10-12) ### Bug Fixes * fix --consider-ancient for input functions (was not applied in those cases) ([#3788](#3788)) ([c28da7c](c28da7c)) * only modify wrapper URI if imported rule actually uses a wrapper ([#3790](#3790)) ([08ef3b4](08ef3b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…hose cases) (snakemake#3788) ### Description <!--Add a description of your PR here--> ### 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 * **Bug Fixes** * Ensures the “ancient” flag is consistently applied to inputs and outputs after default flags are set. * Correctly propagates the “ancient” flag for both string and callable items, improving reliable rule evaluation and preventing unintended re-runs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
🤖 I have created a release *beep* *boop* --- ## [9.13.2](snakemake/snakemake@v9.13.1...v9.13.2) (2025-10-12) ### Bug Fixes * fix --consider-ancient for input functions (was not applied in those cases) ([snakemake#3788](snakemake#3788)) ([c28da7c](snakemake@c28da7c)) * only modify wrapper URI if imported rule actually uses a wrapper ([snakemake#3790](snakemake#3790)) ([08ef3b4](snakemake@08ef3b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Description
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