Skip to content

Commit 53d4750

Browse files
final test
1 parent cff30d8 commit 53d4750

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.github/workflows/selfdrive_tests.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -338,19 +338,10 @@ jobs:
338338
name: Create UI Report
339339
runs-on: ubuntu-latest
340340
steps:
341-
- uses: actions/checkout@v4
342-
with:
343-
submodules: true
344-
- uses: ./.github/workflows/setup-with-retry
345-
- name: Build openpilot
346-
run: ${{ env.RUN }} "scons -j$(nproc)"
347-
- name: Create Test Report
348-
run: >
349-
${{ env.RUN }} "PYTHONWARNINGS=ignore &&
350-
source selfdrive/test/setup_xvfb.sh &&
351-
python3 selfdrive/ui/tests/test_ui/run.py"
341+
- name: Fake screens
342+
run: git clone -b pr_ui https://github.com/maxime-desroches/ci-artifacts
352343
- name: Upload Test Report
353344
uses: actions/upload-artifact@v4
354345
with:
355346
name: report-${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && 'master' || github.event.number }}
356-
path: selfdrive/ui/tests/test_ui/report_1/screenshots
347+
path: ci-artifacts

.github/workflows/ui_preview.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
preview:
22-
if: github.repository == 'commaai/openpilot'
22+
if: github.repository == 'maxime-desroches/openpilot'
2323
name: preview
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 20
@@ -58,7 +58,7 @@ jobs:
5858
- name: Getting master ui
5959
uses: actions/checkout@v4
6060
with:
61-
repository: commaai/ci-artifacts
61+
repository: maxime-desroches/ci-artifacts
6262
ssh-key: ${{ secrets.CI_ARTIFACTS_DEPLOY_KEY }}
6363
path: ${{ github.workspace }}/master_ui
6464
ref: openpilot_master_ui
@@ -105,13 +105,13 @@ jobs:
105105
DIFF="${DIFF}<table>"
106106
107107
DIFF="${DIFF}<tr>"
108-
DIFF="${DIFF} <td> master <img src=\"https://raw.githubusercontent.com/commaai/ci-artifacts/openpilot_master_ui/${A[$i]}.png\"> </td>"
109-
DIFF="${DIFF} <td> proposed <img src=\"https://raw.githubusercontent.com/commaai/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}.png\"> </td>"
108+
DIFF="${DIFF} <td> master <img src=\"https://raw.githubusercontent.com/maxime-desroches/ci-artifacts/openpilot_master_ui/${A[$i]}.png\"> </td>"
109+
DIFF="${DIFF} <td> proposed <img src=\"https://raw.githubusercontent.com/maxime-desroches/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}.png\"> </td>"
110110
DIFF="${DIFF}</tr>"
111111
112112
DIFF="${DIFF}<tr>"
113-
DIFF="${DIFF} <td> diff <img src=\"https://raw.githubusercontent.com/commaai/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}_diff.png\"> </td>"
114-
DIFF="${DIFF} <td> composite diff <img src=\"https://raw.githubusercontent.com/commaai/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}_diff.gif\"> </td>"
113+
DIFF="${DIFF} <td> diff <img src=\"https://raw.githubusercontent.com/maxime-desroches/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}_diff.png\"> </td>"
114+
DIFF="${DIFF} <td> composite diff <img src=\"https://raw.githubusercontent.com/maxime-desroches/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}_diff.gif\"> </td>"
115115
DIFF="${DIFF}</tr>"
116116
117117
DIFF="${DIFF}</table>"
@@ -124,7 +124,7 @@ jobs:
124124
if [[ $INDEX -eq 0 ]]; then
125125
TABLE="${TABLE}<tr>"
126126
fi
127-
TABLE="${TABLE} <td> <img src=\"https://raw.githubusercontent.com/commaai/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}.png\"> </td>"
127+
TABLE="${TABLE} <td> <img src=\"https://raw.githubusercontent.com/maxime-desroches/ci-artifacts/${{ env.BRANCH_NAME }}/${A[$i]}.png\"> </td>"
128128
if [[ $INDEX -eq 1 || $(($i + 1)) -eq ${#A[*]} ]]; then
129129
TABLE="${TABLE}</tr>"
130130
fi

0 commit comments

Comments
 (0)