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
Read output of actions.run
from BXL
#572
Comments
Is there a good reason to do it in BXL? For CI purpose it looks more reasonable to find the files with BXL is quite power tool, but it cannot replace everything. (I think what you ask is not easily possible, but I can be wrong, and this feature could be added to buck2). Also check https://github.com/facebookincubator/buck2-change-detector project. CC @ndmitchell |
It doesn't have to be I suppose, but I figured that getting the right targets to build and/or test afterwards would be easier from BXL. That link is a 404 for me, but it sounds interesting, is it private? |
Sorry, the project is not published yet.
Also, consider this issue: if build fails, and users want to reproduce it, it would be easier for them if there was Anyway, BXL cannot do it now easily, but may be able to do it one day if there's demand for it. |
That's too bad, do you know if there are plans to publish it? More out of curiosity really, I'm going to get this working on our side now either way.
That's a good point.
Thanks for the clarification! |
@cbarrete buck2-change-detector is public now. |
Thanks for letting me know! |
Is there a way to read the output of a command (or even an arbitrary file tracked by buck2) into BXL? I'd like to somehow get a string back that I could further process.
In case this is an XY problem, my use case is that I want to run the tests for the files touched in the current commit (for CI purposes). I intended to iterate over the output of
git diff-tree -r --name-only --no-commit-id HEAD
, find the owners of those files and build/test them, but I cannot figure out a way of getting the file names into BXL, either via stdout or a declared output that I dumped the output of git into.Thanks!
The text was updated successfully, but these errors were encountered: