Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(agent): start rpty lifecycle after all reads/writes #15535

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

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Nov 15, 2024

Fixes coder/internal#214

#15475 missed that we also write to rpty after starting rpty.lifecycle().
This PR moves the function call right at the end. Hopefully this should address the data races before we go resorting to mutexes.

@johnstcn johnstcn self-assigned this Nov 15, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Oh I was actually wondering about this but didn't check deeper since the race test didn't catch it. How did you catch it? (Oops, should've read the description.)

@johnstcn
Copy link
Member Author

Oh I was actually wondering about this but didn't check deeper since the race test didn't catch it. How did you catch it? (Oops, should've read the description.)

That other race test didn't win the race! 😆

@johnstcn johnstcn enabled auto-merge (squash) November 15, 2024 14:43
@johnstcn johnstcn merged commit 12a9d63 into main Nov 15, 2024
33 checks passed
@johnstcn johnstcn deleted the cj/reconnectingpty-screen-data-race-redux branch November 15, 2024 14:48
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.

flake: (data race) scaletest/Test_Runner/ExpectTimeout/Timeout
2 participants