Skip to content

tests: avoid GHA slowdown from huge single line strings - #7819

Merged
sipsma merged 2 commits into
dagger:mainfrom
sipsma:no-long-line
Jul 3, 2024
Merged

sipsma merged 2 commits into
dagger:mainfrom
sipsma:no-long-line

Conversation

@sipsma

@sipsma sipsma commented Jul 3, 2024

Copy link
Copy Markdown
Contributor

Possibly fixes, or at least helps, #7786 by avoiding actions/runner#1031

@sipsma
sipsma requested a review from vito July 3, 2024 18:11
Comment thread dagql/idtui/frontend_plain.go Outdated

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.

missed a spot?

Suggested change
r := newRenderer(fe.db, 1024, fe.FrontendOpts)
r := newRenderer(fe.db, plainMaxLiteralLen, fe.FrontendOpts)

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.

Doh, fixed

This aligns plain progress behavior with the pretty progress behavior of
cutting long literal strings (i.e. long strings used as args to function
calls) off at a certain point.

Pretty progress uses the TUI window width, this updates plain progress
to use 1024 as the cutoff. The only justification for this value is it
feels reasonable at first glance. Not sure if there's anything smarter
that's possible right now.

Signed-off-by: Erik Sipsma <[email protected]>
@sipsma

sipsma commented Jul 3, 2024

Copy link
Copy Markdown
Contributor Author

Hit a separate known flake (python main module missing) but the times in the test runs here seem to align much more closely. I think some difference is expected since there's a little overhead in starting everything (especially testdev), but so far looks good. Will see if that continues to be the case in more runs after merging.

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.

2 participants