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

RunCommand: provide build inputs information #615

Open
Taneb opened this issue Nov 28, 2018 · 1 comment
Open

RunCommand: provide build inputs information #615

Taneb opened this issue Nov 28, 2018 · 1 comment

Comments

@Taneb
Copy link
Contributor

Taneb commented Nov 28, 2018

Currently, there is no way to go from the JSON file RunCommand provides to the build inputs, which I believe are stored with the build in Hydra's database.

I want this to be able to log a git commit with some statistics in an external service on each build, and also separately to run a program kept in the same git repository that is not suitable to do as part of a nix build, making sure the program is kept in sync.

It's currently possible to fake this by scraping the web interface, but that is an unsatisfying way to achieve this.

@grahamc
Copy link
Member

grahamc commented Jul 27, 2020

I took a look at this, but it isn't so clear cut if that would be useful in a principled way. What I mean is that the RunCommand plugin only executes once, while that same output might be part of many different evaluations, with many different inputs. Perhaps it is useful still, but if you want to create a map of all the inputs used to produce an output -- it may not be the complete log you're expecting -- just the first time. What do you think?

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