Skip to content

Commit a203c7c

Browse files
author
Zijian Zhang
committed
ci: fix env sha
1 parent a70cd28 commit a203c7c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ci/build_env_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ docker run \
3636
mv ./sglang /sglang
3737
" || { docker rm -f $RUN_ID; exit 1; }
3838

39-
docker commit $RUN_ID areal-env:latest
39+
docker commit $RUN_ID "areal-env:$ENV_SHA"
4040
docker rm -f $RUN_ID

ci/test_arealite.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ if docker ps -a --format '{{.Names}}' | grep -q "$RUN_ID"; then
1313
docker rm -f $RUN_ID
1414
fi
1515

16+
ENV_SHA=$(sha256sum pyproject.toml | awk '{print $1}')
1617
docker run \
1718
--name $RUN_ID \
1819
--gpus all \
1920
--shm-size=8g \
2021
-v $(pwd):/workspace \
2122
-w /workspace \
22-
areal-env:latest \
23+
"areal-env:$ENV_SHA" \
2324
bash -c "
2425
mv /sglang ./sglang
2526
HF_ENDPOINT=https://hf-mirror.com python -m pytest -s arealite/

0 commit comments

Comments
 (0)