microsoft / microsoft/lage

[RFC]: Allow configuration of ignored command line arguments in calculating hash

Open
#294 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.