Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up CTest #5068

Merged
merged 183 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from 172 commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
a0725af
Set up CTest
EZoni Jul 18, 2024
73df3eb
Add argument for MPI procs, improve readability
EZoni Jul 23, 2024
23d379e
Add missing input files
EZoni Jul 23, 2024
e71252c
Apply suggestions from code review
EZoni Jul 23, 2024
b32882c
Add more tests
EZoni Jul 23, 2024
c818ee0
Fix naming convention to unblock style check
EZoni Jul 23, 2024
9affb1a
Add more tests
EZoni Jul 24, 2024
01660eb
Update source/style checks, use new input files in current CI workflows
EZoni Jul 24, 2024
84b9e00
Add more tests
EZoni Jul 25, 2024
feecc4f
Make additional runtime params input file optional
EZoni Jul 26, 2024
53d85b4
Add more tests
EZoni Jul 26, 2024
b251431
Fix broken test
EZoni Jul 29, 2024
fe1990e
Add more tests
EZoni Jul 30, 2024
14fc9d3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 30, 2024
0524fdc
Fix broken test
EZoni Jul 30, 2024
d9cb4c8
Do not enforce backward compatibility
EZoni Jul 31, 2024
b3b5641
Merge `development` into `EZoni_ctest`
EZoni Jul 31, 2024
3660b91
Testing Azure pipeline
EZoni Jul 31, 2024
b9669f9
Azure Update
ax3l Jul 31, 2024
57b414a
Tests: Individual CMakeLists.txt per test
ax3l Jul 31, 2024
ef10e0d
CI: CTest `registered_tests` Script
ax3l Jul 31, 2024
ce82a8c
Individual CMakeLists.txt per test
EZoni Jul 31, 2024
f7aa261
Cleanup
EZoni Jul 31, 2024
78afd77
Change interface of `add_warpx_test`
EZoni Aug 1, 2024
56bef3a
Set `PYTHONPATH` to import custom modules
EZoni Aug 1, 2024
1e0362e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 1, 2024
feaaeda
Restore relative paths of custom modules in analysis scripts
EZoni Aug 1, 2024
5bf6de4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 1, 2024
f405bbc
Do not pass number of MPI procs
EZoni Aug 1, 2024
3d672fc
Cleanup
EZoni Aug 1, 2024
b0176fc
`openpmd-viewer` required by checksum scripts
EZoni Aug 1, 2024
19be7d6
Cleanup
EZoni Aug 1, 2024
675259f
Install requirements, clone warpx-data repo
EZoni Aug 1, 2024
065675d
Cleanup
EZoni Aug 1, 2024
d86ea62
Fix broken dependencies
EZoni Aug 1, 2024
6d2bf40
Fix broken dependencies (numpy, pandas)
EZoni Aug 2, 2024
8717ce6
Install correct requirements
EZoni Aug 2, 2024
99638c7
Avoid duplicate runs with/without MPI
EZoni Aug 2, 2024
680f25e
Build all dims for single-process tests
EZoni Aug 2, 2024
62953aa
Fix path of warpx-data repo
EZoni Aug 2, 2024
9867448
Fix broken test
EZoni Aug 2, 2024
38c6d36
Cleanup
EZoni Aug 2, 2024
4535223
Add support for Python tests
EZoni Aug 2, 2024
09899bd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 2, 2024
dc305fd
Fix `PYTHONPATH` environment variable
EZoni Aug 2, 2024
bfb68de
Build always with `WarpX_FFT=ON`
EZoni Aug 2, 2024
bde15c4
Fix BLAS++/LAPACK++ installation for RZ builds
EZoni Aug 2, 2024
d46b442
Comment out Azure matrix elements until supported
EZoni Aug 2, 2024
a899610
Fix BLAS++/LAPACK++ installation for RZ builds
EZoni Aug 2, 2024
2c7d317
Cleanup
EZoni Aug 2, 2024
29846f2
Fix logic for Python tests
EZoni Aug 5, 2024
897ec8f
Add more Python tests
EZoni Aug 5, 2024
0808934
Fix Azure pipeline YAML file
EZoni Aug 5, 2024
274901b
Add more tests
EZoni Aug 5, 2024
1e0f514
More Azure matrix elements
EZoni Aug 5, 2024
fd38878
Add more tests
EZoni Aug 5, 2024
9a255b9
Exclude `pytest.AMReX` when running Python tests
EZoni Aug 5, 2024
036d6af
Add `periodictable` to requirements
EZoni Aug 5, 2024
14113e0
Add more tests
EZoni Aug 5, 2024
fef7d16
Add `picmistandard` to requirements
EZoni Aug 5, 2024
c20eff7
Add more tests
EZoni Aug 6, 2024
1d9643a
Fix broken test, remove build directory
EZoni Aug 7, 2024
2e68590
Clear pip cache
EZoni Aug 7, 2024
1163763
Clean up input file names
EZoni Aug 7, 2024
ed731fe
Merge `development` into `EZoni_ctest`
EZoni Aug 8, 2024
b93908a
Add more tests
EZoni Aug 8, 2024
427643a
Fix broken tests
EZoni Aug 9, 2024
0a4cad1
Add more tests
EZoni Aug 9, 2024
8eeaf67
Fix broken tests
EZoni Aug 9, 2024
ffc8d4b
Add more tests
EZoni Aug 9, 2024
86bf7f9
Merge `development` into `EZoni_ctest`
EZoni Aug 12, 2024
c1aee66
Fix broken tests
EZoni Aug 12, 2024
67a8dcf
Add more tests
EZoni Aug 12, 2024
c5ba747
Merge `development` into `EZoni_ctest`
EZoni Aug 12, 2024
2790738
Add more tests
EZoni Aug 12, 2024
edc08d1
Fix broken tests
EZoni Aug 13, 2024
2adaf15
Azure: always compile with Python, EB support
EZoni Aug 13, 2024
ec7e34c
Add more tests
EZoni Aug 13, 2024
de7b61f
Simplify Azure matrix, fix broken tests
EZoni Aug 13, 2024
e511632
Add more tests
EZoni Aug 13, 2024
c278299
Separate Azure matrix element for EB tests
EZoni Aug 14, 2024
ca9ec12
Cleanup
EZoni Aug 14, 2024
c32d6d9
Merge `development` into `EZoni_ctest`
EZoni Aug 14, 2024
a0b5c44
Add more tests
EZoni Aug 15, 2024
932ffa6
Add EB tests only if `WarpX_EB=ON`
EZoni Aug 15, 2024
02bc245
Fix broken tests, add restart tests
EZoni Aug 15, 2024
980e897
Add more tests
EZoni Aug 15, 2024
942e9c0
Merge `development` into `EZoni_ctest`
EZoni Aug 16, 2024
c4e49d7
Fix broken tests
EZoni Aug 16, 2024
6bce799
Merge `development` into `EZoni_ctest`
EZoni Aug 19, 2024
c41c109
Fix broken tests
EZoni Aug 19, 2024
ccd3e05
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 19, 2024
5786d3c
Fix broken tests
EZoni Aug 19, 2024
406bc7c
Add default AMReX CMake flags
EZoni Aug 19, 2024
b071143
Add more tests
EZoni Aug 19, 2024
89b3854
Fix broken tests
EZoni Aug 19, 2024
c5b0e71
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 19, 2024
7903470
Fix codeQL warning, GitHub Action's YAML files
EZoni Aug 19, 2024
ddacf8d
Fix codeQL warning
EZoni Aug 19, 2024
1534e1f
Add more tests
EZoni Aug 20, 2024
35d9b1f
Fix GitHub Action's YAML files
EZoni Aug 20, 2024
5d2f6c4
Add more tests
EZoni Aug 20, 2024
e63b2af
Fix unbound variable in Azure pipelines
EZoni Aug 20, 2024
0688042
Fix GitHub Action's YAML files
EZoni Aug 20, 2024
2cfe3c2
Add more tests
EZoni Aug 20, 2024
0469a21
Fix GitHub Action's YAML files
EZoni Aug 20, 2024
36021db
Remove unused checksum file
EZoni Aug 20, 2024
ca90c32
Add more tests
EZoni Aug 20, 2024
4186d30
Add Python tests with custom command-line arguments
EZoni Aug 20, 2024
1d92ce3
Add more tests
EZoni Aug 20, 2024
5fa7374
Merge `development` into `EZoni_ctest`
EZoni Aug 21, 2024
a7083ed
Merge `development` into `EZoni_ctest`
EZoni Aug 21, 2024
67e3ee2
Cleanup
EZoni Aug 21, 2024
63fd720
Cleanup
EZoni Aug 22, 2024
5a2e449
Fix broken tests
EZoni Aug 22, 2024
2567497
Fix style checks
EZoni Aug 22, 2024
5ce42e1
WarpX_CI: Cleanup After Run
ax3l Aug 22, 2024
7d48286
Fix: CTest independent of PWD/CWD
ax3l Aug 22, 2024
e68415a
Support CLI Args, Prep Script, Robust Python Startup
ax3l Aug 23, 2024
5e65284
Compile tests with `-DWarpX_CI=ON` on Azure
EZoni Aug 23, 2024
2271c6b
Fix typo in CMakeLists.txt
EZoni Aug 23, 2024
38cbfca
Fix tests dependency cycle
EZoni Aug 23, 2024
436c323
Fix indentation in CMakeLists.txt
EZoni Aug 23, 2024
21bff3b
Clean up CMakeLists.txt
EZoni Aug 23, 2024
ca1bb50
Merge `development` into `EZoni_ctest`
EZoni Aug 23, 2024
412c5b8
Fix Clang pywarpx build
EZoni Aug 23, 2024
33b69d6
Fix bug in CMakeLists.txt
EZoni Aug 23, 2024
c71c906
Cleanup
EZoni Aug 24, 2024
f067dd3
Rewrite style checks in Python, cleanup
EZoni Aug 24, 2024
cc96a48
Update Python script for inputs check
EZoni Aug 25, 2024
8049f0d
Merge `development` into `EZoni_ctest`
EZoni Aug 26, 2024
df929ec
Fix broken tests
EZoni Aug 26, 2024
9857090
CTest: `add_warpx_test` with Dependent Test
ax3l Aug 26, 2024
ffe04a3
Fix calls to `add_warpx_test`
EZoni Aug 26, 2024
a3dae26
Fix restart tests
EZoni Aug 26, 2024
9ae0062
Cleanup
EZoni Aug 26, 2024
68c25eb
Fix restart tests
EZoni Aug 27, 2024
296215b
Fix Python tests
EZoni Aug 27, 2024
429982d
Fix GitHub Action's YAML files
EZoni Aug 27, 2024
57bc134
Fix broken tests
EZoni Aug 27, 2024
e31269f
Add more tests
EZoni Aug 27, 2024
e1f8aa0
Fix Python script for inputs check
EZoni Aug 27, 2024
b345064
Add more tests
EZoni Aug 27, 2024
3c4942b
Add LASY laser tests
EZoni Aug 27, 2024
5a2cb9f
Fix Python script for inputs check
EZoni Aug 27, 2024
aae3a1b
Fix test names
EZoni Aug 27, 2024
7455916
Add LASY laser tests
EZoni Aug 27, 2024
20f0e91
Add more tests
EZoni Aug 27, 2024
bc01fb5
Fix Langmuir tests
EZoni Aug 27, 2024
5185679
Add more tests
EZoni Aug 27, 2024
9bb4770
Fix Python script for inputs check
EZoni Aug 28, 2024
ba7fdb3
Add more tests
EZoni Aug 28, 2024
b7b4733
Remove obsolete scripts for inputs check
EZoni Aug 28, 2024
a90b5fb
Merge `development` into `EZoni_ctest`
EZoni Aug 28, 2024
a202748
Debugging LASY tests
EZoni Aug 28, 2024
d32b3d3
Add missing tests
EZoni Aug 28, 2024
fa02152
Fix restart tests
EZoni Aug 28, 2024
21aae4e
Revert LASY debugging
EZoni Aug 28, 2024
10fa399
Debugging LASY tests
EZoni Aug 29, 2024
e948f41
CMake: Dependency Must Exist (run)
ax3l Aug 29, 2024
065e2b9
LASY Scripts: Recent 0.5.0 Changes
ax3l Aug 29, 2024
7bce9c4
Merge remote-tracking branch 'mainline/development' into EZoni_ctest
ax3l Aug 29, 2024
f7d35a4
Restore all tests
EZoni Aug 30, 2024
4a99a6a
Less dependencies in Azure pipeline
EZoni Aug 30, 2024
5c75f81
Add missing tests
EZoni Aug 30, 2024
d36e9e0
Quotation marks around restart file paths
EZoni Aug 30, 2024
f89bb58
Cleanup
EZoni Aug 30, 2024
7f4dcc3
Rename `WarpX_CI` flag
EZoni Aug 30, 2024
0a3cd9a
Restore heFFTe dependency in Azure pipeline
EZoni Aug 30, 2024
d4d58eb
Add CMake flag `WarpX_TEST_FPETRAP`
EZoni Aug 30, 2024
ac9ff7f
Merge `development` into `EZoni_ctest`
EZoni Aug 30, 2024
ba017dc
Address two Fixme Comments
ax3l Sep 3, 2024
af246bc
Docs first draft
EZoni Sep 3, 2024
ffd4d03
Use new `AMREX_INPUTS_FILE_PREFIX` env variable
EZoni Sep 4, 2024
8e64870
Update docs
EZoni Sep 5, 2024
6d4396f
Merge `development` into `EZoni_ctest`
EZoni Sep 5, 2024
8c62ca2
Fix temporary build command in Azure pipeline
EZoni Sep 5, 2024
013ddd6
Split steps for build and test in Azure pipeline
EZoni Sep 5, 2024
cb5e42c
Fix indentation in docs
EZoni Sep 5, 2024
2c7a134
Style fixes in CMakeLists.txt files
EZoni Sep 5, 2024
d63c920
Enable line to define `BUILD_TESTING` in CMakeLists.txt
EZoni Sep 5, 2024
2a6496d
Remove repo/branch build workaround in Azure pipeline
EZoni Sep 5, 2024
086330d
Merge `development` into `EZoni_ctest`
EZoni Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
107 changes: 67 additions & 40 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,41 @@ pr:

