mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
process replay: automatically push refs on fail (#24414)
* test failure()
* let's just change a tune here
* debug
revert
* debug
* use current commit, not ref_commit
fix
* need to figure out better place for this
* quick test
* test without upload
* temp
* use azure token
* fixes
* shouldn't need this
* debug
* debug
* not getting anything?
* does this mean nothing gets envvars?
* add azure token to docker environment variables
* quote
* move back
* clean up a bit
* more clean up
* like this sorting better
* replace flags with CI and clean up
* test FULL_TEST and minimalize diff a bit
* now test all
* revert tests comments
* remove flags
* revert this
revert this
* now make it fail
* now update ref_commit to last commit (make sure we can re-start this test if we commit before last one finishes uploading)
* fix
fix
fix
fix
* bad commit
* why is it not throwing an exception?
* debug
* URLFile returns empty bytes if using cache and remote file doesn't exist
* we always need to download anyway
* debug...
* duh, wrong file. but neither should have it
* add that back and just check explicitly
* check both
* clean up and make a diff
* stylize
* see if this is a better diff on files changed
* update refs
* revert changes
* only for owners or members
* if we have token access
* if we have token access
* if we have token access
* move up
* clean up
* revert
* move update refs to test_processes
* clean up
* update messages
* update msg
* update README and delete update_refs
* this isn't possible to reach anymore
* fix readme
* better help message
better help message
better help message
* only show basename when uploading, only if failed to find
* test diff
* fix printing old ref commit
* change to using
* update refs
* Revert "update refs"
This reverts commit 2e352a736a6de68e2c7064daa4e2e9409ce77686.
* revert
* ref refers to reference commit/logs, cur refers to current logs/commit (future ref)
* like for better
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/test/process_replay/test_processes.py
* every time lol
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d2d3b7b823
This commit is contained in:
@@ -8,6 +8,7 @@ on:
|
||||
env:
|
||||
BASE_IMAGE: openpilot-base
|
||||
DOCKER_REGISTRY: ghcr.io/commaai
|
||||
AZURE_TOKEN: ${{ secrets.AZURE_COMMADATACI_OPENPILOTCI_TOKEN }}
|
||||
|
||||
DOCKER_LOGIN: docker login ghcr.io -u adeebshihadeh -p ${{ secrets.CONTAINER_TOKEN }}
|
||||
BUILD: |
|
||||
@@ -316,6 +317,11 @@ jobs:
|
||||
${{ env.RUN }} "scons -j$(nproc) && \
|
||||
FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py && \
|
||||
coverage xml"
|
||||
- name: Upload reference logs
|
||||
if: ${{ failure() && github.event_name == 'pull_request' && github.repository == 'commaai/openpilot' && env.AZURE_TOKEN != '' }}
|
||||
run: |
|
||||
${{ env.RUN }} "scons -j$(nproc) && \
|
||||
CI=1 AZURE_TOKEN='$AZURE_TOKEN' python selfdrive/test/process_replay/test_processes.py --upload-only"
|
||||
- name: "Upload coverage to Codecov"
|
||||
uses: codecov/codecov-action@v2
|
||||
- name: Print diff
|
||||
|
||||
Reference in New Issue
Block a user