Skip to content

docs: Convert debugging page - #7407

Merged
vikram-dagger merged 10 commits into
dagger:mainfrom
vikram-dagger:docs-256-debugging
May 25, 2024
Merged

vikram-dagger merged 10 commits into
dagger:mainfrom
vikram-dagger:docs-256-debugging

Conversation

@vikram-dagger

Copy link
Copy Markdown
Contributor

No description provided.

@vikram-dagger

vikram-dagger commented May 18, 2024 •

Copy link
Copy Markdown
Contributor Author

https://dagger.cloud/dagger/traces/8b7aa1a600a20884ffd6f895633babbc - TS lint shows a failure, but https://github.com/dagger/dagger/actions/runs/9140565827/job/25134037910?pr=7407 - TS lint (which is presumably doing the same thing) shows success. Not quite sure what this means or how to turn it green. Please lmk if any suggestions @gerhard @matipan

@gerhard

gerhard commented May 19, 2024 •

Copy link
Copy Markdown
Contributor

I am assuming that the trace failed because the span never terminated:
image

The only way that I was able to make this type of check green is to run it again, even if the job succeeded. CC-ing @vito & @crjm @aluzzardi in case they have a different suggestion. Triggering the re-run to check if that still works as I remember.

Yes, re-running it did the trick:
image

@gerhard gerhard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Apart from my comment, LGTM!

@crjm

crjm commented May 19, 2024 •

Copy link
Copy Markdown
Contributor

I am assuming that the trace failed because the span never terminated

Yes, this is the reason why this is happening.
The API is resolving this as an error, not the engine, as the span signaling the end of the execution never reached the API.
This is also why the engine doesn't exit with an error code in CI.

@vito it seems like we are setting the state in the FE for timeouts, but we are not showing any UI for that state.
Should we add an element to represent it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@helderco this is not the current output. The current output contains a very large number of spans, and I wasn't able to find anything similar to what is shown here. Please suggest what should be done for this output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@vito @jedevc @TomChv is this accurate?

@levlaz

levlaz commented May 20, 2024 via email

Copy link
Copy Markdown
Contributor

@vikram-dagger

Copy link
Copy Markdown
Contributor Author

that the user will see a lot of DBG info in the output and then end with the nicely formatted thing that gets printed out at the end.

@levlaz Yes, I see the DBG output but at the end I only see this output, which only partially matches what you have:

✔ connect 1.9s
✔ initialize 58.2s
✔ myModule: MyModule! 2.4s
┃ [DEBUG] dagger.mod._module: output => '{}'                                                                      
┃ [DEBUG] dagger.client._session: Closing client session to GraphQL server                                        
  ✔ connect 0.2s
✔ MyModule.echo(msg: "hello"): String! 2.3s
┃ [DEBUG] dagger.mod._module: output => '"hello"'                                                                 
┃ [DEBUG] dagger.client._session: Closing client session to GraphQL server                                        
  ✔ connect 0.1s

hello

Which of the two outputs is correct. @helderco ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

is this list still accurate @helderco ? I see some of this in the output but not all

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also don't see the GraphQL query any longer in the output, so I'm unsure if this statement is still valid. WDYT @levlaz @helderco ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The query still shows, but it's no longer at the end, you'll have to search for it.

@levlaz levlaz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Vikram and I looked at this together over Discord, its good to go once we add the updated output.

Vikram Vaswani added 10 commits May 25, 2024 11:58
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
@vikram-dagger
vikram-dagger merged commit ed0c4d6 into dagger:main May 25, 2024
@helderco

helderco commented May 25, 2024 •

Copy link
Copy Markdown
Contributor

Fyi, to show Python logs you don't need to have --debug in the CLI. They're independent. So you don't need all those DBG entries polluting the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants