Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 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
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 plots
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
17 changes: 16 additions & 1 deletion .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 All @@ -36,6 +40,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 All @@ -46,4 +51,14 @@ jobs:
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/'"
Loading
Loading