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

ci: Run peer tests faster on local machine #54

Merged
merged 1 commit into from
Jan 24, 2022
Merged

ci: Run peer tests faster on local machine #54

merged 1 commit into from
Jan 24, 2022

Conversation

kylecarbs
Copy link
Member

This should result in faster local development, and faster CI!
See the code comment for rationale.

This should result in faster local development, and faster CI!
See the code comment for rationale.
@kylecarbs kylecarbs self-assigned this Jan 24, 2022
@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #54 (cf60d97) into main (8be2456) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   71.23%   71.14%   -0.09%     
==========================================
  Files          60       60              
  Lines        2395     2395              
  Branches       30       30              
==========================================
- Hits         1706     1704       -2     
- Misses        537      539       +2     
  Partials      152      152              
Flag Coverage Δ
unittest-go-macos-latest 66.17% <ø> (+0.05%) ⬆️
unittest-go-ubuntu-latest 70.19% <ø> (+0.14%) ⬆️
unittest-go-windows-latest 65.55% <ø> (-0.31%) ⬇️
unittest-js 74.91% <ø> (ø)
Impacted Files Coverage Δ
peer/channel.go 86.50% <0.00%> (-0.62%) ⬇️
peer/conn.go 76.34% <0.00%> (-0.30%) ⬇️

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 8be2456...cf60d97. Read the comment docs.

@kylecarbs kylecarbs enabled auto-merge (squash) January 24, 2022 00:30
Comment on lines +28 to +39
// Connection state is unfortunately time-based. When resources are
// contended, a connection can take greater than this timeout to
// handshake, which results in a test flake.
//
// During local testing resources are rarely contended. Reducing this
// timeout leads to faster local development.
//
// In CI resources are frequently contended, so increasing this value
// results in less flakes.
if os.Getenv("CI") == "true" {
return 4 * time.Second
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the descriptive comment 👍

@kylecarbs kylecarbs merged commit a96cd3f into main Jan 24, 2022
@kylecarbs kylecarbs deleted the quickpeer branch January 24, 2022 15:57
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