ubuntu 16.04 -> 20.04 (#2378)

old-commit-hash: 719c5e3598
commatwo_master
Adeeb Shihadeh 5 years ago committed by GitHub
parent 61fa53120d
commit 2e5247056a
  1. 2
      .github/workflows/sim_tests.yaml
  2. 20
      .github/workflows/test.yaml
  3. 5
      Dockerfile.openpilot_base
  4. 4
      Pipfile
  5. 4
      Pipfile.lock
  6. 2
      cereal
  7. 2
      laika_repo
  8. 2
      opendbc
  9. 2
      panda
  10. 2
      rednose_repo
  11. 2
      selfdrive/test/process_replay/ref_commit
  12. 4
      tools/README.md
  13. 2
      tools/ubuntu_setup.sh
  14. 4
      tools/webcam/README.md

@ -6,7 +6,7 @@ on:
jobs: jobs:
docker_build: docker_build:
name: build container name: build container
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
if: github.event_name == 'schedule' && github.repository == 'commaai/openpilot' if: github.event_name == 'schedule' && github.repository == 'commaai/openpilot'
steps: steps:

@ -22,7 +22,7 @@ env:
jobs: jobs:
build_release: build_release:
name: build release name: build release
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
env: env:
TEST_DIR: tmppilot TEST_DIR: tmppilot
@ -79,7 +79,7 @@ jobs:
build_webcam: build_webcam:
name: build webcam name: build webcam
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 90 timeout-minutes: 90
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -100,7 +100,7 @@ jobs:
docker_push: docker_push:
name: docker push name: docker push
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
needs: static_analysis # hack to ensure slow tests run first since this and static_analysis are fast needs: static_analysis # hack to ensure slow tests run first since this and static_analysis are fast
@ -120,7 +120,7 @@ jobs:
docker_push_prebuilt: docker_push_prebuilt:
name: docker push prebuilt name: docker push prebuilt
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
if: github.event_name == 'status' && github.repository == 'commaai/openpilot' if: github.event_name == 'status' && github.repository == 'commaai/openpilot'
needs: [static_analysis, unit_tests, process_replay, test_longitudinal, test_car_models] needs: [static_analysis, unit_tests, process_replay, test_longitudinal, test_car_models]
@ -138,7 +138,7 @@ jobs:
static_analysis: static_analysis:
name: static analysis name: static analysis
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -151,7 +151,7 @@ jobs:
valgrind: valgrind:
name: valgrind name: valgrind
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -185,7 +185,7 @@ jobs:
unit_tests: unit_tests:
name: unit tests name: unit tests
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -216,7 +216,7 @@ jobs:
process_replay: process_replay:
name: process replay name: process replay
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -254,7 +254,7 @@ jobs:
test_longitudinal: test_longitudinal:
name: longitudinal name: longitudinal
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -283,7 +283,7 @@ jobs:
test_car_models: test_car_models:
name: test car models name: test car models
runs-on: ubuntu-16.04 runs-on: ubuntu-20.04
timeout-minutes: 50 timeout-minutes: 50
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

@ -1,10 +1,12 @@
FROM ubuntu:16.04 FROM ubuntu:20.04
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \ autoconf \
build-essential \ build-essential \
bzip2 \ bzip2 \
ca-certificates \
capnproto \ capnproto \
libcapnp-dev \ libcapnp-dev \
clang \ clang \
@ -35,7 +37,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ocl-icd-opencl-dev \ ocl-icd-opencl-dev \
opencl-headers \ opencl-headers \
python-dev \ python-dev \
python-pip \
qt5-default \ qt5-default \
qtmultimedia5-dev \ qtmultimedia5-dev \
sudo \ sudo \

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:efaa83445e7234356951f3d0e5058801c1370748ea615ed71251b6bbee403b74 oid sha256:e58d6656969e9fd4f09376a28960b8eccebe200fc3b72250c0b59192b53f76ab
size 2006 size 2014

4
Pipfile.lock generated

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:8d2e235fd2e6da5f59595a511d492decadb44d890f86e4faba71cc720f3cc504 oid sha256:c95e2705366b41510e8b3789778ac0cacfcdda61c7d6277f4fbd8285894efd48
size 177319 size 190871

@ -1 +1 @@
Subproject commit 58545fafa6a3bc25c2548c238f29eed6cc8c6a77 Subproject commit d87b4bbef90404ef4d2629db11499d163d0d15aa

@ -1 +1 @@
Subproject commit bfb59fa18dd05d8766101b16624d020965793a14 Subproject commit 353d8237ddd4f76db697e2f74a07b8a119eda09c

@ -1 +1 @@
Subproject commit 34416de0874c523122e594dd1656737263c7985b Subproject commit 244e8807df75feb88c0fe825569bcd87409bd250

@ -1 +1 @@
Subproject commit 9fb584b20cbbee80aa3e4c98416da726dcd4c1f2 Subproject commit 49c7615ed3ee663e34953e151950e523db774dc3

@ -1 +1 @@
Subproject commit 10bf459f33adcdb75ca6851555f5ff870cfea10e Subproject commit 8de93012b924574afaaac4b5c5119a7303706385

@ -1 +1 @@
4e8a51e064de900f13638d0b641383d7a72e845e 955869126912fa93325ff5ef9cd94310378e3082

@ -24,7 +24,7 @@ Table of Contents
Requirements Requirements
============ ============
openpilot tools and the following setup steps are developed and tested on Ubuntu 16.04, MacOS 10.14.2 and Python 3.8.2. openpilot tools and the following setup steps are developed and tested on Ubuntu 20.04, MacOS 10.14.2 and Python 3.8.2.
Setup Setup
============ ============
@ -167,6 +167,6 @@ Welcomed contributions
============= =============
* Documentation: code comments, better tutorials, etc.. * Documentation: code comments, better tutorials, etc..
* Support for other platforms other than Ubuntu 16.04. * Support for other platforms other than Ubuntu 20.04.
* Performance improvements: the tools have been developed on high-performance workstations (12+ logical cores with 32+ GB of RAM), so they are not optimized for running efficiently. For example, `ui.py` might not be able to run real-time on most PCs. * Performance improvements: the tools have been developed on high-performance workstations (12+ logical cores with 32+ GB of RAM), so they are not optimized for running efficiently. For example, `ui.py` might not be able to run real-time on most PCs.
* More tools: anything that you think might be helpful to others. * More tools: anything that you think might be helpful to others.

@ -41,7 +41,7 @@ sudo apt-get update && sudo apt-get install -y \
ocl-icd-opencl-dev \ ocl-icd-opencl-dev \
opencl-headers \ opencl-headers \
python-dev \ python-dev \
python-pip \ python3-pip \
qt5-default \ qt5-default \
qtmultimedia5-dev \ qtmultimedia5-dev \
screen \ screen \

@ -1,8 +1,8 @@
Run openpilot with webcam on PC/laptop Run openpilot with webcam on PC/laptop
===================== =====================
What's needed: What's needed:
- Ubuntu 16.04 - Ubuntu 20.04
- Python 3.7.3 - Python 3.8.2
- GPU (recommended) - GPU (recommended)
- Two USB webcams, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615) - Two USB webcams, at least 720p and 78 degrees FOV (e.g. Logitech C920/C615)
- [Car harness](https://comma.ai/shop/products/comma-car-harness) with black panda (or the outdated grey panda/giraffe combo) to connect to your car - [Car harness](https://comma.ai/shop/products/comma-car-harness) with black panda (or the outdated grey panda/giraffe combo) to connect to your car

Loading…
Cancel
Save