From a5ddee0cf75660ef7388dca31368ac0631bc83e3 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Mon, 9 Oct 2023 11:17:21 +0200 Subject: [PATCH] Fix Window CI Issue FIx CI by removing android uninstall and adding time becfore checking for tick Removing cache to fix cargo pdb error See https://stackoverflow.com/questions/4256524/lnk1318-unexpected-pdb-error-ok-0 Add time before timing out for the CI to run Reduce the amount of jobs to reduce memory consumption and maybe fix parallel build error Remove rust caching as it not link to CI issue Remove android folder to add more space to window runner --- .github/workflows/ci.yml | 10 +++++----- examples/python-ros2-dataflow/random_turtle.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 383f90d4..68b7278d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: platform: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.platform }} - timeout-minutes: 30 + timeout-minutes: 60 steps: - uses: actions/checkout@v3 - uses: r7kamura/rust-problem-matchers@v1.1.0 @@ -43,7 +43,7 @@ jobs: if: runner.os == 'Windows' run: | docker system prune --all -f - rmdir /s /q C:\Android + Remove-Item "C:\Android" -Force -Recurse - uses: Swatinem/rust-cache@v2 with: cache-provider: buildjet @@ -56,7 +56,7 @@ jobs: - name: "Build" run: cargo build --all - name: "Test" - run: cargo test --all + run: cargo test --all --jobs 1 # Run examples as separate job because otherwise we will exhaust the disk # space of the GitHub action runners. @@ -92,7 +92,7 @@ jobs: if: runner.os == 'Windows' run: | docker system prune --all -f - rmdir /s /q C:\Android + Remove-Item "C:\Android" -Force -Recurse - uses: Swatinem/rust-cache@v2 with: cache-provider: buildjet @@ -197,7 +197,7 @@ jobs: platform: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false runs-on: ${{ matrix.platform }} - timeout-minutes: 30 + timeout-minutes: 60 steps: - uses: actions/checkout@v3 - uses: r7kamura/rust-problem-matchers@v1.1.0 diff --git a/examples/python-ros2-dataflow/random_turtle.py b/examples/python-ros2-dataflow/random_turtle.py index afdc4f6d..85207309 100755 --- a/examples/python-ros2-dataflow/random_turtle.py +++ b/examples/python-ros2-dataflow/random_turtle.py @@ -7,7 +7,7 @@ from dora import Node import pyarrow as pa -CHECK_TICK = 20 +CHECK_TICK = 50 ros2_context = dora.experimental.ros2_bridge.Ros2Context() ros2_node = ros2_context.new_node(