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: reliable workers tests for reordering and acks #60

Merged
merged 81 commits into from
Feb 7, 2024

Conversation

ainghazal
Copy link
Collaborator

@ainghazal ainghazal commented Feb 2, 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: NA
  • Reference issue for this pull request: NA

Description

Tests for down and up workers in reliable service, covering reordering towards the upper layer and checking that any incoming packet is eventually ACKed.

This PR also includes some needed test utilities that can be reused to exercise different parts of the system.

@ainghazal ainghazal changed the title wip: tests for reliable service tests: reliable workers tests for reordering and acks Feb 2, 2024
@ainghazal ainghazal self-assigned this Feb 2, 2024
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 when all the comments have been responded to or addresses. Need to rediscuss if some comment causes us to make significant changes.

internal/model/packet.go Outdated Show resolved Hide resolved
internal/model/packet.go Outdated Show resolved Hide resolved
internal/reliabletransport/common_test.go Outdated Show resolved Hide resolved
internal/reliabletransport/receiver.go Outdated Show resolved Hide resolved
internal/reliabletransport/receiver.go Show resolved Hide resolved
internal/reliabletransport/sender.go Show resolved Hide resolved
internal/vpntest/packetio.go Outdated Show resolved Hide resolved
internal/vpntest/packetio.go Show resolved Hide resolved
internal/vpntest/packetio.go Show resolved Hide resolved
internal/vpntest/packetio.go Outdated Show resolved Hide resolved
ainghazal and others added 3 commits February 7, 2024 16:45
Co-authored-by: Simone Basso <bassosimone@gmail.com>
Co-authored-by: Simone Basso <bassosimone@gmail.com>
@ainghazal ainghazal merged commit a3610f7 into ooni:main Feb 7, 2024
8 checks passed
@ainghazal ainghazal deleted the reliable-service-tests branch February 7, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants