Skip to content

Commit 6780dce

Browse files
Merge pull request #1025 from fmihpc/dev
Vlasiator 5.3.1 dev into master merge
2 parents 52f942a + c81422d commit 6780dce

File tree

244 files changed

+5478
-6768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+5478
-6768
lines changed

.github/workflows/generate-reference-data.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate testpackage reference data
1+
name: Generate testpackage reference data on Carrington
22

33
on:
44
# Only run when triggered manually
@@ -12,22 +12,34 @@ jobs:
1212
runs-on: carrington
1313

1414
steps:
15+
- name: Clean workspace
16+
run: |
17+
RUN_STRING=$( cat << MORO
18+
rm -rf libraries library-build testpackage
19+
rm -f libraries.tar.zst testpackage_check_description.txt testpackage-output.tar.gz metrics.txt stdout.txt stderr.txt testpackage_output_variables.txt
20+
rm -f *.xml
21+
MORO
22+
)
23+
srun -M carrington bash -c "$RUN_STRING"
1524
- name: Checkout source
16-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
1726
with:
1827
submodules: true
1928
- name: Make clean
2029
run: VLASIATOR_ARCH=carrington_gcc_openmpi make clean
2130
- uses: ursg/gcc-problem-matcher@master
2231
- name: Compile vlasiator (Testpackage build)
2332
run: |
24-
export VLASIATOR_ARCH=carrington_gcc_openmpi
25-
srun -M carrington --job-name tp_compile --interactive --nodes=1 -n 1 -c 16 --mem=40G -p short -t 0:10:0 bash -c 'module purge; module load GCC/11.2.0; module load OpenMPI/4.1.1-GCC-11.2.0 ; module load PMIx/4.1.0-GCCcore-11.2.0; module load PAPI/6.0.0.1-GCCcore-11.2.0; export VLASIATOR_ARCH=carrington_gcc_openmpi; make -j 16 testpackage; sleep 10s'
26-
- name: Sleep for 10 seconds
27-
run: sleep 10s
28-
shell: bash
33+
srun -M carrington --job-name CI_ref_tp_compile --interactive --nodes=1 -n 1 -c 16 --mem=40G -p short -t 0:10:0 bash -c 'module purge; module load GCC/11.2.0; module load OpenMPI/4.1.1-GCC-11.2.0 ; module load PMIx/4.1.0-GCCcore-11.2.0; module load PAPI/6.0.0.1-GCCcore-11.2.0; export VLASIATOR_ARCH=carrington_gcc_openmpi; make -j 16 testpackage; sleep 10s'
34+
- name: Make sure the output binary is visible in lustre
35+
uses: nick-fields/retry@v3
36+
with:
37+
timeout_seconds: 15
38+
max_attempts: 3
39+
retry_on: error
40+
command: ls vlasiator
2941
- name: Upload testpackage binary
30-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
3143
with:
3244
name: vlasiator-testpackage
3345
path: vlasiator
@@ -45,11 +57,11 @@ jobs:
4557

4658
steps:
4759
- name: Checkout source
48-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
4961
with:
5062
submodules: true
5163
- name: Download testpackage binary
52-
uses: actions/download-artifact@v3
64+
uses: actions/download-artifact@v4
5365
with:
5466
name: vlasiator-testpackage
5567
- name: Run testpackage
@@ -60,6 +72,6 @@ jobs:
6072
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GITHUB_WORKSPACE/libraries/lib
6173
# Fudge the run script
6274
sed -i 's/\/proj\/USERNAME\/BINARYNAME/$GITHUB_WORKSPACE\/vlasiator/' ./small_test_carrington.sh
63-
sbatch -W -o testpackage_run_output.txt ./small_test_carrington.sh
75+
sbatch -W -o testpackage_run_output.txt --job-name CI_ref_generate ./small_test_carrington.sh
6476
cat testpackage_run_output.txt
6577
# We don't bother to create artefacts or anything here.

0 commit comments

Comments
 (0)