You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
✨ Output in automatic provisioning like 0.10 #7137
Dagger 0.11 made changes to the console output which I believe to be a large downgrade.
What I used to do:
I would run my pipeline without the dagger binary, simply running python main.py. This would print the output from the container as well as my program output (i.e., calls to logger.info()) to the console in real time. Once the process was complete, all the container logs + my own would still be clearly visible for reference.
I found this approach to be the best for 2 reasons:
I did not have to install the dagger binary, I just needed to make sure that dagger-io was installed in my Python virtual environment.
It produced output that was by far the most understandable, readable, and as a result, useful.
The Downgrade
With dagger 0.11, simply running python main.py produces only the program output and none from the containerised process itself.
The best alternative is to run dagger run -vvv python main.py, but I find that to be significantly worse than running python main.py with dagger 0.10 due to the following points:
It requires the dagger binary to be installed (extra work)
The output is split into 2 sections, "container output" first and "program output" second, which is harder to make sense of.
The container output is significantly summarised and not nearly as verbose as that generated in earlier versions.
Why is this important to you?
Seeing the output of a program is incredibly helpful for pretty much every part of the development process.
How are you currently working around this?
I am not upgrading to dagger 0.11, and using 0.10 instead.
Running with --progress=plain does not produce the same output as previous versions, below is a comparison (I used a cached pipeline to keep the output shorter, but you can still see how the 0.10.3 makes a lot more sense).
This is a result of the specific way we do --progress=plain in dagger 0.11+. Essentially the plain output now uses a new streamingExporter (see #7069), but there's an issue where only spans that have associated logs are printed - so spans without logs don't get any output.
I think we need a bit of a refactor here, I'm going to look at this at some point soon, since the way that the logs are done with this make some of our tests produce enormous quantities of output, and it would be nice to avoid that.
Activity
helderco commentedon Apr 19, 2024
You can also increase verbosity to debug level:
And you can swap the TUI with the older output:
So it boils down to not wanting to install the
daggerCLI beforehand.\cc @vito
johnstonematt commentedon Apr 19, 2024
Running with
--progress=plaindoes not produce the same output as previous versions, below is a comparison (I used a cached pipeline to keep the output shorter, but you can still see how the0.10.3makes a lot more sense).0.10.3:0.11:helderco commentedon Apr 19, 2024
I wasn't aware there was a difference, thanks.
Can you see if this helps (
pyhthon -u)?johnstonematt commentedon Apr 22, 2024
Does not make a difference, see output:
[-]✨ Python output like 0.10[/-][+]✨ Output in automatic provisioning like 0.10[/+]helderco commentedon Apr 24, 2024
\cc @vito
jedevc commentedon May 2, 2024
Ah. I've just realized why this is.
This is a result of the specific way we do
--progress=plainin dagger 0.11+. Essentially the plain output now uses a newstreamingExporter(see #7069), but there's an issue where only spans that have associated logs are printed - so spans without logs don't get any output.I think we need a bit of a refactor here, I'm going to look at this at some point soon, since the way that the logs are done with this make some of our tests produce enormous quantities of output, and it would be nice to avoid that.