-
Notifications
You must be signed in to change notification settings - Fork 95
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
CI: Setup self-hosted GitHub Actions runner #455
Comments
@jserv I probably need temporary access to the repo setting for setting up the GitHub action runner. Or, I can set up the self-hosted runner in my private repo and send over the step-by-step guide here so you can apply it! |
Let's stick to the latter. |
After investigation by bisecting the code, the issue is caused by this commit #360
My current guess is that the binaries we used for benchmarking aren't recompiled, causing the time calculation to be wrong. |
Yes, we should recompile the benchmark programs with newer GNU Toolchain, otherwise we would fail to measure. |
I will close this issue and create a new one since the action item has nothing to do with #455 anymore. |
For future reference, to install GitHub runners on node11, we just need to follow the steps listed here. Registration tokenSteps for obtaining Github runner registration token
Node11 setup using DockerfileThese are just the steps I took to create containerized Github runners for quick experimentation. Maybe there is a better way.
FROM ghcr.io/actions/actions-runner:2.317.0
ARG GITHUB_RUNNER_REGISTRATION_TOKEN
RUN sudo apt-get update && \
sudo apt-get install -y \
git build-essential python3-pip libsdl2-dev libsdl2-mixer-dev && \
sudo rm -rf /var/lib/apt/lists/*
RUN ./config.sh --url https://github.com/sysprog21/rv32emu --token $GITHUB_RUNNER_REGISTRATION_TOKEN --unattended --labels node11
ENTRYPOINT ["./run.sh"]
Development note |
Recently we discovered that the benchmarking numbers dropped significantly.
To resolve the problem in the long run, we would like to set up a self-hosted Github runner [1] on node11.
The self-hosted runner will only be dedicated to running the benchmarking pipeline [2], reducing the network bandwidth requirement as there is currently a restriction on the network that node11 is hosted.
References:
[1] https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners
[2] https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/using-labels-with-self-hosted-runners
The text was updated successfully, but these errors were encountered: