-
Notifications
You must be signed in to change notification settings - Fork 184
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
Set up CTest #5068
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15146f7
to
a382488
Compare
ax3l
reviewed
Jul 23, 2024
ax3l
reviewed
Jul 23, 2024
EZoni
commented
Jul 24, 2024
09ca93c
to
a81a95b
Compare
This was referenced Sep 3, 2024
5 tasks
ax3l
reviewed
Sep 3, 2024
ax3l
reviewed
Sep 3, 2024
ax3l
reviewed
Sep 4, 2024
WeiqunZhang
pushed a commit
to AMReX-Codes/amrex
that referenced
this pull request
Sep 5, 2024
## Summary For CI/CD workflows and out-of-source tests we often want to include dependent inputs files via `FILE = <filename>`. For development, we prefer to run in temporary run directories but want to avoid having to copy over the latest inputs file from a source directory (mostly to avoid confusion between source and copy and to enable rapid development cycles). Now, the environment variable `AMREX_INPUTS_FILE_PREFIX` can be set to prefix every `FILE = <filename>` with a custom path. We will use this in the CTests integration of WarpX. ## Additional background CC @EZoni ECP-WarpX/WarpX#5068
ax3l
reviewed
Sep 5, 2024
ax3l
approved these changes
Sep 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, fantastic work! 🚀 ✨
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work-in-progress PR to set up CTest. Apply the same logic as in ImpactX and adjust/advance for WarpX.
Example of current input files organization:
inputs_base_2d
(base input file for shared input parameters named as
inputs_base_<1d;2d;3d;rz>
)inputs_test_2d_langmuir_multi_nodal
,inputs_test_2d_langmuir_multi_psatd
,...
(test input files for test-specific input parameters named as
inputs_test_<1d;2d;3d;rz>_...
, read base input file through theFILE
parameter)test_<1d;2d;3d;rz>_...
to guarantee consistency and make maintenance easierNew Azure CI matrix elements (list coming soon).
Run all MPI tests with 2 MPI processes and 1 OpenMP thread. Run single-process tests without MPI.
To-do:
WarpX_TEST_CLEANUP
to remove test directoriesWarpX_TEST_FPETRAP
for runtime fpe-trappingFIXME
comments or redirect to new issuesParmParse
: Prefix toFILE
AMReX-Codes/amrex#4126WarpX_CI
dirichlet_bc
dirichlet_bc_picmi
field_probe
embedded_boundary_picmi
particle_absorption
particle_reflection_picmi
id_cpu_read_picmi
runtime_components_picmi
laser_acceleration_rz_opmd
FILE
parameter)FILE
through PICMI?)analysis_default_restart.py
.analysis
test and.run
test:run
.analysis
test only if.run
test passed (now runs if.run
test ran)