forked from facebookincubator/cinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Steps Taken:
- Repository Initialization:
- Created a new empty repository on GitHub named
cinder_bench_runner. - Cloned the repository locally.
- Added
bench_runnerfrom a specific Git tag torequirements.txt.
- Created a new empty repository on GitHub named
- Environment Setup:
- Created a virtual environment using python -m venv venv.
- Populated the requirements.txt with
git+https://github.com/faster-cpython/[email protected]#egg=bench_runner. - Activated the virtual environment and installed the required packages from
requirements.txt.
- Initial Benchmarking Setup:
- Tried running
python -m bench_runner.scripts.installbut encountered anAssertionError(Error when Setting Upbench_runneron EC2 Instance #8). - Realized the need for a GitHub Actions self-hosted runner setup before proceeding.
- Tried running
- AWS EC2 Instance Creation:
- Initially set up an Amazon Linux 2023 instance but faced some compatibility issues.
- Decided to set up a new instance using Ubuntu for compatibility.
- Setting Up GitHub Actions Runner on EC2:
- SSH'd into the EC2 instance.
- Downloaded and extracted the GitHub Actions runner.
- Configured the runner for the cinder_bench_runner repository following the self-hosted runner documentation.
- Added necessary labels such as self-hosted, Linux, X64, bare-metal, and linux-x64-ec2runner to the runner.
- Set up the runner as a service to ensure it starts automatically on boot.
- Add the runner as a service:
sudo ./svc.sh installsudo ./svc.sh start
- Verify the runner's status:
sudo ./svc.sh status
- (Optional) If you want to stop or remove the service in the future:
sudo ./svc.sh stopsudo ./svc.sh uninstall
- Add the runner as a service:
- Re-attempting Benchmarking Setup:
- In response to the issue raised in Error when Setting Up
bench_runneron EC2 Instance #8, I created arunners.inifile at the root of the repository. The exact configuration can be viewed here. - Successfully executed
python -m bench_runner.scripts.install. - This step created necessary configuration files like
README.md,bases.txtandbenchmarks.manifest.
- In response to the issue raised in Error when Setting Up
For an in-depth view of the setup and configuration, please refer to the bench_runner repository: cinder_bench_runner.
Closes #8