more cleanup

pull/31880/head
Justin Newberry 1 year ago
parent a0b0e5c3f3
commit a123538908
  1. 4
      Jenkinsfile
  2. 5
      release/README.md
  3. 10
      release/build_git_channel.sh

4
Jenkinsfile vendored

@ -146,12 +146,12 @@ def build_channel(String channel_name) {
return parallel ( return parallel (
"${channel_name} (git)": { "${channel_name} (git)": {
deviceStage("build git", "tici-needs-can", [], [ deviceStage("build git", "tici-needs-can", [], [
["build ${channel_name}", "RELEASE_BRANCH=nightly $SOURCE_DIR/release/build_git_channel.sh"], ["build ${channel_name}", "RELEASE=1 OPENPILOT_CHANNEL=${channel_name} $SOURCE_DIR/release/build_git_channel.sh"],
]) ])
}, },
"${channel_name} (casync)": { "${channel_name} (casync)": {
deviceStage("build casync", "tici-needs-can", [], [ deviceStage("build casync", "tici-needs-can", [], [
["build ${channel_name}", "BUILD_DIR=/data/openpilot_build OUTPUT_DIR=/data/casync OPENPILOT_CHANNEL=${channel_name} $SOURCE_DIR/release/build_casync_channel.sh"], ["build ${channel_name}", "RELEASE=1 OPENPILOT_CHANNEL=${channel_name} BUILD_DIR=/data/openpilot_build OUTPUT_DIR=/data/casync $SOURCE_DIR/release/build_casync_channel.sh"],
//["upload ${channel_name}", "OPENPILOT_CHANNEL=${channel_name} $SOURCE_DIR/release/upload_casync_channel.sh"], //["upload ${channel_name}", "OPENPILOT_CHANNEL=${channel_name} $SOURCE_DIR/release/upload_casync_channel.sh"],
]) ])
} }

@ -5,16 +5,17 @@
`channel` - a named version of openpilot with only required files for running openpilot and identifying the channel<br> `channel` - a named version of openpilot with only required files for running openpilot and identifying the channel<br>
`prebuilt` - a channel prebuilt for the tici, no building required on device<br> `prebuilt` - a channel prebuilt for the tici, no building required on device<br>
`release` - prebuilt with `ALLOW_DEBUG` false (RELEASE=1 when building panda). (`nightly`, `release3`)<br> `release` - prebuilt with `ALLOW_DEBUG` false (`RELEASE=1` when building panda, `nightly`, `release3`)<br>
## creating casync channel ## creating casync channel
`build_casync_channel.sh` - creates a `prebuilt` openpilot channel, ready to upload to `openpilot-channels` `build_casync_channel.sh` - creates a `prebuilt` openpilot channel, ready to upload to `openpilot-channels`
```bash ```bash
# run on a tici, within the directory you want to create the release from # run on a tici, within the directory you want to create the channel from
# creates a prebuilt version of openpilot into BUILD_DIR and outputs the caidx # creates a prebuilt version of openpilot into BUILD_DIR and outputs the caidx
# and other casync files into CASYNC_DIR for uploading to openpilot-channels # and other casync files into CASYNC_DIR for uploading to openpilot-channels
RELEASE=1 \
BUILD_DIR=/data/openpilot_build \ BUILD_DIR=/data/openpilot_build \
CASYNC_DIR=/data/casync \ CASYNC_DIR=/data/casync \
OPENPILOT_CHANNEL=nightly \ OPENPILOT_CHANNEL=nightly \

@ -18,12 +18,12 @@ mkdir -p $BUILD_DIR
cd $BUILD_DIR cd $BUILD_DIR
git init git init
git remote add origin git@github.com:commaai/openpilot.git git remote add origin git@github.com:commaai/openpilot.git
git checkout --orphan $RELEASE_BRANCH git checkout --orphan $OPENPILOT_CHANNEL
# do the files copy # do the files copy
echo "[-] copying files T=$SECONDS" echo "[-] copying files T=$SECONDS"
cd $SOURCE_DIR cd $SOURCE_DIR
release/copy_channel_Files.sh $SOURCE_DIR $BUILD_DIR release/copy_channel_files.sh $SOURCE_DIR $BUILD_DIR
cd $BUILD_DIR cd $BUILD_DIR
VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}') VERSION=$(cat common/version.h | awk -F[\"-] '{print $2}')
@ -55,14 +55,14 @@ TEST_FILES="tools/"
cd $SOURCE_DIR cd $SOURCE_DIR
cp -pR -n --parents $TEST_FILES $BUILD_DIR/ cp -pR -n --parents $TEST_FILES $BUILD_DIR/
cd $BUILD_DIR cd $BUILD_DIR
RELEASE=1 selfdrive/test/test_onroad.py selfdrive/test/test_onroad.py
#selfdrive/manager/test/test_manager.py #selfdrive/manager/test/test_manager.py
#selfdrive/car/tests/test_car_interfaces.py #selfdrive/car/tests/test_car_interfaces.py
rm -rf $TEST_FILES rm -rf $TEST_FILES
if [ ! -z "$RELEASE_BRANCH" ]; then if [ ! -z "$OPENPILOT_CHANNEL" ]; then
echo "[-] pushing release T=$SECONDS" echo "[-] pushing release T=$SECONDS"
git push -f origin $RELEASE_BRANCH:$RELEASE_BRANCH git push -f origin $OPENPILOT_CHANNEL:$OPENPILOT_CHANNEL
fi fi
echo "[-] done T=$SECONDS" echo "[-] done T=$SECONDS"

Loading…
Cancel
Save