-
-
Notifications
You must be signed in to change notification settings - Fork 636
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
EngineAware
rules should possibly log when starting when --no-dynamic-ui
#10536
Comments
IIRC, whether something is logged as it starts is dependent on its level. You can set the level of a
...would do it. |
Ah, that would solve half the problem. But the log wouldn't be very helpful because it would be missing any dynamic information. We'd get a bunch of I can't find the issue about allowing the |
#7907 is the dynamic info issue. |
@Eric-Arellano : Is this still desirable? |
I think it could be useful in CI to debug where hangs are happening. You can see which tests have have a started message but are missing a finished message Re how to make the starting message useful, I think the solution is to use |
We've begun including |
Or should we do something like unconditionally add I think I much prefer a template language though, like And then |
The Node starts running before the arguments to the @rule have been determined: they're the first thing requested in the Node body. pants/src/rust/engine/src/nodes.rs Lines 1171 to 1191 in 5798377
|
Okay, so sounds like a non-starter to include It'd be great if we could make it dynamic not just for this issue ( |
No: we could still include the Although I said above "moves further in the current direction", the situation currently is that we indicate that a But for the purposes of this ticket, I suppose that #11269 will be a net benefit... and so maybe it makes sense to wait for it, and then implement templating. |
So: this is definitely a thing that we can do if we want to. Sorry that I missed this comment earlier. The experience would likely be fairly good, assuming that |
cool i think it would be excellent polish! make the dynamic UI more useful and less like things are duplicating |
FWIW: Doing this would involve editing this bit of code to append the pants/src/rust/engine/src/nodes.rs Lines 1393 to 1400 in 902d3ac
It's a bit tricky due to the macro though, because the computation of those fields is lazy, and only happens if the workunit is actually enabled. Keeping it lazy is probably the highest priority, so probably easiest to just call Self::engine_aware_params inside of user_facing_name .
|
#15769 sketches this for one use case, and it seemingly works really well. |
#17119 included But one thing that is unfortunately not stale, and is probably reason-enough to close this is that when the |
We do this currently with
Process
, but not with rules that return anEngineAware
type.We say "Completed: Run Pytest - tests succeeded" but do not say "Starting Run Pytest".
Note that this requires the below diff:
It's not clear what the log message should be, though. We won't yet have access to the return type, e.g. the
TestResult
, so it will be difficult to output any dynamic information. It's important that we would be able to say "Starting test for address :foo". This may require introducing a new mechanism.The text was updated successfully, but these errors were encountered: