Skip to content

Prepend truncated error output with notice - #5163

Merged
helderco merged 1 commit into
dagger:mainfrom
helderco:helder/dag-1570-add-truncated-output-to-stdoutstderr
May 22, 2023
Merged

helderco merged 1 commit into
dagger:mainfrom
helderco:helder/dag-1570-add-truncated-output-to-stdoutstderr

Conversation

@helderco

@helderco helderco commented May 22, 2023 •

Copy link
Copy Markdown
Contributor

Fixes #5077
Related to #4979

Should show output in error like this:

input:1: pipeline.pipeline.container.from.withExec.stdout process "sh -c echo xxxxxxx... && exit 1" did not complete successfully: exit code: 1
Stdout:
[omitting 2412132 bytes]...xxxxxxx....

Stderr:

Please visit https://dagger.io/help#go for troubleshooting guidance.

@helderco
helderco force-pushed the helder/dag-1570-add-truncated-output-to-stdoutstderr branch from f5f4616 to e215286 Compare May 22, 2023 11:38
@helderco
helderco merged commit e0fecd2 into dagger:main May 22, 2023
@helderco
helderco deleted the helder/dag-1570-add-truncated-output-to-stdoutstderr branch May 22, 2023 21:21
@gerhard

gerhard commented May 25, 2023

Copy link
Copy Markdown
Contributor

After this PR was merged into main, our engine tests started taking up 2x as long - 30-40mins vs 16-20mins. I am not sure whether it was this specific change, or something else, but this is the outcome:

Screenshot 2023-05-25 at 16 05 40

I am focusing on the v0.6.0 release now - have a hard stop - but this is worth investigating (next week for me if someone else doesn't pick it up sooner).

@helderco

helderco commented May 25, 2023 •

Copy link
Copy Markdown
Contributor Author

Yeah, the error output truncation limit was increased from 2K to 100K because of this use case:

But that was in this one though:

The problem is the test is doubling the limit but we can do slightly over instead of double.

@gerhard

gerhard commented May 25, 2023

Copy link
Copy Markdown
Contributor

Yes, you are right, it was the next PR. Moving the discussion there -> #5164

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.

Add (truncated output) to stdout/stderr errors

3 participants