-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for prompting users when a lock is needed #5
Comments
Perhaps instead of the "Do nothing" step, a boolean flag could enable the bot to post "Your lockfile looks great! Nothing to do." |
Hi @MattF-NSIDC, thanks for chipping in! I'd like to preface this by saying that I was planning to move towards an automatic no-prompting solution given permissions issues when working with PRs from forks (see CryoInTheCloud/hub-image#88 (comment)). This would be similar to linters like pre-commit-ci that automatically commit changed files, when it detects that certain files need updating. That said, I really like your idea on having a bot comment on whether a lockfile update is needed. This would be a form of feedback, similar to what Jessica requested in CryoInTheCloud/hub-image#48 on requiring Note that all this logic might actually need to be implemented over at https://github.com/weiji14/conda-lock-refresh-demo (trying to keep this |
This was my inspiration :) I like this approach because it avoids pushing things to my working branch without my consent. I don't like getting confused because of a bot surprise pushing to my branch while I'm working.
Excited to chat more :) EDIT: In quoting by copy-paste I think I accidentally sent a notification out to |
Hey @weiji14, love this :) I've been thinking about making something like this, maybe we can work together!
What I'm looking to achieve with a conda-lock action is a workflow that not only provides a slash command like
/condalock
like this one does, but also notifies contributors when it's needed. Because not all changes impact the environment source fileenvironment.yml
, and even changes that do may not require another lock. For example:Currently, this isn't very feasible because there's no way to validate a lock file agrees with its sources without also potentially triggering a solve, so doing a check like this would be slow, not real-time-ish like we'd want from a chat bot. I'm working on adding a new "validate" command to conda-lock that will enable users to select one or both of these checks:
conda-lock.yml
compatible with the specification in the source file e.g.environment.yml
? i.e. are the input sources still compatible with the lock?conda-lock.yml
includescontent_hash
es of its input sources; do those still match the input sources? i.e. are the input sources exactly the same?Both of these checks can be done really fast, but the former seems more useful than the latter. You can make changes to an
environment.yml
that make it logically the same but not identical.Discussion on this feature proposal here: conda/conda-lock#479
The text was updated successfully, but these errors were encountered: