Skip to content

Commit

Permalink
Merge pull request #469 from una-auxme/467-self-hosted-runner-should-…
Browse files Browse the repository at this point in the history
…only-be-started-with-a-display-present-add-to-documentation

Added execution info for drive action
  • Loading branch information
ll7 authored Nov 7, 2024
2 parents 311fac1 + 05ab21a commit ab35f8d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ jobs:
- name: Save pull request artifact
if: github.event_name == 'pull_request'
env:
PR_ID: ${{ github.event.number }}
run: |
mkdir -p ./artifact
printf '{
"is_pr": true,
"pr_id": $PR_ID
"pr_id": ${{ github.event.number }}
}' >> ./artifact/artifact.json
- name: Save merge artifact
Expand Down
17 changes: 9 additions & 8 deletions doc/development/drive_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

**Summary:** This page explains the GitHub build action we use to evaluate our agent.

- [GitHub actions](#github-actions)
- [The drive job](#the-drive-job)
- [1. Checkout repository (`actions/checkout@v3`)](#1-checkout-repository-actionscheckoutv3)
- [2. Run agent with docker-compose](#2-run-agent-with-docker-compose)
- [3. Copy simulation results file out of container](#3-copy-simulation-results-file-out-of-container)
- [4. Stop docker-compose stack](#4-stop-docker-compose-stack)
- [5. Comment result in pull request `actions/github-script@v6`](#5-comment-result-in-pull-request-actionsgithub-scriptv6)
- [Simulation results](#simulation-results)
- [The drive job](#the-drive-job)
- [1. Checkout repository (`actions/checkout@v3`)](#1-checkout-repository-actionscheckoutv3)
- [2. Run agent with docker-compose](#2-run-agent-with-docker-compose)
- [3. Copy simulation results file out of container](#3-copy-simulation-results-file-out-of-container)
- [4. Stop docker-compose stack](#4-stop-docker-compose-stack)
- [5. Comment result in pull request `actions/github-script@v6`](#5-comment-result-in-pull-request-actionsgithub-scriptv6)
- [Simulation results](#simulation-results)

## The drive job

The `drive` job is executed conditionally on `pull_request`, after the build successfully ran through.

> Warning: Always start the GitHub runner that handles the `drive` action through direct access to the machine. Do not use remote access like `ssh` or `xrdp`.
### 1. Checkout repository ([`actions/checkout@v3`](https://github.com/actions/checkout))

Same step as in the [build job](#1-checkout-repository--actionscheckoutv3-)
Expand Down

0 comments on commit ab35f8d

Please sign in to comment.