jobs:
- job:
# FIXME remove unused variables
variables:
BLASPP_HOME: '/usr/local'
CEI_SUDO: 'sudo'
CEI_TMP: '/tmp/cei'
CMAKE_GENERATOR: 'Ninja'
FFTW_HOME: '/usr'
LAPACKPP_HOME: '/usr/local'
OMP_NUM_THREADS: 1
WARPX_CI_CCACHE: 'TRUE'
WARPX_CI_CLEAN_TESTS: 'TRUE'
WARPX_CI_NUM_MAKE_JOBS: 2
WARPX_CI_OPENPMD: 'TRUE'
WARPX_CI_TMP: '/tmp/ci'
#WARPX_OPENPMD: 'TRUE'

strategy:
matrix:
cartesian1d:
WARPX_CI_REGULAR_CARTESIAN_1D: 'TRUE'
WARPX_CI_PSATD: 'FALSE'
cartesian2d:
WARPX_CI_REGULAR_CARTESIAN_2D: 'TRUE'
cartesian3d:
WARPX_CI_REGULAR_CARTESIAN_3D: 'TRUE'
single_precision:
WARPX_CI_SINGLE_PRECISION: 'TRUE'
rz_or_nompi:
WARPX_CI_RZ_OR_NOMPI: 'TRUE'
qed:
WARPX_CI_QED: 'TRUE'
embedded_boundary:
WARPX_CI_EB: 'TRUE'
# Cartesian 1D
cartesian_1d:
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=1 -DWarpX_FFT=ON -DWarpX_PYTHON=ON
# Cartesian 2D
cartesian_2d:
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=2 -DWarpX_FFT=ON -DWarpX_PYTHON=ON
# Cartesian 3D
cartesian_3d:
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=3 -DWarpX_FFT=ON -DWarpX_PYTHON=ON
WARPX_HEFFTE: 'TRUE'
# Cylindrical RZ
cylindrical_rz:
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=RZ -DWarpX_FFT=ON -DWarpX_PYTHON=ON
WARPX_RZ_FFT: 'TRUE'
# embedded boundaries
embedded_boundaries:
WARPX_CMAKE_FLAGS: -DWarpX_DIMS='1;2;3;RZ' -DWarpX_FFT=ON -DWarpX_PYTHON=ON -DWarpX_EB=ON
WARPX_RZ_FFT: 'TRUE'
# single precision
#single_precision:
# WARPX_CMAKE_FLAGS: -DWarpX_DIMS='1;2;3;RZ' -DWarpX_FFT=ON -DWarpX_PYTHON=ON -DWarpX_PRECISION=SINGLE
# WARPX_RZ_FFT: 'TRUE'

# default: 60; maximum: 360
timeoutInMinutes: 240
Expand All @@ -51,9 +55,8 @@ jobs:
- task: Cache@2
continueOnError: true
inputs:
key: 'Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake | run_test.sh'
key: 'Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake'
restoreKeys: |
Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake | run_test.sh
Ccache | "$(System.JobName)" | .azure-pipelines.yml | cmake/dependencies/AMReX.cmake
Ccache | "$(System.JobName)" | .azure-pipelines.yml
path: /home/vsts/.ccache
Expand All @@ -63,9 +66,8 @@ jobs:
- task: Cache@2
continueOnError: true
inputs:
key: 'Python3 | "$(System.JobName)" | .azure-pipelines.yml | run_test.sh'
key: 'Python3 | "$(System.JobName)" | .azure-pipelines.yml'
restoreKeys: |
Python3 | "$(System.JobName)" | .azure-pipelines.yml | run_test.sh
Python3 | "$(System.JobName)" | .azure-pipelines.yml
path: /home/vsts/.local/lib/python3.8
cacheHitVar: PYTHON38_CACHE_RESTORED
Expand All @@ -83,6 +85,8 @@ jobs:
python3 python3-pandas python3-pip python3-venv python3-setuptools libblas-dev liblapack-dev
ccache --set-config=max_size=10.0G
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install --upgrade packaging
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade wheel
python3 -m pip install --upgrade virtualenv
Expand All @@ -92,25 +96,29 @@ jobs:
export PATH="$HOME/.local/bin:$PATH"
sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall
sudo chmod a+x /usr/local/bin/cmake-easyinstall
if [ "${WARPX_CI_OPENPMD:-FALSE}" == "TRUE" ]; then
cmake-easyinstall --prefix=/usr/local \
git+https://github.com/openPMD/[email protected] \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DopenPMD_USE_PYTHON=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_CLI_TOOLS=OFF
python3 -m pip install --upgrade openpmd-api
fi
if [[ "${WARPX_CI_RZ_OR_NOMPI:-FALSE}" == "TRUE" ]]; then
cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/blaspp.git \
#if [ "${WARPX_OPENPMD:-FALSE}" == "TRUE" ]; then
# cmake-easyinstall --prefix=/usr/local \
# git+https://github.com/openPMD/[email protected] \
# -DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
# -DCMAKE_VERBOSE_MAKEFILE=ON \
# -DopenPMD_USE_PYTHON=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_CLI_TOOLS=OFF
# #python3 -m pip install --upgrade openpmd-api
#fi
if [ "${WARPX_RZ_FFT:-FALSE}" == "TRUE" ]; then
# BLAS++
cmake-easyinstall --prefix=/usr/local \
git+https://github.com/icl-utk-edu/blaspp.git \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 \
-Duse_openmp=OFF -Dbuild_tests=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/lapackpp.git \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 \
# LAPACK++
cmake-easyinstall --prefix=/usr/local \
git+https://github.com/icl-utk-edu/lapackpp.git \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 \
-Duse_cmake_find_lapack=ON -Dbuild_tests=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
fi
if [[ "${WARPX_CI_REGULAR_CARTESIAN_3D:-FALSE}" == "TRUE" ]]; then
if [ "${WARPX_HEFFTE:-FALSE}" == "TRUE" ]; then
cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/[email protected] \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 -DHeffte_ENABLE_DOXYGEN=OFF \
Expand All @@ -121,14 +129,33 @@ jobs:
-DHeffte_ENABLE_MAGMA=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON
fi
# Python modules required for test analysis
python3 -m pip install --upgrade -r Regression/requirements.txt
EZoni marked this conversation as resolved.
Show resolved Hide resolved
python3 -m pip cache purge
# external repositories required for test analysis
cd ..
git clone --depth 1 https://github.com/ECP-WarpX/warpx-data.git
# TODO select only specific datasets?
git clone --depth 1 https://github.com/openPMD/openPMD-example-datasets.git
cd -
rm -rf ${CEI_TMP}
df -h
displayName: 'Install dependencies'

