Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
258a8cf
Adding the CI for comparing stuff between vlsvrs and
lassejsc Mar 18, 2026
f20c406
Added step to test_python_turso for the new testpackage part
lassejsc Mar 18, 2026
f26426e
Commented out vlsvrs part properly for now
lassejsc Mar 18, 2026
d24a790
Added a way to dump hashes into text file and load them from it
lassejsc Mar 18, 2026
0c8712a
Added raise error for bad case
lassejsc Mar 18, 2026
fd14c60
Testing the hashdump and removed other test lines
lassejsc Mar 18, 2026
f38c74f
Added interpolation test
lassejsc Mar 19, 2026
a9069e5
Removed unused variables
lassejsc Mar 19, 2026
099279c
Added 2D BGA run and renamed the interpolation test function name
lassejsc Mar 19, 2026
0e29fca
More interpolation tests
lassejsc Mar 19, 2026
251ce07
Added workflow for generating hash dataset for reference
lassejsc Mar 20, 2026
b670eb9
Code restructuring and adding arguments for generating dataset
lassejsc Mar 20, 2026
a8da35f
Added compare and some other minor fixes like filenaming and path han…
lassejsc Mar 20, 2026
42c8c41
fixed srun for generating and testing hashdumps
lassejsc Mar 20, 2026
91a69b6
Added better handling for comparing dictionaries loaded from file
lassejsc Mar 20, 2026
b1f2b25
syntax mistake
lassejsc Mar 20, 2026
7231327
fixed path for generate references and fixed indentation
lassejsc Mar 20, 2026
e07f908
Changed if statement so 3D runs also get interpolation test and chang…
lassejsc Mar 20, 2026
fa5ee72
Fixed path in test_python_turso
lassejsc Mar 20, 2026
5d5fde8
Added check for dictionaries when generating and changed clarifying c…
lassejsc Mar 20, 2026
a87fb68
Added printing of the difference between the hash dicts
lassejsc Mar 20, 2026
7d41e5f
Added cancel in progress if multipe pushes to a PR since this would c…
lassejsc Mar 20, 2026
1852604
Merge branch 'fmihpc:master' into vlsvrsCI
lassejsc Mar 20, 2026
45a8b41
Added cut3d hashing
lassejsc Mar 20, 2026
247e57e
Fixed if statements with hash dicts
lassejsc Mar 20, 2026
4069f29
Changed constructor, made flattenging actually work and disabled it f…
lassejsc Mar 20, 2026
17e12dc
Merge branch 'fmihpc:master' into vlsvrsCI
lassejsc Mar 23, 2026
6bb58ff
Changed the default behavior of hash() to not flatten and added check…
lassejsc Mar 23, 2026
89cf9f2
Fixed comparison for filesets and added warnings and errors for diffe…
lassejsc Mar 23, 2026
0aceb36
Made the script raise error if errors were encountered. For now put r…
lassejsc Mar 23, 2026
2f623d5
Added retval
lassejsc Mar 23, 2026
fa7366a
Merge branch 'dev' into vlsvrsCI
lassejsc Mar 24, 2026
bad2dea
Enabled vlsvrs part of the CI test for hashes
lassejsc Mar 24, 2026
461ab89
Added install for backend in test_python_turso workflow
lassejsc Mar 24, 2026
6331e34
Added print for one error case
lassejsc Mar 24, 2026
08e5ddb
Refactoring code, added hashing of the velocity_cell read for both re…
lassejsc Mar 25, 2026
caad8ff
Removed the return value retval nonesense since it no longer was rele…
lassejsc Mar 26, 2026
82652b9
Changed how pickle loading and dumping works if ever needed
lassejsc Mar 26, 2026
9b87f9f
Changed srun module loading order and added purge
lassejsc Mar 27, 2026
8c5cd04
Renamed workflow step name
lassejsc Apr 21, 2026
d798524
Reformatting of the whole testpackage_hashes part automatic
lassejsc Apr 21, 2026
1bfad35
Moved the hashes test away from test_python_turso and to
lassejsc Apr 21, 2026
74dfe90
fixed copypaste typo and removed extras from the hashes_test
lassejsc Apr 21, 2026
50d3d0d
Whoops, the mistake was more than just missing quotation mark
lassejsc Apr 21, 2026
3190867
Added clarifying comment
lassejsc Apr 21, 2026
53dbf3c
Fixing a possible keyerror in case nonraw variables were called, the
lassejsc May 22, 2026
780c769
Added helpful message for compare and defaulting the nonraw-raw map to
lassejsc May 22, 2026
aade24c
Fixed minor issue with variable checking
lassejsc May 25, 2026
d59999e
Merge branch 'dev' into vlsvrsCI
lassejsc May 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/generate_reference_hashes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will install Python dependencies , analysator and generate verification set to /wrk-kappa/group/spacephysics/analysator/CI/verification_sets/ under new folder based on commit id
name: generate_reference_hashes

on:
workflow_dispatch:


jobs:

