|  |  | @ -41,8 +41,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Strip non-release files |  |  |  |     - name: Strip non-release files | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: | |  |  |  |       run: | | 
			
		
	
		
		
			
				
					
					|  |  |  |         mkdir $STRIPPED_DIR |  |  |  |         mkdir $STRIPPED_DIR | 
			
		
	
	
		
		
			
				
					|  |  | @ -144,6 +144,13 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |     if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' |  |  |  |     if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' | 
			
		
	
		
		
			
				
					
					|  |  |  |     needs: static_analysis # hack to ensure slow tests run first since this and static_analysis are fast |  |  |  |     needs: static_analysis # hack to ensure slow tests run first since this and static_analysis are fast | 
			
		
	
		
		
			
				
					
					|  |  |  |     steps: |  |  |  |     steps: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     - name: Get current date | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       id: date | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       run: echo "::set-output name=time::$(date +'%s')" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     - name: Output timestamp | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       run: echo $TIMESTAMP | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       env: | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         TIMESTAMP: ${{ steps.date.outputs.time }} | 
			
		
	
		
		
			
				
					
					|  |  |  |     - uses: actions/checkout@v2 |  |  |  |     - uses: actions/checkout@v2 | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         submodules: true |  |  |  |         submodules: true | 
			
		
	
	
		
		
			
				
					|  |  | @ -155,8 +162,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: ${{ github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' }} |  |  |  |         CACHE_SKIP_SAVE: ${{ github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' }} | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}-${{ steps.date.outputs.time }} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Push to container registry |  |  |  |     - name: Push to container registry | 
			
		
	
	
		
		
			
				
					|  |  | @ -180,8 +187,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: pre-commit |  |  |  |     - name: pre-commit | 
			
		
	
	
		
		
			
				
					|  |  | @ -200,7 +207,7 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |       uses: actions/cache@v2 |  |  |  |       uses: actions/cache@v2 | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/comma_download_cache |  |  |  |         path: /tmp/comma_download_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_valgrind_replay.py') }} |  |  |  |         key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/test_valgrind_replay.py') }} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Cache scons |  |  |  |     - name: Cache scons | 
			
		
	
		
		
			
				
					
					|  |  |  |       id: scons-cache |  |  |  |       id: scons-cache | 
			
		
	
		
		
			
				
					
					|  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. | 
			
		
	
	
		
		
			
				
					|  |  | @ -209,8 +216,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Run valgrind |  |  |  |     - name: Run valgrind | 
			
		
	
	
		
		
			
				
					|  |  | @ -237,8 +244,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Run unit tests |  |  |  |     - name: Run unit tests | 
			
		
	
	
		
		
			
				
					|  |  | @ -277,7 +284,7 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |       uses: actions/cache@v2 |  |  |  |       uses: actions/cache@v2 | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/comma_download_cache |  |  |  |         path: /tmp/comma_download_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/process_replay/test_processes.py') }} |  |  |  |         key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/process_replay/test_processes.py') }} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Cache scons |  |  |  |     - name: Cache scons | 
			
		
	
		
		
			
				
					
					|  |  |  |       id: scons-cache |  |  |  |       id: scons-cache | 
			
		
	
		
		
			
				
					
					|  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. | 
			
		
	
	
		
		
			
				
					|  |  | @ -286,8 +293,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Run replay |  |  |  |     - name: Run replay | 
			
		
	
	
		
		
			
				
					|  |  | @ -337,8 +344,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Test longitudinal |  |  |  |     - name: Test longitudinal | 
			
		
	
	
		
		
			
				
					|  |  | @ -367,7 +374,7 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |       uses: actions/cache@v2 |  |  |  |       uses: actions/cache@v2 | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/comma_download_cache |  |  |  |         path: /tmp/comma_download_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_routes.py') }} |  |  |  |         key: ${{ hashFiles('.github/workflows/selfdrive_tests.yaml', 'selfdrive/test/test_routes.py') }} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Cache scons |  |  |  |     - name: Cache scons | 
			
		
	
		
		
			
				
					
					|  |  |  |       id: scons-cache |  |  |  |       id: scons-cache | 
			
		
	
		
		
			
				
					
					|  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |  |  |  |       # TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. | 
			
		
	
	
		
		
			
				
					|  |  | @ -376,8 +383,8 @@ jobs: | 
			
		
	
		
		
			
				
					
					|  |  |  |         CACHE_SKIP_SAVE: true |  |  |  |         CACHE_SKIP_SAVE: true | 
			
		
	
		
		
			
				
					
					|  |  |  |       with: |  |  |  |       with: | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: /tmp/scons_cache |  |  |  |         path: /tmp/scons_cache | 
			
		
	
		
		
			
				
					
					|  |  |  |         key: scons-build-cache-${{ steps.stamps.outputs.time }} |  |  |  |         key: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         restore-keys: scons-build-cache- |  |  |  |         restore-keys: scons-${{ hashFiles('.github/workflows/selfdrive_tests.yaml') }}- | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     - name: Build Docker image |  |  |  |     - name: Build Docker image | 
			
		
	
		
		
			
				
					
					|  |  |  |       run: eval "$BUILD" |  |  |  |       run: eval "$BUILD" | 
			
		
	
		
		
			
				
					
					|  |  |  |     - name: Test car models |  |  |  |     - name: Test car models | 
			
		
	
	
		
		
			
				
					|  |  | 
 |