agnos casync script improvements (#32156)

* build agnos

* include path

* cleanup

* rm this

* test it

* all agnos partitions are AB

* fix that

* correct

* build agnos first

* better temp dir

* revert the order

* try it on pc

* test it

* upload and fix

* build

* pass in environemnt variable

* not in jenkins
This commit is contained in:
Justin Newberry
2024-04-11 09:46:27 -07:00
committed by GitHub
parent 70b8e277d0
commit ecb648a68a
3 changed files with 22 additions and 14 deletions
+6 -1
View File
@@ -10,7 +10,7 @@ from openpilot.common.basedir import BASEDIR
from openpilot.common.swaglog import cloudlog
from openpilot.common.utils import cache
from openpilot.common.git import get_commit, get_origin, get_branch, get_short_branch, get_commit_date
from openpilot.common.run import run_cmd
RELEASE_BRANCHES = ['release3-staging', 'release3', 'nightly']
TESTED_BRANCHES = RELEASE_BRANCHES + ['devel', 'devel-staging']
@@ -157,6 +157,11 @@ def get_build_metadata(path: str = BASEDIR) -> BuildMetadata:
raise Exception("invalid build metadata")
def get_agnos_version(directory: str = BASEDIR) -> str:
return run_cmd(["bash", "-c", r"unset AGNOS_VERSION && source launch_env.sh && \
echo -n $AGNOS_VERSION"], cwd=directory).strip()
if __name__ == "__main__":
from openpilot.common.params import Params