-
Notifications
You must be signed in to change notification settings - Fork 94
ci(actions): route PR checks to self-hosted runner #3986
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e0798b5
ci(actions): route PR checks to self-hosted runner
jolestar 457c23a
fix(framework): keep old genesis stable for clear fields gas
jolestar e12159a
Route self-hosted CI to ephemeral runners
jolestar d478521
Trigger CI after runspawn guest Docker fix
jolestar a66723b
Trigger CI after clean runspawn rollout
jolestar dade722
Trigger CI after GitHub direct bypass
jolestar 16fe0e6
Trigger CI after GitHub direct rules
jolestar afdb9a9
Run cancel workflow on GitHub-hosted runners
jolestar 9b10bf2
Make cancel workflow best-effort
jolestar 7ada632
Disable legacy cancel workflow
jolestar f5a7f13
Keep cancel workflow on self-hosted as a no-op
jolestar fcd2275
Add concurrency to CI workflows
jolestar 19b40a3
Harden CI dependency fetching and CodeQL setup
jolestar f028163
Move lightweight CI workflows off self-hosted runners
jolestar dc95c13
Keep CI on self-hosted and disable CodeQL for now
jolestar 65d3288
Reuse preinstalled cargo-nextest in CI
jolestar 6a2849d
Move lightweight CI workflows back to GitHub-hosted
jolestar 4e0b9ac
Force GitHub checkout over HTTP/1.1 on self-hosted
jolestar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,46 @@ | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - run: sudo apt-get update && sudo apt-get install ca-certificates gcc libc6-dev build-essential libsqlite3-dev libprotobuf-dev protobuf-compiler wget cmake make clang g++ libsnappy-dev llvm libclang-dev curl git libpq-dev libssl-dev pkg-config lsof lld --no-install-recommends --assume-yes | ||
| - run: | | ||
| set -euo pipefail | ||
| packages=( | ||
| ca-certificates | ||
| gcc | ||
| libc6-dev | ||
| build-essential | ||
| libsqlite3-dev | ||
| libprotobuf-dev | ||
| protobuf-compiler | ||
| wget | ||
| cmake | ||
| make | ||
| clang | ||
| g++ | ||
| libsnappy-dev | ||
| llvm | ||
| libclang-dev | ||
| curl | ||
| git | ||
| libpq-dev | ||
| libssl-dev | ||
| pkg-config | ||
| lsof | ||
| lld | ||
| ) | ||
|
|
||
| missing=() | ||
| for pkg in "${packages[@]}"; do | ||
| if ! dpkg-query -W -f='${Status}' "$pkg" 2>/dev/null | grep -q "install ok installed"; then | ||
| missing+=("$pkg") | ||
| fi | ||
| done | ||
|
|
||
| if [ "${#missing[@]}" -gt 0 ]; then | ||
| sudo apt-get update | ||
| sudo apt-get install --no-install-recommends --assume-yes "${missing[@]}" | ||
| else | ||
| echo "All required apt packages already installed" | ||
| fi | ||
| shell: bash | ||
|
|
||
| - uses: dtolnay/[email protected] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,14 +9,5 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| timeout-minutes: 3 | ||
| steps: | ||
| - uses: styfle/[email protected] | ||
| with: | ||
| # get work flow id by https://api.github.com/repos/rooch-network/rooch/actions/workflows | ||
| # 57258338: Check-Build-Test (check_build_test.yml) | ||
| # 62413072: Build Docker And Deploy Seed (docker_build.yml) | ||
| # 207962511: Cross-Platform Build Check (cross_platform_check.yml) | ||
| # 207962513: Quick Checks (quick_checks.yml) | ||
| # Get IDs from: https://api.github.com/repos/rooch-network/rooch/actions/workflows | ||
| workflow_id: 57258338,62413072,207962511,207962513 | ||
| ignore_sha: true | ||
| access_token: ${{ github.token }} | ||
| - name: Skip legacy cancel workflow | ||
| run: echo "cancel workflow is disabled; concurrency is managed elsewhere" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These workflows run on
pull_requestevents, and switching to a genericruns-on: self-hostedmeans untrusted PR code will execute on your self-hosted infrastructure. If this repo accepts PRs from forks/external contributors, consider restricting self-hosted execution (e.g., only whengithub.event.pull_request.head.repo.fork == false/ same-repo PRs) or routing fork PRs to a hardened/ephemeral runner label dedicated to untrusted workloads.