|
8 | 8 | pull_request: |
9 | 9 | branches: |
10 | 10 | - main |
| 11 | + # This needs to be declared explicitly so that the RPC checks job is actually |
| 12 | + # run when PR is labeled. |
| 13 | + types: [opened, synchronize, reopened, labeled, unlabeled] |
11 | 14 | paths-ignore: |
12 | 15 | - 'docs/**' |
13 | 16 | - '.github/workflows/docs-*.yml' |
@@ -505,6 +508,54 @@ jobs: |
505 | 508 | - name: Dump docker logs |
506 | 509 | if: always() |
507 | 510 | uses: jwalton/gh-docker-logs@v2 |
| 511 | + calibnet-rpc-checks-no-ops: |
| 512 | + name: Calibnet RPC checks |
| 513 | + runs-on: ubuntu-24.04-arm |
| 514 | + if: ${{ !contains(github.event.pull_request.labels.*.name, 'RPC') }} |
| 515 | + steps: |
| 516 | + - run: echo "No-op job to trigger the required calibnet RPC checks." |
| 517 | + calibnet-rpc-checks: |
| 518 | + if: ${{ contains(github.event.pull_request.labels.*.name, 'RPC') }} |
| 519 | + needs: |
| 520 | + - build-ubuntu |
| 521 | + name: Calibnet RPC checks |
| 522 | + runs-on: ubuntu-24.04 |
| 523 | + env: |
| 524 | + # We use a custom Dockerfile for CI to speed up the build process. |
| 525 | + FOREST_DOCKERFILE_OVERRIDE: scripts/devnet/forest_ci.dockerfile |
| 526 | + steps: |
| 527 | + # Remove some unnecessary software to free up space. This should free up around 15-20 GB. |
| 528 | + # This is required because of the limited space on the runner, |
| 529 | + # and disk space-hungry snapshots used in the setup. |
| 530 | + # This is taken from: |
| 531 | + # https://github.com/easimon/maximize-build-space/blob/fc881a613ad2a34aca9c9624518214ebc21dfc0c/action.yml#L121-L136 |
| 532 | + # Using the action directly is not feasible as it does some more modifications that break the setup in our case. |
| 533 | + - name: Remove unnecessary software |
| 534 | + run: | |
| 535 | + echo "Disk space before cleanup" |
| 536 | + df -h |
| 537 | + sudo rm -rf /usr/share/dotnet |
| 538 | + sudo rm -rf /usr/local/lib/android |
| 539 | + sudo rm -rf /opt/ghc |
| 540 | + sudo rm -rf /opt/hostedtoolcache/CodeQL |
| 541 | + echo "Disk space after cleanup" |
| 542 | + df -h |
| 543 | + - uses: actions/checkout@v4 |
| 544 | + - uses: actions/download-artifact@v4 |
| 545 | + with: |
| 546 | + name: 'forest-${{ runner.os }}' |
| 547 | + - name: Run api compare tests |
| 548 | + run: ./scripts/tests/api_compare/setup.sh |
| 549 | + timeout-minutes: '${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}' |
| 550 | + - name: Dump docker logs |
| 551 | + if: always() |
| 552 | + uses: jwalton/gh-docker-logs@v2 |
| 553 | + - name: Dump Docker usage |
| 554 | + if: always() |
| 555 | + run: | |
| 556 | + docker system df |
| 557 | + docker system df --verbose |
| 558 | + df -h |
508 | 559 | # Umbrella job to aggregate all integration tests and get their status |
509 | 560 | integration-tests-status: |
510 | 561 | needs: |
|
0 commit comments