Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BrunoRDS opened this issue Jul 19, 2023 · 1 comment

Comments

@BrunoRDS
Copy link
Collaborator

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.

@chazmuzz
Copy link

chazmuzz commented Jan 2, 2024

More generally, Lage seems to be bad at telling you which changed files are causing a cache miss. It would be great to see some improvement there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants