misc jenkins fixups (#24840)

* bump cereal

* remove that

* pull cl image

* lil docker cleanup
pull/24836/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent 1c29b20e72
commit 39da6912ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      Dockerfile.openpilot
  2. 2
      cereal
  3. 8
      selfdrive/manager/test/test_manager.py
  4. 10
      tools/sim/Dockerfile.sim
  5. 2
      tools/sim/build_container.sh

@ -8,11 +8,6 @@ ENV PYTHONPATH ${OPENPILOT_PATH}:${PYTHONPATH}
RUN mkdir -p ${OPENPILOT_PATH} RUN mkdir -p ${OPENPILOT_PATH}
WORKDIR ${OPENPILOT_PATH} WORKDIR ${OPENPILOT_PATH}
COPY Pipfile Pipfile.lock $OPENPILOT_PATH
RUN pip install --no-cache-dir pipenv==2021.5.29 pip==21.3.1 && \
pipenv install --system --deploy --dev --clear && \
pip uninstall -y pipenv
COPY SConstruct ${OPENPILOT_PATH} COPY SConstruct ${OPENPILOT_PATH}
COPY ./pyextra ${OPENPILOT_PATH}/pyextra COPY ./pyextra ${OPENPILOT_PATH}/pyextra
@ -30,4 +25,4 @@ COPY ./panda ${OPENPILOT_PATH}/panda
COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive COPY ./selfdrive ${OPENPILOT_PATH}/selfdrive
COPY ./system ${OPENPILOT_PATH}/system COPY ./system ${OPENPILOT_PATH}/system
RUN scons -j$(nproc) RUN scons --cache-readonly -j$(nproc)

@ -1 +1 @@
Subproject commit 78870ba056174352218988610e5010fde4eca956 Subproject commit 98f795fd73356198f1fc8d5ea5a8f25e6f7c57e0

@ -5,14 +5,13 @@ import time
import unittest import unittest
import selfdrive.manager.manager as manager import selfdrive.manager.manager as manager
from system.hardware import AGNOS, HARDWARE
from selfdrive.manager.process import DaemonProcess from selfdrive.manager.process import DaemonProcess
from selfdrive.manager.process_config import managed_processes from selfdrive.manager.process_config import managed_processes
from system.hardware import AGNOS, HARDWARE
os.environ['FAKEUPLOAD'] = "1" os.environ['FAKEUPLOAD'] = "1"
# TODO: make eon fast MAX_STARTUP_TIME = 3
MAX_STARTUP_TIME = 15
ALL_PROCESSES = [p.name for p in managed_processes.values() if (type(p) is not DaemonProcess) and p.enabled and (p.name not in ['updated', 'pandad'])] ALL_PROCESSES = [p.name for p in managed_processes.values() if (type(p) is not DaemonProcess) and p.enabled and (p.name not in ['updated', 'pandad'])]
@ -54,9 +53,6 @@ class TestManager(unittest.TestCase):
# TODO: make Qt UI exit gracefully # TODO: make Qt UI exit gracefully
continue continue
# Make sure the process is actually dead
managed_processes[p].stop()
# TODO: interrupted blocking read exits with 1 in cereal. use a more unique return code # TODO: interrupted blocking read exits with 1 in cereal. use a more unique return code
exit_codes = [0, 1] exit_codes = [0, 1]
if managed_processes[p].sigkill: if managed_processes[p].sigkill:

@ -1,9 +1,9 @@
FROM ghcr.io/commaai/openpilot-base-cl:latest FROM ghcr.io/commaai/openpilot-base-cl:latest
RUN apt-get update && apt-get install -y --no-install-recommends\ RUN apt-get update && apt-get install -y --no-install-recommends \
tmux \ tmux \
vim \ vim \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# get same tmux config used on NEOS for debugging # get same tmux config used on NEOS for debugging
RUN cd $HOME && \ RUN cd $HOME && \
@ -27,6 +27,6 @@ COPY ./system $HOME/openpilot/system
COPY ./tools $HOME/openpilot/tools COPY ./tools $HOME/openpilot/tools
WORKDIR $HOME/openpilot WORKDIR $HOME/openpilot
RUN scons -j12 RUN scons --cache-readonly -j12
RUN python -c "from selfdrive.test.helpers import set_params_enabled; set_params_enabled()" RUN python -c "from selfdrive.test.helpers import set_params_enabled; set_params_enabled()"

@ -3,7 +3,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../ cd $DIR/../../
docker pull ghcr.io/commaai/openpilot-base:latest docker pull ghcr.io/commaai/openpilot-base-cl:latest
docker build \ docker build \
--cache-from ghcr.io/commaai/openpilot-sim:latest \ --cache-from ghcr.io/commaai/openpilot-sim:latest \
-t ghcr.io/commaai/openpilot-sim:latest \ -t ghcr.io/commaai/openpilot-sim:latest \

Loading…
Cancel
Save