- bash: |
set -eu -o pipefail
df -h
./run_test.sh
rm -rf ${WARPX_CI_TMP}
# configure
export AMReX_CMAKE_FLAGS="-DAMReX_ASSERTIONS=ON -DAMReX_TESTING=ON"
cmake -S . -B build \
${AMReX_CMAKE_FLAGS} \
${WARPX_CMAKE_FLAGS} \
-DWarpX_TEST_CLEANUP=ON \
-DWarpX_TEST_FPETRAP=ON
# build
cmake --build build -j 2
# run tests (exclude pytest.AMReX when running Python tests)
ctest --test-dir build --output-on-failure -E AMReX
rm -rf build
df -h
displayName: 'Build & test'
18 changes: 9 additions & 9 deletions .github/workflows/clang_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ jobs:
#MPI implementations often leak memory
export "ASAN_OPTIONS=detect_leaks=0"

mpirun -n 2 ./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz
mpirun -n 2 ./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_1d
mpirun -n 2 ./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_2d
mpirun -n 2 ./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d
mpirun -n 2 ./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_base_rz
mpirun -n 2 ./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_test_1d_laser_acceleration
mpirun -n 2 ./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_base_2d
mpirun -n 2 ./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_base_3d

build_thread_sanitizer:
name: Clang thread sanitizer
Expand Down Expand Up @@ -149,17 +149,17 @@ jobs:

