Replies: 1 comment
-
IIUC, with what you described the problem is that ever If you really, really want this to work, I would recommend just using Though generally I think this looks all like fragile and painful to maintain trickery, and I would just throw more hardware and parallelism at it, and run all tests all the time. |
Beta Was this translation helpful? Give feedback.
-
Hi,
We have a Rust workspace with multiple crates and want to optimize our CI pipeline to only test, release, and deploy crates that were actually updated.
Current Approach
According to Cargo documentation, I should be able to detect which artifacts were rebuilt using the
fresh
field. Therefore, usingcrane
, I build the entire workspace:Then I try to detect rebuilt crates with this simple script:
Problem
This approach isn't working because:
Question
Is there a way to reliably detect which crates were actually rebuilt due to code changes?
Can we leverage nix's caching mechanism to help with this?
Are there alternative approaches to achieve selective testing/deployment in a workspace?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions