Convert test runs into actions #19633
Replies: 4 comments 7 replies
-
I believe that non-tests depending on tests has caused issues with Separately, it's also caused issues with our build cleaner. |
Beta Was this translation helpful? Give feedback.
-
Satus so far:
Point 1 is a blocker for the whole concept. I believe that test report generation inside Bazel is valid as I would like to bundle them with my release package, which I would like to be produced by Bazel. Point 2 feels like a workaround, but will solve some of my problems. I think point 3 can be solved in a backward compatible way. At the moment, I don't know how to solve point 4. |
Beta Was this translation helpful? Give feedback.
-
We met with @moroten in person and BazelCon and discussed this proposal a bit. It would be a big change to how Bazel works (for example, one would suddenly be able to run actions that depends on failed actions, which didn't use to be the case, aspects would be able to generate test actions which the BEP does not support, etc.) and it also has a large number of "unknown unknowns", at least to me -- I can't say with confidence what invariants this proposal would break inside Bazel and in systems that depend on it. It's not an absolute contraindication, but it requires a commensurately large benefit to the community and from the lack of enthusiastic support on this thread and the bazel-discuss thread, it looks like there isn't a widespread need. So I propose to shelve this idea until such support materializes; if it does exist, I could imagine implementing a prototype that's not checked in to discover what issues would arise within Bazel, then if it works well, submitting it behind a |
Beta Was this translation helpful? Give feedback.
-
One conclusion is that we should not implement anything that only a minority of the community wants, the maintenance cost becomes too high then. If you were interested in this idea, please vote for it. |
Beta Was this translation helpful? Give feedback.
-
I have written a draft about how Bazel can let rule authors depend on test results, for example to aggregate and generate test reports during the build phase. It basically creates a
TestResultInfo
and exposesctx.actions.run_test
.The document is available at https://docs.google.com/document/d/1PMRwGzpF1SR7JGHK6OvzlRJeL2Z5oXS6xUpq6ts9Ffc/edit?usp=sharing
This is just an initial draft. I will fill in more details if the proposal sounds reasonable and something the Bazel community is happy to adopt.
Best regards,
Fredrik
Beta Was this translation helpful? Give feedback.
All reactions