Skip to content
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

Await async state version processing in TestStateVersionsUpload #802

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

nfagerlund
Copy link
Contributor

Description

TFC does some async processing on uploaded state versions; they're not guaranteed to have finalized status by the time the upload call is acknowledged. That means this test flakes. (Though it wasn't flaking in CI until today, since it was previously being skipped as beta.)

This adds a state version clone of the run polling function. Yeah, it's copypasta code, but it seemed premature to try and come up with some kind of ReadWithStatus interface that could cope with all the distinct string types etc. Possibly worth revisiting later.

Testing plan

  1. the test stops flaking.

Output from tests

see CI output

TFC does some async processing on uploaded state versions; they're not
guaranteed to have `finalized` status by the time the upload call is
acknowledged. That means this test flakes. (Though it wasn't flaking in CI until
today, since it was previously being skipped as beta.)

This adds a state version clone of the run polling function. Yeah, it's
copypasta code, but it seemed premature to try and come up with some kind of
ReadWithStatus interface that could cope with all the distinct string types etc.
Possibly worth revisiting later.
@nfagerlund nfagerlund requested a review from a team as a code owner November 1, 2023 21:39
brandonc
brandonc previously approved these changes Nov 1, 2023
- Wasn't re-assigning from the poll output, so the test couldn't see updated result.
- Expected/actual args were flipped, so fail output looked silly.
- Probably no point in waiting a whole 1m.
@nfagerlund nfagerlund merged commit 04571b5 into main Nov 1, 2023
10 checks passed
@nfagerlund nfagerlund deleted the nf/nov23-sv-await-flake branch November 1, 2023 22:19
Copy link

github-actions bot commented Nov 1, 2023

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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.

None yet

2 participants