From db5e13b9911cc74438bee123bc3430da6c31b24b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 20 Aug 2023 19:31:18 -0700 Subject: [PATCH] debug --- .github/workflows/selfdrive_tests.yaml | 4 ++++ selfdrive/car/docs.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 0aad8ba0bb5ea2..80205585f142a9 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -405,6 +405,10 @@ jobs: run: | ${{ env.RUN }} "scons -j$(nproc) && python selfdrive/debug/dump_car_info.py --path /tmp/openpilot_cache/base_car_info" sudo chown -R $USER:$USER ${{ github.workspace }} + - uses: actions/upload-artifact@v3 + with: + name: my-artifact + path: ~/openpilot_cache/base_car_info - uses: actions/checkout@v3 with: submodules: true diff --git a/selfdrive/car/docs.py b/selfdrive/car/docs.py index 8475a69d8a084d..b05a1516249efa 100755 --- a/selfdrive/car/docs.py +++ b/selfdrive/car/docs.py @@ -29,6 +29,8 @@ def get_all_car_info() -> List[CarInfo]: all_car_info: List[CarInfo] = [] footnotes = get_all_footnotes() for model, car_info in get_interface_attr("CAR_INFO", combine_brands=True).items(): + print(model, car_info) + # If available, uses experimental longitudinal limits for the docs CP = interfaces[model][0].get_params(model, fingerprint=gen_empty_fingerprint(), car_fw=[car.CarParams.CarFw(ecu="unknown")], experimental_long=True, docs=True) @@ -48,6 +50,7 @@ def get_all_car_info() -> List[CarInfo]: # Sort cars by make and model + year sorted_cars: List[CarInfo] = natsorted(all_car_info, key=lambda car: car.name.lower()) + print(sorted_cars) return sorted_cars