Skip to content

Commit a76019a

Browse files
authored
mv crondata to sco (DeepLink-org#856)
mv crondata to sco
1 parent 29f03a1 commit a76019a

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/data-cron.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
env:
15-
CLUSTER_1988: SH1988
15+
CLUSTER_V100: SCO
1616
CLUSTER_CAMB: CAMB
1717
CLUSTER_ASCEND_910B: ASCEND-910B
1818
CLUSTER_TOPSRIDER: TOPSRIDER
@@ -23,7 +23,6 @@ env:
2323
ENV_PATH: '/mnt/cache/share/platform/env'
2424
GEN_DATA: 'diopi_test/python/cache'
2525
ENV_NAME: 'pt2.0_diopi'
26-
SLURM_PAR_SH1988: ${{ vars.SLURM_PAR_SH1984 != '' && vars.SLURM_PAR_SH1984 || 'pat_rd -x SH-IDC1-10-198-8-58,SH-IDC1-10-198-8-87' }}
2726

2827
jobs:
2928
Clone:
@@ -38,23 +37,21 @@ jobs:
3837
cd source && git submodule update --init --recursive
3938
- name: Rsync to Server
4039
run: |
41-
ssh ${CLUSTER_1988} "mkdir -p ${DATA_DIR} && cd ${DATA_DIR} && rm -rf source && mkdir source" \
42-
&& rsync -a --delete ${GITHUB_WORKSPACE}/source/ ${CLUSTER_1988}:${DATA_DIR}/source/
40+
ssh ${CLUSTER_V100} "mkdir -p ${DATA_DIR} && cd ${DATA_DIR} && rm -rf source && mkdir source" \
41+
&& rsync -a --delete ${GITHUB_WORKSPACE}/source/ ${CLUSTER_V100}:${DATA_DIR}/source/
4342
4443
Gen-Data:
4544
name: Gen-Data
46-
runs-on: tps-diopi-ci
45+
runs-on: tps-sco-ci
4746
needs: [Clone]
4847
steps:
4948
- name: gen-test-data
5049
run: |
51-
ssh ${CLUSTER_1988} """
5250
set -e
53-
source /mnt/cache/share/platform/env/${ENV_NAME}
54-
cd ${DATA_DIR}/source/diopi_test/python
55-
srun --job-name=${GITHUB_JOB} --partition=${SLURM_PAR_SH1988} --time=10 --gres=gpu:1 bash -c 'python main.py --mode gen_data' \
56-
|| ( cd ${DATA_DIR}/source/ && git clean -xdf ${GEN_DATA} && exit 1 )
57-
"""
51+
srun bash -c "cd ${DATA_DIR}/source/diopi_test/python \
52+
&& source ${ENV_PATH}/pt2.0_diopi \
53+
&& python main.py --mode gen_data \
54+
|| ( cd ${DATA_DIR}/source/diopi_test/python && git clean -xdf ${GEN_DATA} && exit 1 ) "
5855
5956
CheckAndRsync:
6057
name: check and rsync
@@ -66,7 +63,7 @@ jobs:
6663
- name: check
6764
id: get_gen_data
6865
run: |
69-
ssh ${CLUSTER_1988} """
66+
ssh ${CLUSTER_V100} """
7067
set -e
7168
cd ${DATA_DIR}
7269
if [[ -f "pre_hash" ]]; then
@@ -78,7 +75,7 @@ jobs:
7875
cp new_hash pre_hash
7976
"""
8077
export file_path="/home/autolink/rsync/sourcecode"
81-
rsync -a --delete ${CLUSTER_1988}:${DATA_DIR}/to_gen_data ${file_path}/
78+
rsync -a --delete ${CLUSTER_V100}:${DATA_DIR}/to_gen_data ${file_path}/
8279
if grep -q "true" "${file_path}/to_gen_data"; then
8380
echo "to_gen_data=true" >> "$GITHUB_ENV"
8481
else
@@ -90,12 +87,12 @@ jobs:
9087
set -e
9188
ssh ${CLUSTER_CAMB} """
9289
mkdir -p ${DATA_DIR}/source/${GEN_DATA}
93-
rsync -a --delete ${CLUSTER_1988}:${DATA_DIR}/source/${GEN_DATA}/ ${DATA_DIR}/source/${GEN_DATA}/
90+
rsync -a --delete ${CLUSTER_V100}:${DATA_DIR}/source/${GEN_DATA}/diopi/ ${DATA_DIR}/source/${GEN_DATA}/diopi/
9491
"""
9592
ssh ${CLUSTER_ASCEND_910B} """
9693
mkdir -p ${DATA_DIR}/source/${GEN_DATA}
97-
rsync -a --delete ${CLUSTER_1988}:${DATA_DIR}/source/${GEN_DATA}/ ${DATA_DIR}/source/${GEN_DATA}/
94+
rsync -a --delete ${CLUSTER_V100}:${DATA_DIR}/source/${GEN_DATA}/diopi/ ${DATA_DIR}/source/${GEN_DATA}/diopi/
9895
"""
9996
# ssh ${CLUSTER_SUPA} """
100-
# rsync -a ${CLUSTER_1988}:${DATA_DIR}/source/${GEN_DATA} ${DATA_DIR}/source/
97+
# rsync -a ${CLUSTER_V100}:${DATA_DIR}/source/${GEN_DATA}/diopi/ ${DATA_DIR}/source/${GEN_DATA}/diopi/
10198
# """

0 commit comments

Comments
 (0)