Repository navigation
ci (automated tests): Install Sipp (for future dial-in user tests) - #21919
Conversation
WalkthroughThe pull request modifies the GitHub Actions workflow file Key modifications include adding a comprehensive installation process for the SIPp tool, which involves cloning its repository, checking out a specific commit, and compiling it with specific options. A new dial plan configuration for internal calls within FreeSWITCH has been introduced, specifying call handling procedures. The workflow's Additional refinements include improvements to CA certificate generation and trust processes, aimed at establishing a more robust and secure testing environment. These changes are designed to streamline the automated testing workflow and ensure more comprehensive test coverage. Sequence DiagramsequenceDiagram
participant GA as GitHub Actions
participant Deps as Dependency Installer
participant SIPp as SIPp Tool
participant FreeSWITCH as FreeSWITCH Environment
GA->>Deps: Prepare testing environment
Deps->>SIPp: Clone and compile
Deps->>FreeSWITCH: Configure dial plan
Deps->>GA: Environment ready
GA->>GA: Generate CA certificate
GA->>GA: Download test artifacts
GA->>GA: Run automated tests
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/automated-tests.yml (2)
269-279: Document the reason for using a specific Sipp commit.The comment indicates that the current code is not working, but it would be helpful to:
- Document the specific issues with the current code
- Create a tracking issue to upgrade when these issues are resolved
- Consider vendoring this specific version to avoid potential GitHub availability issues
Consider creating a Dockerfile to build Sipp, which would:
- Make the build process more reproducible
- Isolate build dependencies from the test environment
- Enable easier version updates
280-291: Consider adding additional security measures to the dial plan.While the dial plan correctly handles internal calls, consider adding:
- Input validation for destination_number
- Rate limiting to prevent DoS attacks
- Logging for security auditing
<include> <extension name="bbb_sp_call" continue="true"> <condition field="network_addr" expression="\${domain}" break="on-false"> + <action application="log" data="INFO Called number: \${destination_number}"/> + <action application="set" data="max_calls=10"/> <action application="set" data="bbb_authorized=true"/> + <action application="regex" data="\${destination_number}" expression="^[0-9]{6,12}$" break="on-false"/> <action application="transfer" data="\${destination_number} XML default"/> </condition> </extension> </include>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/automated-tests.yml(2 hunks)
🔇 Additional comments (1)
.github/workflows/automated-tests.yml (1)
Line range hint 258-268: Verify the impact of systemd configuration changes on bbb-webrtc-sfu performance.
The removal of CPU scheduling policies for bbb-webrtc-sfu could potentially impact its performance under load.
✅ Verification successful
Modifying CPU scheduling policy is a documented workaround for containerized environments
Based on the documentation found in docs/docs/support/troubleshooting.md, bbb-webrtc-sfu normally runs with CPUSchedulingPolicy=fifo, and the documentation explicitly states that in systems without appropriate capabilities (SYS_NICE), the application will fail to start. The override to set CPUSchedulingPolicy=other and Nice=19 is a documented workaround for containerized environments where real-time scheduling isn't possible.
Let's verify the default service configuration:
CPU scheduling policy changes are consistent with default configuration
The changes in the PR are appropriate as they maintain the same Nice value (19) from the default service configuration while changing only the scheduling policy from fifo to other. This modification is a documented workaround for containerized environments where real-time scheduling isn't possible, as mentioned in the troubleshooting documentation. The change won't negatively impact performance as it's specifically designed to handle environments where fifo scheduling cannot be used.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check the default systemd configuration for bbb-webrtc-sfu
# Check the original service file
rg -A 10 "CPUSchedulingPolicy|Nice" /lib/systemd/system/bbb-webrtc-sfu.service
# List any other override configurations
fd "override.conf" /etc/systemd/system/ -x cat {}
Length of output: 323
Script:
#!/bin/bash
# Let's check the repository for any systemd service files or configurations related to bbb-webrtc-sfu
fd "bbb-webrtc-sfu.service"
# Search for any existing CPU scheduling or Nice value configurations in the codebase
rg -i "CPUSchedulingPolicy|Nice" --type yaml --type conf
# Look for any documentation or discussions about performance settings
rg -i "scheduling|priority|performance" -g "*.md" -g "*.txt"
Length of output: 3994
Script:
#!/bin/bash
# Check the default service configuration in the packages template
cat build/packages-template/bbb-webrtc-sfu/bbb-webrtc-sfu.service
Length of output: 732
Automated tests Summary✅ All the CI tests have passed! |
…ry for the SDK job The quarantine tags were spelled out in four npm scripts and in the legacy media job, and the copies had drifted: the legacy job never gained @known-issue. They are now defined once, as config.quarantine in the suite's package.json. The npm scripts read it through npm's $npm_package_config_quarantine and the legacy job calls a new npm script (test-chromium-media-ci) instead of its own command. Every selection lists the same tests as before, title for title (gate 551, legacy job 112); no @media test carries @known-issue today, so the legacy job gains the tag without losing a test. With one retry in CI, a test that fails once and then passes keeps the job green and leaves only a warning annotation, so new flakiness merges unnoticed. The CI reporter now also lists those tests, with the first line of the first attempt's error, under "Passed only on retry" in the job summary of every step that uses it. It does not fail the job. A first attempt that timed out printed no annotation at all; it now gets the same warning as one that failed. SIPp was built on every install (about 50 seconds each, ten installs per pull request run) since #21919 in December 2024, "for future dial-in user tests". No such test was written and no pull request is open for one, so the build and the CI-only FreeSWITCH dial plan that came with it are removed. To bring them back for a dial-in test, restore the block from 15238a6 into the "Prepare for install" step of .github/actions/install-bbb/action.yml. The plugin SDK job builds the samples that have tests in the downloaded SDK version instead of a fixed list, which named a sample that SDK 1.0.0-beta.2 does not have and missed the media area sample. The README of the suite gets a table of how the selections relate, the quarantine tags' new home, the retry summary, a note on documenting sdk-flaky-tests.txt entries, and no longer the Meteor recording section. Left for the nightly workflow: the job that installs a server with maskTagThreshold=1 for the @setting-required test, and the bbb-web-properties input of install-bbb it needs.



Installs Sipp in CI server as it enable to run tests for dial-in users.
With sipp installed it is possible to simulate a dial-in user by running:
Replacing the VOICE_BRIDGE with the same number used during
/createof the meeting.More info: https://github.com/SIPp/sipp.git