CI/simulator: Fix metadrive test `pyopencl.CompilerWarning` (#32487)

* add pytest.mark.filterwarnings

* remove -W pyopencl.CompilerWarning

* add comment
old-commit-hash: f3f22a5698
pull/32103/head
Hoang Bui 11 months ago committed by GitHub
parent 1c1b63bdb3
commit acd61af9fc
  1. 2
      .github/workflows/tools_tests.yaml
  2. 1
      tools/sim/tests/test_metadrive_bridge.py

@ -59,7 +59,7 @@ jobs:
${{ env.RUN }} "export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \ ${{ env.RUN }} "export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \
source selfdrive/test/setup_xvfb.sh && \ source selfdrive/test/setup_xvfb.sh && \
source selfdrive/test/setup_vsound.sh && \ source selfdrive/test/setup_vsound.sh && \
CI=1 pytest tools/sim/tests/test_metadrive_bridge.py -W ignore::pyopencl.CompilerWarning" CI=1 pytest tools/sim/tests/test_metadrive_bridge.py"
devcontainer: devcontainer:
name: devcontainer name: devcontainer

@ -8,6 +8,7 @@ from openpilot.tools.sim.bridge.metadrive.metadrive_bridge import MetaDriveBridg
from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase
@pytest.mark.slow @pytest.mark.slow
@pytest.mark.filterwarnings("ignore::pyopencl.CompilerWarning") # Unimportant warning of non-empty compile log
class TestMetaDriveBridge(TestSimBridgeBase): class TestMetaDriveBridge(TestSimBridgeBase):
def create_bridge(self): def create_bridge(self):
return MetaDriveBridge(False, False) return MetaDriveBridge(False, False)

Loading…
Cancel
Save