8000 chore: hide typedef registration in progress output (and in CLI) by jedevc · Pull Request #9434 · dagger/dagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: hide typedef registration in progress output (and in CLI) #9434
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

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

jedevc
Copy link
Member
@jedevc jedevc commented Jan 23, 2025

Hide these from the supported functions available on the command line (since they're for SDKs only).

Additionally, move the helper for this into the dagui package, so that we can use it to hide output in the progress view - this has the largest impact when building complex modules in CI (which uses plain progress output), like in our own CI (for example: https://github.com/dagger/dagger/actions/runs/12928659633/job/36056419424#step:5:209)

This was prompted by noticing our plain progress output has once again become kind of difficult to read - this is a fairly low hanging piece of fruit to tidy this up a bit.

Hide these from the supported functions available on the command line
(since they're for SDKs only).

Additionally, move the helper for this into the `dagui` package, so that
we can use it to hide output in the progress view - this has the largest
impact when building complex modules in CI (which uses plain progress
output), like in our own CI.

Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc jedevc requested review from vito and helderco January 23, 2025 12:38
@@ -102,3 +116,45 @@ func (opts FrontendOpts) ShouldShow(span *Span) bool {
}
return true
}

func ShouldSkipFunction(obj, field string) bool {
// TODO: make this configurable in the API but may not be easy to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some code in #9327 for filtering that would be helpful here:

https://github.com/dagger/dagger/pull/9327/files#diff-103e59fe01bf9664b34164f42a0052ad7c2432a4e3472900e99fe611b915b3d9

Feel free to carry on with this though - I can re-integrate + de-couple later.

I should try to land that PR though - maybe I'll just mark the API experimental for now.

Copy link
Member Author
@jedevc jedevc Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, that definitely looks useful 👀 Being able to filter it better would definitely help.

Any objection to landing this in the meantime though? I'm happy to refactor it to match the newer API once it lands 🎉

Copy link
Contributor
@vito vito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this will hide these spans in the web UI too once I bump its dependency, which is probably fine in the 99.9% case, though we might miss them in the 0.1% case where you're trying to troubleshoot SDK development or something. Can reconsider later.

@jedevc
Copy link
Member Author
jedevc commented Feb 6, 2025

Ahh, yeah, I think that's probably okay.

Would it be worth having a similar verbosity feature in the web view, like we have in the TUI? Would be very useful, as we do cleanups around #9476 (which'll probably result in more stuff getting hidden away).

@jedevc jedevc merged commit df9d98f into dagger:main Feb 6, 2025
58 checks passed
@jedevc jedevc deleted the hide-typedef-registration branch February 6, 2025 10:04
@helderco
Copy link
Contributor
helderco commented Feb 6, 2025

Yeah, in the web you could have filters which are more descriptive, like "☑️ Show internal spans".

Would be nice to enable showing the SDK stuff for debugging, but I can turn that on in code since I'm already doing a custom dev build.

vikram-dagger pushed a commit to vikram-dagger/dagger that referenced this pull request Feb 7, 2025
Hide these from the supported functions available on the command line
(since they're for SDKs only).

Additionally, move the helper for this into the `dagui` package, so that
we can use it to hide output in the progress view - this has the largest
impact when building complex modules in CI (which uses plain progress
output), like in our own CI.

Signed-off-by: Justin Chadwell <me@jedevc.com>
jasonmccallister pushed a commit to jasonmccallister/dagger that referenced this pull request Feb 20, 2025
Hide these from the supported functions available on the command line
(since they're for SDKs only).

Additionally, move the helper for this into the `dagui` package, so that
we can use it to hide output in the progress view - this has the largest
impact when building complex modules in CI (which uses plain progress
output), like in our own CI.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3C34
Development

Successfully merging this pull request may close these issues.

3 participants
0