diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index eba999e260..d82b450abd 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -251,7 +251,7 @@ jobs: strategy: fail-fast: false matrix: - job: [0, 1] + job: [0, 1, 2, 3] steps: - uses: actions/checkout@v4 with: @@ -271,7 +271,7 @@ jobs: ${{ env.RUN }} "$PYTEST selfdrive/car/tests/test_models.py && \ chmod -R 777 /tmp/comma_download_cache" env: - NUM_JOBS: 2 + NUM_JOBS: 4 JOB_ID: ${{ matrix.job }} - name: "Upload coverage to Codecov" uses: codecov/codecov-action@v4 diff --git a/selfdrive/car/tests/test_models.py b/selfdrive/car/tests/test_models.py index e1e89abf9c..fc224c8860 100644 --- a/selfdrive/car/tests/test_models.py +++ b/selfdrive/car/tests/test_models.py @@ -35,7 +35,7 @@ NUM_JOBS = int(os.environ.get("NUM_JOBS", "1")) JOB_ID = int(os.environ.get("JOB_ID", "0")) INTERNAL_SEG_LIST = os.environ.get("INTERNAL_SEG_LIST", "") INTERNAL_SEG_CNT = int(os.environ.get("INTERNAL_SEG_CNT", "0")) -MAX_EXAMPLES = int(os.environ.get("MAX_EXAMPLES", "300")) +MAX_EXAMPLES = int(os.environ.get("MAX_EXAMPLES", "200")) CI = os.environ.get("CI", None) is not None diff --git a/tools/lib/filereader.py b/tools/lib/filereader.py index 963d7a8cdb..8206ad2228 100644 --- a/tools/lib/filereader.py +++ b/tools/lib/filereader.py @@ -12,6 +12,7 @@ def internal_source_available(url=DATA_ENDPOINT): hostname = urlparse(url).hostname port = urlparse(url).port or 80 with socket.socket(socket.AF_INET,socket.SOCK_STREAM) as s: + s.settimeout(0.5) s.connect((hostname, port)) return True except (socket.gaierror, ConnectionRefusedError):