export OMP_NUM_THREADS=2

mpirun -n 2 ./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_1d warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_2d warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_base_rz warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_test_1d_laser_acceleration warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_base_2d warpx.serialize_initial_conditions = 0
mpirun -n 2 ./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_base_3d warpx.serialize_initial_conditions = 0

git clone https://github.com/ECP-WarpX/warpx-data ../warpx-data
cd Examples/Tests/embedded_circle

ulimit -c unlimited

mpirun -n 2 ../../../build_EB/bin/warpx.2d inputs_2d warpx.serialize_initial_conditions = 0
mpirun -n 2 ../../../build_EB/bin/warpx.2d inputs_test_2d_embedded_circle warpx.serialize_initial_conditions = 0

save_pr_number:
if: github.event_name == 'pull_request'
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
cmake --build build -j 4
- name: Test
run: |
cp Examples/Physics_applications/laser_acceleration/inputs_3d .
cp Examples/Physics_applications/laser_acceleration/inputs_base_3d .
cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml ascent_actions.yaml
mpiexec -n 2 ./build/bin/warpx.3d \
inputs_3d \
inputs_base_3d \
max_step = 40 \
diag1.intervals = 30:40:10 \
diag1.format = ascent
Expand Down Expand Up @@ -97,26 +97,26 @@ jobs:
cmake --build build -j 10
- name: 2D Test
run: |
cp Examples/Tests/ionization/inputs_2d_rt .
cp Examples/Tests/ionization/inputs_test_2d_ionization_lab .
cp Examples/Tests/ionization/catalyst_pipeline.py .
mpiexec -n 2 ./build/bin/warpx.2d \
inputs_2d_rt \
inputs_test_2d_ionization_lab \
catalyst.script_paths = catalyst_pipeline.py\
catalyst.implementation = paraview\
diag1.intervals = 16\
diag1.species = "electrons ions"\
diag1.format = catalyst
- name: 3D Test
run: |
cp Examples/Tests/electrostatic_sphere/inputs_3d .
cp Examples/Tests/electrostatic_sphere/inputs_base_3d .
cp Examples/Tests/electrostatic_sphere/catalyst_pipeline.py .
mpiexec -n 2 ./build/bin/warpx.3d \
inputs_3d \
catalyst.script_paths = catalyst_pipeline.py \
catalyst.implementation = paraview \
diagnostics.diags_names = diag1 \
diag1.format = catalyst\
diag1.intervals = 3
inputs_base_3d \
catalyst.script_paths = catalyst_pipeline.py \
catalyst.implementation = paraview \
diagnostics.diags_names = diag1 \
diag1.format = catalyst\
diag1.intervals = 3
- uses: actions/upload-artifact@v4
with:
name: catalyst-test-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
source /opt/intel/oneapi/setvars.sh
set -e
export OMP_NUM_THREADS=2
Examples/Physics_applications/laser_acceleration/PICMI_inputs_3d.py
Examples/Physics_applications/laser_acceleration/inputs_test_3d_laser_acceleration_picmi.py

