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

tests: add tests for reliable service under packet loss #63

Merged
merged 103 commits into from
Feb 8, 2024

Conversation

ainghazal
Copy link
Collaborator

@ainghazal ainghazal commented Feb 6, 2024

Checklist

  • I have read the contribution guidelines
  • Iff you changed code related to services, or inter-service communication, make sure you update the diagrams in ARCHITECTURE.md.
  • Reference issue for this pull request:

Description

Exercise reliable service passing a vector of packet ID to simulate packet loss.

Additionally, this PR updates github actions version to the latest action release for checkout (v4) and setup-go (v5). Eventually, we'll currently replace the test setup with the one we're using to run tests on the internal packages.

TODO: This PR needs to be rebased on top of #60

@ainghazal ainghazal changed the title wip: tests for reliable service under packet loss tests: add tests for reliable service under packet loss Feb 7, 2024
@ainghazal
Copy link
Collaborator Author

I think this is ready for review. the only file of interest after merging #60 should be https://github.com/ooni/minivpn/pull/63/files#diff-b9a3711895939a4f4dc918dccb1b8e3eda12d2fea35a79984d7a7a7aab12a9a3 (modulo any minor changes)

@ainghazal ainghazal requested a review from bassosimone February 7, 2024 10:58
log.SetLevel(log.DebugLevel)
if testing.Verbose() {
log.SetLevel(log.DebugLevel)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

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

🎻 🎻 🎻 🎻

LGTM with the provided comments applied

internal/reliabletransport/reliable_loss_test.go Outdated Show resolved Hide resolved
internal/reliabletransport/reliable_reorder_test.go Outdated Show resolved Hide resolved
internal/vpntest/packetio.go Outdated Show resolved Hide resolved
internal/vpntest/packetio_test.go Outdated Show resolved Hide resolved
ainghazal and others added 4 commits February 8, 2024 18:38
Co-authored-by: Simone Basso <bassosimone@gmail.com>
Co-authored-by: Simone Basso <bassosimone@gmail.com>
Co-authored-by: Simone Basso <bassosimone@gmail.com>
@ainghazal ainghazal merged commit 35a5529 into ooni:main Feb 8, 2024
9 checks passed
@ainghazal ainghazal deleted the reliable-service-tests-loss branch February 8, 2024 17:45
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