Skip to content

Conversation

@eriktate
Copy link
Contributor

Backport #61579 to branch/v18

changelog: Fixed an issue that caused a failed upload of an encrypted session recording to block other recordings from uploading

@github-actions github-actions bot added audit-log Issues related to Teleports Audit Log backport size/md labels Nov 25, 2025
Comment on lines 640 to 613
u.wg.Add(1)
go func() {
defer u.wg.Done()
u.wg.Go(func() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This change needs to be reverted. branch/v18 is still using Go 1.24 which doesn't have waitgroup.Go :(.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

synctest was a pain too 😅 Ended up rolling those tests back to using fake clocks. I noticed we have a build tag for using synctest, but do those tests actually run anywhere?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes we run them in CI. I think we should try to use synctest here too. You might benefit from #61783.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Went back to synctest and got everything working again with the build tag. Looks like it's not quite a 1:1 in terms of behavior between the experimental version in 1.24 and 1.25. I had to initialize the uploader outside of the bubble in order to get synctest.Wait() not to hang 🤔 Also had to move some things shared between fileasync_test.go and fileasync_chaos_test.go into a helpers_test.go to prevent the enablesynctest tag from breaking untagged tests.

@eriktate eriktate force-pushed the bot/backport-61579-branch/v18 branch 3 times, most recently from cc6e077 to b89f679 Compare November 25, 2025 19:19
@eriktate eriktate force-pushed the bot/backport-61579-branch/v18 branch from b89f679 to 6400c6d Compare November 25, 2025 21:15
…g semaphore, and preventing early termination of the uploader on failed uploads
@eriktate eriktate force-pushed the bot/backport-61579-branch/v18 branch from 6400c6d to 5635bb3 Compare November 25, 2025 21:34
@eriktate eriktate added this pull request to the merge queue Nov 25, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2025
@eriktate eriktate added this pull request to the merge queue Nov 26, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit-log Issues related to Teleports Audit Log backport size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants