Merge remote-tracking branch 'upstream/master' into toyota-fuzzy-v2

pull/28641/head
Shane Smiskol 2 years ago
commit 4bb11fcfc0
  1. 3
      .devcontainer/Dockerfile
  2. 6
      .devcontainer/container_post_create.sh
  3. 14
      .devcontainer/devcontainer.json
  4. 2
      .devcontainer/host_setup.sh
  5. 2
      .gitattributes
  6. 15
      .github/workflows/tools_tests.yaml
  7. 14
      Dockerfile.openpilot_base
  8. 3
      selfdrive/assets/fonts/.gitattributes
  9. BIN
      selfdrive/assets/fonts/Inter-Black.ttf
  10. BIN
      selfdrive/assets/fonts/Inter-Bold.ttf
  11. BIN
      selfdrive/assets/fonts/Inter-ExtraBold.ttf
  12. BIN
      selfdrive/assets/fonts/Inter-ExtraLight.ttf
  13. BIN
      selfdrive/assets/fonts/Inter-Light.ttf
  14. BIN
      selfdrive/assets/fonts/Inter-Medium.ttf
  15. BIN
      selfdrive/assets/fonts/Inter-Regular.ttf
  16. BIN
      selfdrive/assets/fonts/Inter-SemiBold.ttf
  17. BIN
      selfdrive/assets/fonts/Inter-Thin.ttf
  18. BIN
      selfdrive/assets/fonts/JetBrainsMono-Medium.ttf
  19. 3
      selfdrive/assets/training/.gitattributes
  20. BIN
      selfdrive/assets/training/step0.png
  21. BIN
      selfdrive/assets/training/step1.png
  22. BIN
      selfdrive/assets/training/step10.png
  23. BIN
      selfdrive/assets/training/step11.png
  24. BIN
      selfdrive/assets/training/step12.png
  25. BIN
      selfdrive/assets/training/step13.png
  26. BIN
      selfdrive/assets/training/step14.png
  27. BIN
      selfdrive/assets/training/step15.png
  28. BIN
      selfdrive/assets/training/step16.png
  29. BIN
      selfdrive/assets/training/step17.png
  30. BIN
      selfdrive/assets/training/step18.png
  31. BIN
      selfdrive/assets/training/step2.png
  32. BIN
      selfdrive/assets/training/step3.png
  33. BIN
      selfdrive/assets/training/step4.png
  34. BIN
      selfdrive/assets/training/step5.png
  35. BIN
      selfdrive/assets/training/step6.png
  36. BIN
      selfdrive/assets/training/step7.png
  37. BIN
      selfdrive/assets/training/step8.png
  38. BIN
      selfdrive/assets/training/step9.png
  39. 4
      selfdrive/car/hyundai/values.py
  40. 1
      selfdrive/car/toyota/values.py

@ -1,8 +1,5 @@
FROM ghcr.io/commaai/openpilot-base:latest
# remove gitconfig if exists, since its gonna be replaced by host one
RUN rm -f /root/.gitconfig
RUN apt update && apt install -y vim net-tools usbutils htop ripgrep tmux
RUN pip install ipython jupyter jupyterlab

@ -12,3 +12,9 @@ if [ -n "\$DISPLAY" ]; then
fi
EOF
fi
# These lines are temporary, to remain backwards compatible with old devcontainers
# that were running as root and therefore had their caches written as root
USER=batman
sudo chown -R $USER: /tmp/scons_cache
sudo chown -R $USER: /tmp/comma_download_cache

@ -14,13 +14,23 @@
},
"runArgs": [
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
"--volume=${localWorkspaceFolder}/.devcontainer/.host/.Xauthority:/root/.Xauthority",
"--volume=${localEnv:HOME}/.comma:/root/.comma",
"--volume=${localWorkspaceFolder}/.devcontainer/.host/.Xauthority:/home/batman/.Xauthority",
"--volume=${localEnv:HOME}/.comma:/home/batman/.comma",
"--volume=/tmp/comma_download_cache:/tmp/comma_download_cache",
"--volume=/tmp/devcontainer_scons_cache:/tmp/scons_cache",
"--shm-size=1G",
"--add-host=host.docker.internal:host-gateway" // required to use host.docker.internal on linux
],
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": false,
"installOhMyZsh": false,
"upgradePackages": false,
"username": "batman"
}
},
"containerUser": "root",
"remoteUser": "batman",
"customizations": {
"vscode": {
"extensions": [

@ -1,7 +1,9 @@
#!/usr/bin/env bash
# pull base image
if [[ -z $USE_LOCAL_IMAGE ]]; then
docker pull ghcr.io/commaai/openpilot-base:latest
fi
# setup .host dir
mkdir -p .devcontainer/.host

2
.gitattributes vendored

@ -1,3 +1,5 @@
*.dlc filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
selfdrive/assets/fonts/* filter=lfs diff=lfs -text
selfdrive/assets/training/* filter=lfs diff=lfs -text
selfdrive/car/tests/test_models_segs.txt filter=lfs diff=lfs merge=lfs -text

@ -90,11 +90,22 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/workflows/setup-with-retry
with:
git_lfs: false
- name: Use local image for testing devcontainer with latest base image
run: |
echo "USE_LOCAL_IMAGE=true" >> "$GITHUB_ENV"
- name: Setup Dev Container CLI
run: npm install -g @devcontainers/cli
- name: Build dev container image
run: devcontainer build --workspace-folder .
- name: Run dev container
run: devcontainer up --workspace-folder .
run: |
mkdir -p /tmp/devcontainer_scons_cache/
cp -r $GITHUB_WORKSPACE/.ci_cache/scons_cache/* /tmp/devcontainer_scons_cache/
devcontainer up --workspace-folder .
- name: Test environment
run: devcontainer exec --workspace-folder . scons --dry-run
run: |
devcontainer exec --workspace-folder . scons -j$(nproc)
devcontainer exec --workspace-folder . pip install pip-install-test

@ -22,18 +22,24 @@ RUN cd /tmp && \
rm -rf arm/ && \
rm -rf thumb/nofp thumb/v6* thumb/v8* thumb/v7+fp thumb/v7-r+fp.sp
ARG USER=batman
ARG USER_UID=1000
RUN useradd -m -s /bin/bash -u $USER_UID $USER
USER $USER
ENV POETRY_VIRTUALENVS_CREATE=false
ENV PYENV_VERSION=3.11.4
ENV PYENV_ROOT="/root/.pyenv"
ENV PYENV_ROOT="/home/$USER/pyenv"
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
COPY pyproject.toml poetry.lock .python-version /tmp/
COPY tools/install_python_dependencies.sh /tmp/tools/
COPY --chown=$USER pyproject.toml poetry.lock .python-version /tmp/
COPY --chown=$USER tools/install_python_dependencies.sh /tmp/tools/
RUN cd /tmp && \
tools/install_python_dependencies.sh && \
rm -rf /tmp/* && \
rm -rf /root/.cache && \
rm -rf /home/$USER/.cache && \
pip uninstall -y poetry
USER root
RUN sudo git config --global --add safe.directory /tmp/openpilot

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b19422590f5a1995f18f5097aa43f1d721e15a3980aa23236f612511bbb1247
size 542

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:949bc01262fb0c894157a2f0d2bb01297a276c11acf55460d4c87c84b7832af4
size 883

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 KiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 944 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 915 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 KiB

After

Width:  |  Height:  |  Size: 132 B

@ -960,6 +960,7 @@ FW_VERSIONS = {
b'\xf1\x00TM ESC \x04 102!\x04\x05 58910-S2GA0',
b'\xf1\x00TM ESC \x04 101 \x08\x04 58910-S2GA0',
b'\xf1\x00TM ESC \x02 103"\x07\x08 58910-S2GA0',
b'\xf1\x00TM ESC 103!\x030 58910-S1MA0',
],
(Ecu.engine, 0x7e0, None): [
b'\xf1\x870\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf1\x81HM6M1_0a0_L50',
@ -973,12 +974,15 @@ FW_VERSIONS = {
b'\xf1\x81HM6M2_0a0_G00',
b'\xf1\x870\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf1\x81HM6M1_0a0_J10',
b'\xf1\x8739101-2STN8\xf1\x81HM6M1_0a0_M00',
b'\xf1\x87 \xf1\x81 ',
],
(Ecu.eps, 0x7d4, None): [
b'\xf1\x00TM MDPS C 1.00 1.02 56370-S2AA0 0B19',
b'\xf1\x00TM MDPS C 1.00 1.01 56310-S1AB0 4TSDC101',
b'\xf1\x00TM MDPS C 1.00 1.01 56310-S1EB0 4TSDC101',
],
(Ecu.fwdCamera, 0x7c4, None): [
b'\xf1\x00TM MFC AT MES LHD 1.00 1.05 99211-S1500 220126',
b'\xf1\x00TMA MFC AT MEX LHD 1.00 1.01 99211-S2500 210205',
b'\xf1\x00TMA MFC AT USA LHD 1.00 1.00 99211-S2500 200720',
b'\xf1\x00TM MFC AT EUR LHD 1.00 1.03 99211-S1500 210224',

@ -2027,6 +2027,7 @@ FW_VERSIONS = {
b'\x018966378G2000\x00\x00\x00\x00',
b'\x018966378G3000\x00\x00\x00\x00',
b'\x018966378B2000\x00\x00\x00\x00',
b'\x018966378B3100\x00\x00\x00\x00',
],
(Ecu.abs, 0x7b0, None): [
b'\x01F152678221\x00\x00\x00\x00\x00\x00',

Loading…
Cancel
Save