turso_system:
if: github.repository_owner == 'fmihpc'
runs-on: carrington
timeout-minutes: 60
strategy:
fail-fast: false
max-parallel: 2
matrix:
extras: ["testpackage"]
steps:
- uses: actions/checkout@v4
timeout-minutes: 5
- name: Install uv
uses: astral-sh/setup-uv@v6
timeout-minutes: 5
- name: Install dependencies
timeout-minutes: 5
run: |
export TMPDIR=$RUNNER_TEMP
export UV_LINK_MODE=copy
module purge
module load Python/3.10.4-GCCcore-11.3.0
uv venv CI_env
. CI_env/bin/activate
uv pip install --editable ../analysator[${{ matrix.extras }}]
- name: Produce reference hashes
run: |
export TMPDIR=$RUNNER_TEMP
module purge
module load Python/3.10.4-GCCcore-11.3.0
. CI_env/bin/activate

DATAPATH="/turso/group/spacephysics/analysator/CI/verification_sets_hashes/$(git rev-parse HEAD)"
mkdir $DATAPATH
touch $DATAPATH/.lockfile
srun --constraint="carrington" --mem=5G -c 1 bash -c "ml Python/3.10; . CI_env/bin/activate; python testpackage/testpackage_hashes.py -g $DATAPATH"

rm $DATAPATH/.lockfile
46 changes: 46 additions & 0 deletions .github/workflows/test_compare_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,55 @@ concurrency:

jobs:

hashes_test:
if: github.repository_owner == 'fmihpc'
runs-on: carrington
strategy:
fail-fast: false
matrix:
extras: ["all"]
steps:
- uses: actions/checkout@v4
timeout-minutes: 5
- name: Install uv
uses: astral-sh/setup-uv@v6
timeout-minutes: 5
- name: Install dependencies
timeout-minutes: 5
run: |
module load GCCcore/11.3.0
export TMPDIR=$RUNNER_TEMP
uv venv CI_env
. CI_env/bin/activate
uv pip install cmake
uv pip install --editable ../analysator[${{ matrix.extras }}]
uv pip install -r requirements-backend.txt
- name: Trial imports
run: |
export TMPDIR=$RUNNER_TEMP
. CI_env/bin/activate
python -c 'import analysator as pt'
python -c 'import analysator as pt;pt.plot.__dict__'
python -c 'import analysator as pt;pt.calculations.__dict__'
python -c 'import analysator as pt;pt.vlsvfile.__dict__'
python -c 'import analysator as pt;pt.miscellaneous.__dict__'

- name: Testing backend and vlsvreader
run: |
. CI_env/bin/activate
verf_loc="/turso/group/spacephysics/analysator/CI/verification_sets_hashes/"
verfset=$(ls -lth $verf_loc | grep ^d | head -n1 | grep -Po '\w+$')

if [[ -f $verf_loc/$verfset/.lockfile ]]; then
echo ".lockfile found in $verf_loc/$verfset, not comparing, something probably went wrong removing the lockfile"
exit 1
fi
srun --constraint="carrington" --mem=5G -c 1 bash -c "ml purge; ml Python/3.10; . CI_env/bin/activate; python ./testpackage/testpackage_hashes.py -c '$verf_loc/$verfset/'"

turso_system:
if: github.repository_owner == 'fmihpc'
runs-on: carrington
needs: hashes_test
timeout-minutes: 120
strategy:
fail-fast: false
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/test_compare_images_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,52 @@ on:

jobs:

hashes_test:
if: github.repository_owner == 'fmihpc'
runs-on: carrington
strategy:
fail-fast: false
matrix:
extras: ["all"]
steps:
- uses: actions/checkout@v4
timeout-minutes: 5
- name: Install uv
uses: astral-sh/setup-uv@v6
timeout-minutes: 5
- name: Install dependencies
timeout-minutes: 5
run: |
module load GCCcore/11.3.0
export TMPDIR=$RUNNER_TEMP
uv venv CI_env
. CI_env/bin/activate
uv pip install cmake
uv pip install --editable ../analysator[${{ matrix.extras }}]
uv pip install -r requirements-backend.txt
- name: Trial imports
run: |
export TMPDIR=$RUNNER_TEMP
. CI_env/bin/activate
python -c 'import analysator as pt'
python -c 'import analysator as pt;pt.plot.__dict__'
python -c 'import analysator as pt;pt.calculations.__dict__'
python -c 'import analysator as pt;pt.vlsvfile.__dict__'
python -c 'import analysator as pt;pt.miscellaneous.__dict__'

- name: Testing backend and vlsvreader
run: |
. CI_env/bin/activate
verf_loc="/turso/group/spacephysics/analysator/CI/verification_sets_hashes/"
verfset=$(ls -lth $verf_loc | grep ^d | head -n1 | grep -Po '\w+$')

if [[ -f $verf_loc/$verfset/.lockfile ]]; then
echo ".lockfile found in $verf_loc/$verfset, not comparing, something probably went wrong removing the lockfile"
exit 1
fi
srun --constraint="carrington" --mem=5G -c 1 bash -c "ml purge; ml Python/3.10; . CI_env/bin/activate; python ./testpackage/testpackage_hashes.py -c '$verf_loc/$verfset/'"


turso_system:
if: github.repository_owner == 'fmihpc'
runs-on: carrington
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test_python_turso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- cron: '0 8 * * MON'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:

turso_system:
Expand Down Expand Up @@ -39,6 +43,7 @@ jobs:
. CI_env/bin/activate
uv pip install cmake
uv pip install --editable ../analysator[${{ matrix.extras }}]
uv pip install -r requirements-backend.txt
- name: Trial imports
run: |
export TMPDIR=$RUNNER_TEMP
Expand Down
Loading