Skip to content

Feature/integration tests#1

Merged
KFoxder merged 6 commits intomasterfrom
feature/integration-tests
Jan 20, 2026
Merged

Feature/integration tests#1
KFoxder merged 6 commits intomasterfrom
feature/integration-tests

Conversation

@KFoxder
Copy link
Copy Markdown
Owner

@KFoxder KFoxder commented Jan 20, 2026

No description provided.

KFoxder and others added 2 commits January 20, 2026 11:31
- main.ml: Parse --count N argument, pass to implementations
- sender: Send N packets (default 10000)
- receivers: Exit after receiving N packets (0 = infinite)

Enables integration testing in CI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Run unit tests via dune runtest
- Test sender startup with --count flag
- Test sender/receiver communication via multicast loopback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings January 20, 2026 16:42
@KFoxder KFoxder self-assigned this Jan 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds integration testing capabilities to the multicast UDP project by introducing a --count parameter that allows controlling the number of packets sent/received. This enables the CI workflow to run automated tests of both sender startup and sender-receiver communication.

Changes:

  • Added --count command-line parameter parsing to control message count
  • Modified all multicast implementations (sender, async/lwt/non-concurrent receivers) to support configurable message counts
  • Added integration tests to GitHub Actions CI workflow

Reviewed changes

Copilot reviewed 1 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
bin/main.ml Added parse_count() function to parse --count argument and updated usage message
bin/multicast_sender.ml Added count parameter to run function, renamed count variable to sent, set default count to 10,000
bin/multicast_recv.ml Added count and received parameters to enable receiver termination after receiving specified number of packets
bin/multicast_recv_lwt.ml Added count and received parameters to Lwt-based receiver with termination logic
bin/multicast_recv_async.ml Refactored make_handle_request to support count-based termination with ivar-based stopping mechanism
.github/workflows/ci.yml Added unit test step and two integration tests for sender startup and sender-receiver communication

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 20, 2026

@KFoxder I've opened a new pull request, #2, to work on those changes. Once the pull request is ready, I'll request review from you.

KFoxder and others added 3 commits January 20, 2026 11:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: KFoxder <2000316+KFoxder@users.noreply.github.com>
Use GitHub Actions timeout-minutes instead of shell timeout
@KFoxder KFoxder merged commit a15a10d into master Jan 20, 2026
1 check passed
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.

3 participants