Skip to content

fix: Increase ptytest buffer to resolve flake #1141

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
Apr 25, 2022
Merged

fix: Increase ptytest buffer to resolve flake #1141

merged 1 commit into from
Apr 25, 2022

Conversation

kylecarbs
Copy link
Member

From investigating the following run:
https://github.com/coder/coder/runs/6156348454?check_suite_focus=true

It's believed that the cause is data being discarded due to the buffer
filling up. This might fix it, but not entirely sure.

@kylecarbs kylecarbs requested a review from Emyrk April 25, 2022 14:27
@kylecarbs kylecarbs self-assigned this Apr 25, 2022
@codecov
Copy link

codecov bot commented Apr 25, 2022

Codecov Report

Merging #1141 (13bedba) into main (5575e3c) will increase coverage by 8.78%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##             main    #1141      +/-   ##
==========================================
+ Coverage   57.54%   66.33%   +8.78%     
==========================================
  Files         261      261              
  Lines       16237    16248      +11     
  Branches      156      156              
==========================================
+ Hits         9344    10778    +1434     
+ Misses       5873     4360    -1513     
- Partials     1020     1110      +90     
Flag Coverage Δ
unittest-go-macos-latest 53.84% <72.72%> (+0.13%) ⬆️
unittest-go-postgres- 65.73% <72.72%> (?)
unittest-go-ubuntu-latest 56.24% <72.72%> (-0.11%) ⬇️
unittest-go-windows-2022 53.31% <72.72%> (+0.08%) ⬆️
unittest-js 67.28% <ø> (ø)
Impacted Files Coverage Δ
pty/ptytest/ptytest.go 91.30% <72.72%> (-3.53%) ⬇️
coderd/turnconn/turnconn.go 81.91% <0.00%> (-3.20%) ⬇️
codersdk/workspaceagents.go 52.14% <0.00%> (-1.56%) ⬇️
peer/conn.go 78.93% <0.00%> (ø)
provisioner/echo/serve.go 56.80% <0.00%> (ø)
coderd/provisionerdaemons.go 62.79% <0.00%> (+0.50%) ⬆️
coderd/workspaceagents.go 59.62% <0.00%> (+1.11%) ⬆️
provisionerd/provisionerd.go 76.54% <0.00%> (+1.34%) ⬆️
coderd/templates.go 62.29% <0.00%> (+1.63%) ⬆️
peer/channel.go 84.97% <0.00%> (+1.73%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5575e3c...13bedba. Read the comment docs.

@kylecarbs kylecarbs force-pushed the bufflake branch 2 times, most recently from 4c7ebd2 to e9b6398 Compare April 25, 2022 14:53
From investigating the following run:
https://github.com/coder/coder/runs/6156348454?check_suite_focus=true

It's believed that the cause is data being discarded due to the buffer
filling up. This _might_ fix it, but not entirely sure.
@kylecarbs kylecarbs merged commit 185d97a into main Apr 25, 2022
@kylecarbs kylecarbs deleted the bufflake branch April 25, 2022 17:14
kylecarbs added a commit that referenced this pull request Jun 10, 2022
From investigating the following run:
https://github.com/coder/coder/runs/6156348454?check_suite_focus=true

It's believed that the cause is data being discarded due to the buffer
filling up. This _might_ fix it, but not entirely sure.
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