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

[FEATURE REQUEST] Pass rundir name not full path when determining executable name in integration tests #2083

Closed
lizziel opened this issue Dec 20, 2023 · 1 comment · Fixed by #2084
Assignees
Labels
no-diff-to-benchmark This update will not change the results of fullchem benchmark simulations topic: Benchmarking and Testing Related to CI, integration tests, or scientific benchmarking

Comments

@lizziel
Copy link
Contributor

lizziel commented Dec 20, 2023

Name and Institution (Required)

Name: Lizzie Lundgren
Institution: Harvard University

New GEOS-Chem feature or discussion

During testing I noticed that RRTMG executables were being used within all integration test run directories. I traced the problem to having "rrtmg" in my test directory path. The absolute path is passed to integration function exe_name within the GCClassic and GCHP integrationTestExecute.sh scripts (see here and here). Changing this to use run directory name rather than full path will make the integration tester more robust.

@lizziel lizziel added topic: Benchmarking and Testing Related to CI, integration tests, or scientific benchmarking no-diff-to-benchmark This update will not change the results of fullchem benchmark simulations labels Dec 20, 2023
@lizziel lizziel changed the title Pass run directory name not full path when determining executable name in integration tests [FEATURE REQUEST] Pass rundir name not full path when determining executable name in integration tests Dec 20, 2023
yantosca added a commit that referenced this issue Dec 20, 2023
This commit fixes the issue raised in PR #2083 by @lizziel.  Integration
and parallel test execute scripts now use the run directory name and not
the absolute path to determine the executable file name.

test/integration/GCClassic/integrationTestExecute.sh
test/integration/GCHP/integrationTestExecute.sh
test/parallel/GCClassic/parallelTestExecute.sh
- Pass ${runDir} instead of ${runAbsPath} to the exe_name function.
  This will prevent integration test root paths with e.g. "rrtmg"
  from returning an incorrect executable name.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca self-assigned this Dec 21, 2023
yantosca added a commit that referenced this issue Dec 21, 2023
This merge brings PR #2084 (Use rundir (not absolute path) to select
the executable file for integration and parallel tests, by @yantosca)
into the GEOS-Chem "no-diff-to-benchmark" development stream.

This PR fixes the issue reported in #2083 by @lizziel.

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca
Copy link
Contributor

yantosca commented Jan 2, 2024

@lizziel, feel free to close this issue. It's been merged into the no-diff-to-benchmark branch.

@lizziel lizziel closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-diff-to-benchmark This update will not change the results of fullchem benchmark simulations topic: Benchmarking and Testing Related to CI, integration tests, or scientific benchmarking
Projects
None yet
2 participants