Introduction
In modern software development, Continuous Integration (CI) has become the standard for maintaining code quality through automated unit and correctness testing. However, for High-Performance Computing (HPC) applications, functional correctness is only one aspect of software health; scalability and performance are equally critical. Currently, a significant gap exists between CI environments—typically restricted to single virtual machines—and the multi-node clusters required for HPC performance validation. This discrepancy often leads to performance regressions that go undetected until manual deployment on supercomputers, making it difficult to pinpoint the specific commit responsible for a bottleneck.
To bridge this gap, we present BeeSwarm, a system that integrates large-scale scalability testing directly into standard CI workflows such as Travis CI and GitLab CI. By offloading heavy workloads to external HPC or cloud environments, BeeSwarm enables developers to automatically detect performance regressions with every code commit.
System Architecture and Workflow
BeeSwarm is designed as a modular extension for existing CI services, leveraging the Build and Execution Environment (BEE) containerization framework. The system architecture decouples the CI orchestration from the actual hardware execution, allowing lightweight CI runners to manage complex tests on remote bare-metal or cloud resources.
The workflow consists of several key stages:
- Triggering: A code push to a repository (e.g., GitHub) triggers a standard CI job.
- BEE Initialization: The CI job installs a simplified BEE launcher. This launcher is optimized for the ephemeral nature of CI environments, requiring only a single command to initiate.
- Remote Provisioning: BeeSwarm provisions nodes on an external platform, such as the Chameleon Cloud, via an extended
beefileformat. This format allows developers to define scaling ranges (e.g., 1 to 32 nodes) using linear or logarithmic steps. - Execution and Parsing: Tests are executed via SSH, and results are gathered by an output parser.
- Feedback Loop: Performance data is committed back to the repository, providing developers with immediate visibility into the scalability impact of their changes.
Evaluation and Results
BeeSwarm was evaluated using real-world HPC software, including the Legion parallel programming system and the PENNANT unstructured mesh mini-app. The system demonstrated minimal overhead, with the installation of the BeeSwarm environment within a Travis CI job taking less than two minutes.
A key finding was the system's ability to provide actionable bottleneck detection. For instance, in tests with the FleCSALE fluid dynamics package, BeeSwarm identified that application speedup was significantly higher on a single node than across multiple nodes for the same process count, immediately flagging inter-node communication as a primary bottleneck. Furthermore, tracking execution time across commits allows developers to visualize the performance trajectory of their software, making it easy to identify "breaking" commits or validate the efficacy of performance optimizations.
Discussion and Future Work
While BeeSwarm effectively brings HPC testing into the CI pipeline, it currently relies on pre-existing user credentials for external resource providers. Additionally, standard CI timeout limits (often around 10 minutes) require careful management for extremely large-scale tests. Future work will focus on standardizing telemetry formats to reduce the need for manual output parsing and exploring cost-management strategies for cloud-based execution. By treating performance as a first-class citizen alongside functional correctness, BeeSwarm provides a scalable path forward for modern HPC software engineering.
Summary updated