microsoft / microsoft/lage

Feature Request: Log environmentGlob hash to console w/ running lage task (Dry run)

Open
#688 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
816
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Overview

In order to build automation and for all around convenience, it would be great to have a CLI command to have lage calculate and output the environmentGlob hash without needing to run a lage task w/ --logLevel=verbose.

Example: yarn lage cache --envGlobHash

Details

It would be helpful to check the environmentGlob hash without needing to trigger work not needing to be done. The specific use case I have in mind is calculating the environmentGlob hash on different platforms/environments off the same commit in a CI pipeline to gate commits verifying that the cache they produced can be used across these different platforms/environments.

Another way to consider this would be a having a --dryrun CLI option that does all the prep work for a lage task run without actually running the task. So yarn lage build --verbose --dryrun should log the environmentGlob hash to console without actually building anything.

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.

Research direction

Start by tracing the CLI entry points for yarn lage cache --envGlobHash and yarn lage build --verbose --dryrun, then determine which behavior should be supported. Done means the environmentGlob hash is printed without running task work, with the chosen command documented and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.