Skip to content

tests: add retries to waiting for log output - #7989

Closed
sipsma wants to merge 1 commit into
dagger:mainfrom
sipsma:fix-log-output-flakes
Closed

sipsma wants to merge 1 commit into
dagger:mainfrom
sipsma:fix-log-output-flakes

Conversation

@sipsma

@sipsma sipsma commented Jul 19, 2024

Copy link
Copy Markdown
Contributor

Possibly fixes #7979 (to be confirmed in CI since that's the only place I can get it to happen).

I also am not sure yet if this is handling expected behavior more robustly vs. just avoiding a bug. If it's just avoiding a bug we shouldn't go with it.

Basically, I noticed that these flakes appear to just be cutting off the output while it's still being received. If you look in the logs you can see most of the expected output there but not all of it, which results in the error message expected not showing up.

cc @vito @jedevc on confirming whether it's expected that if you close a client while output is still being received then it is expected you might be cutting off some of the output, since you've worked on that whole are more than I

@sipsma
sipsma requested review from jedevc and vito July 19, 2024 06:19
@vito

vito commented Jul 19, 2024

Copy link
Copy Markdown
Contributor

Yeah I think this would just be working around a bug - I'd leave it and see if my draining rework fixes it. The expectation is that if all work is done prior to client.Close - which it is in this case (the Sync above it) - that calling Close synchronously flushes all output. So you shouldn't need to poll after closing it.

@sipsma

sipsma commented Jul 19, 2024

Copy link
Copy Markdown
Contributor Author

Yeah I think this would just be working around a bug - I'd leave it and see if my draining rework fixes it. The expectation is that if all work is done prior to client.Close - which it is in this case (the Sync above it) - that calling Close synchronously flushes all output. So you shouldn't need to poll after closing it.

Okay good to know, thanks!

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.

Flaky test: TestGoExtendCore - cannot define methods on objects from outside this module

2 participants