|
|
@ -10,7 +10,6 @@ env: |
|
|
|
CL_BASE_IMAGE: openpilot-base-cl |
|
|
|
CL_BASE_IMAGE: openpilot-base-cl |
|
|
|
DOCKER_REGISTRY: ghcr.io/commaai |
|
|
|
DOCKER_REGISTRY: ghcr.io/commaai |
|
|
|
AZURE_TOKEN: ${{ secrets.AZURE_COMMADATACI_OPENPILOTCI_TOKEN }} |
|
|
|
AZURE_TOKEN: ${{ secrets.AZURE_COMMADATACI_OPENPILOTCI_TOKEN }} |
|
|
|
HAS_AZURE_TOKEN: $AZURE_TOKEN != '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DOCKER_LOGIN: docker login ghcr.io -u adeebshihadeh -p ${{ secrets.CONTAINER_TOKEN }} |
|
|
|
DOCKER_LOGIN: docker login ghcr.io -u adeebshihadeh -p ${{ secrets.CONTAINER_TOKEN }} |
|
|
|
BUILD: | |
|
|
|
BUILD: | |
|
|
@ -366,7 +365,7 @@ jobs: |
|
|
|
name: process_replay_diff.txt |
|
|
|
name: process_replay_diff.txt |
|
|
|
path: selfdrive/test/process_replay/diff.txt |
|
|
|
path: selfdrive/test/process_replay/diff.txt |
|
|
|
- name: Upload reference logs |
|
|
|
- name: Upload reference logs |
|
|
|
if: ${{ failure() && github.event_name == 'pull_request' && github.repository == 'commaai/openpilot' && env.HAS_AZURE_TOKEN }} |
|
|
|
if: ${{ failure() && github.event_name == 'pull_request' && github.repository == 'commaai/openpilot' && env.AZURE_TOKEN != '' }} |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) && \ |
|
|
|
CI=1 AZURE_TOKEN='$AZURE_TOKEN' python selfdrive/test/process_replay/test_processes.py -j$(nproc) --upload-only" |
|
|
|
CI=1 AZURE_TOKEN='$AZURE_TOKEN' python selfdrive/test/process_replay/test_processes.py -j$(nproc) --upload-only" |
|
|
@ -551,22 +550,22 @@ jobs: |
|
|
|
output="${output//$'\n'/'%0A'}" |
|
|
|
output="${output//$'\n'/'%0A'}" |
|
|
|
echo "::set-output name=diff::$output" |
|
|
|
echo "::set-output name=diff::$output" |
|
|
|
- name: Find comment |
|
|
|
- name: Find comment |
|
|
|
if: env.HAS_AZURE_TOKEN |
|
|
|
if: ${{ env.AZURE_TOKEN != '' }} |
|
|
|
uses: peter-evans/find-comment@v1 |
|
|
|
uses: peter-evans/find-comment@1769778a0c5bd330272d749d12c036d65e70d39d |
|
|
|
id: fc |
|
|
|
id: fc |
|
|
|
with: |
|
|
|
with: |
|
|
|
issue-number: ${{ github.event.pull_request.number }} |
|
|
|
issue-number: ${{ github.event.pull_request.number }} |
|
|
|
body-includes: This PR makes changes to |
|
|
|
body-includes: This PR makes changes to |
|
|
|
- name: Update comment |
|
|
|
- name: Update comment |
|
|
|
if: steps.save_diff.outputs.diff != '' && env.HAS_AZURE_TOKEN |
|
|
|
if: ${{ steps.save_diff.outputs.diff != '' && env.AZURE_TOKEN != '' }} |
|
|
|
uses: peter-evans/create-or-update-comment@v1 |
|
|
|
uses: peter-evans/create-or-update-comment@b95e16d2859ad843a14218d1028da5b2c4cbc4b4 |
|
|
|
with: |
|
|
|
with: |
|
|
|
comment-id: ${{ steps.fc.outputs.comment-id }} |
|
|
|
comment-id: ${{ steps.fc.outputs.comment-id }} |
|
|
|
issue-number: ${{ github.event.pull_request.number }} |
|
|
|
issue-number: ${{ github.event.pull_request.number }} |
|
|
|
body: "${{ steps.save_diff.outputs.diff }}" |
|
|
|
body: "${{ steps.save_diff.outputs.diff }}" |
|
|
|
edit-mode: replace |
|
|
|
edit-mode: replace |
|
|
|
- name: Delete comment |
|
|
|
- name: Delete comment |
|
|
|
if: steps.fc.outputs.comment-id != '' && steps.save_diff.outputs.diff == '' && env.HAS_AZURE_TOKEN |
|
|
|
if: ${{ steps.fc.outputs.comment-id != '' && steps.save_diff.outputs.diff == '' && env.AZURE_TOKEN != '' }} |
|
|
|
uses: actions/github-script@v6 |
|
|
|
uses: actions/github-script@v6 |
|
|
|
with: |
|
|
|
with: |
|
|
|
script: | |
|
|
|
script: | |
|
|
|