CI: codecov for multiprocessing (#30428)

* concurrencty codecov

* its a list

* retrigger ci

* increase delay
pull/30431/head
Justin Newberry 1 year ago committed by GitHub
parent 5c2796a104
commit 1e91cf92a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/selfdrive_tests.yaml
  2. 3
      pyproject.toml
  3. 2
      selfdrive/athena/tests/test_athenad.py

@ -213,6 +213,7 @@ jobs:
run: | run: |
${{ env.RUN }} "CI=1 coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \ ${{ env.RUN }} "CI=1 coverage run selfdrive/test/process_replay/test_processes.py -j$(nproc) && \
chmod -R 777 /tmp/comma_download_cache && \ chmod -R 777 /tmp/comma_download_cache && \
coverage combine && \
coverage xml" coverage xml"
- name: Print diff - name: Print diff
id: print-diff id: print-diff
@ -282,6 +283,7 @@ jobs:
run: | run: |
${{ env.RUN_CL }} "unset PYTHONWARNINGS && \ ${{ env.RUN_CL }} "unset PYTHONWARNINGS && \
ONNXCPU=1 CI=1 NO_NAV=1 coverage run selfdrive/test/process_replay/model_replay.py && \ ONNXCPU=1 CI=1 NO_NAV=1 coverage run selfdrive/test/process_replay/model_replay.py && \
coverage combine && \
coverage xml" coverage xml"
- name: Run unit tests - name: Run unit tests
timeout-minutes: 4 timeout-minutes: 4

@ -199,3 +199,6 @@ flake8-implicit-str-concat.allow-multiline=false
"system".msg = "Use openpilot.system" "system".msg = "Use openpilot.system"
"third_party".msg = "Use openpilot.third_party" "third_party".msg = "Use openpilot.third_party"
"tools".msg = "Use openpilot.tools" "tools".msg = "Use openpilot.tools"
[tool.coverage.run]
concurrency = ["multiprocessing", "thread"]

@ -87,7 +87,7 @@ class TestAthenadMethods(unittest.TestCase):
p = Process(target=send_deviceState) p = Process(target=send_deviceState)
p.start() p.start()
time.sleep(0.1) time.sleep(0.2)
try: try:
deviceState = dispatcher["getMessage"]("deviceState") deviceState = dispatcher["getMessage"]("deviceState")
assert deviceState['deviceState'] assert deviceState['deviceState']

Loading…
Cancel
Save