migrate these

pull/32089/head
Justin Newberry 1 year ago
parent 688f986751
commit 98aac49827
  1. 4
      release/README.md
  2. 4
      release/create_casync_release.py
  3. 2
      system/hardware/tici/agnos.py
  4. 6
      system/updated/casync/common.py

@ -3,7 +3,7 @@
## terms
- `channel` - a named version of openpilot (git branch, casync caidx) which receives updates
- `channel` - a named version of openpilot (git branch, casync caibx) which receives updates
- `build` - a release which is already built for the comma 3/3x and contains only required files for running openpilot and identifying the release
- `build_style` - type of build, either `debug` or `release`
@ -28,7 +28,7 @@
```bash
# run on a tici, within the directory you want to create the build 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 caibx
# and other casync files into CASYNC_DIR for uploading to openpilot-releases.
BUILD_DIR=/data/openpilot_build \
CASYNC_DIR=/data/casync \

@ -24,6 +24,6 @@ if __name__ == "__main__":
create_build_metadata_file(target_dir, build_metadata, args.channel)
create_caexclude_file(target_dir)
digest, caidx = create_casync_release(target_dir, output_dir, build_metadata.canonical)
digest, caibx = create_casync_release(target_dir, output_dir, build_metadata.canonical)
print(f"Created casync release from {target_dir} to {caidx} with digest {digest}")
print(f"Created casync release from {target_dir} to {caibx} with digest {digest}")

@ -10,7 +10,7 @@ from collections.abc import Generator
import requests
import openpilot.system.hardware.tici.casync as casync
import openpilot.system.updated.casync.casync as casync
SPARSE_CHUNK_FMT = struct.Struct('H2xI4x')
CAIBX_URL = "https://commadist.azureedge.net/agnosupdate/"

@ -49,8 +49,8 @@ def create_build_metadata_file(path: pathlib.Path, build_metadata: BuildMetadata
def create_casync_release(target_dir: pathlib.Path, output_dir: pathlib.Path, caibx_name: str):
tar_file = output_dir / f"{caibx_name}.tar"
run(["tar", "-cf", str(tar_file), target_dir])
caidx_file = output_dir / f"{caibx_name}.caibx"
run(["casync", "make", *CASYNC_ARGS, caidx_file, str(tar_file)])
caibx_file = output_dir / f"{caibx_name}.caibx"
run(["casync", "make", *CASYNC_ARGS, caibx_file, str(tar_file)])
tar_file.unlink()
digest = run(["casync", "digest", *CASYNC_ARGS, target_dir]).decode("utf-8").strip()
return digest, caidx_file
return digest, caibx_file

Loading…
Cancel
Save