[RFC]: Allow configuration of ignored command line arguments in calculating hash
Open
@kenotron is already working on this.
Since Jul 1, 2022.
dev design
- Dominant language
- TypeScript
- Stars
- 816
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
Overview
Because of sharding, we may want to allow cross shard caching. By default, lage will use all passed-through CLI args as part of the hash. We should allow tasks that are meant to be run in many boxes to use a consistent hash across those shards.
For example:
lage test --shard 1 --shardTotal 10
should be able to share its cache as other shards running:
lage test --shard 2 --shardTotal 10
We should add a config like this:
module.exports = {
pipeline: {
test: {
ignoredCLIArgs: ['--shard'],
ignoredEnvVars: [],
deps: []
}
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.