build_dpcc:
name: oneAPI DPC++ SP
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
source py-venv/bin/activate
export OMP_NUM_THREADS=1

mpirun -n 2 Examples/Physics_applications/laser_acceleration/PICMI_inputs_3d.py
mpirun -n 2 Examples/Physics_applications/laser_acceleration/inputs_test_3d_laser_acceleration_picmi.py

save_pr_number:
if: github.event_name == 'pull_request'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/checkQEDTableGenerator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export OMP_NUM_THREADS=2
# Generate QED lookup tables using WarpX
#
./build/bin/warpx.2d \
./Examples/Tests/qed/quantum_synchrotron/inputs_2d \
./Examples/Tests/qed/inputs_test_2d_qed_quantum_sync \
qed_bw.lookup_table_mode = "generate" \
qed_bw.tab_dndt_chi_min = 0.01 \
qed_bw.tab_dndt_chi_max = 100.0 \
Expand Down Expand Up @@ -70,7 +70,7 @@ diff qs_table_dndt qs_table_tool_dndt
# Run a WarpX simulation using the lookup tables generated by the external tool
#
./build/bin/warpx.2d \
./Examples/Tests/qed/quantum_synchrotron/inputs_2d \
./Examples/Tests/qed/inputs_test_2d_qed_quantum_sync \
qed_bw.lookup_table_mode = "load" \
qed_bw.load_table_from = "bw_table_tool" \
qed_qs.lookup_table_mode = "load" \
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:
run: .github/workflows/source/hasTabs
- name: End-of-Line whitespaces
run: .github/workflows/source/hasEOLwhiteSpace
- name: Proper file names in Examples
run: .github/workflows/source/wrongFileNameInExamples
- name: Examples are tested
run: .github/workflows/source/inputsNotTested
- name: Check test input files
run: .github/workflows/source/check_inputs.py
- name: Check that the test matrix for CI includes all tests
run: .github/workflows/source/test_ci_matrix.sh
- name: Doxygen
Expand Down
Loading
Loading