Skip to content

Replace system tar command with cmake built-in tar function#196

Merged
BenjaminTJohnson merged 2 commits intodevelopfrom
feature/cmake-built-in-tar
Jan 23, 2025
Merged

Replace system tar command with cmake built-in tar function#196
BenjaminTJohnson merged 2 commits intodevelopfrom
feature/cmake-built-in-tar

Conversation

@srherbener
Copy link
Copy Markdown
Contributor

Description

This PR changes the CRTM test CMake configuration to use the builtin cmake tar feature instead of the system tar command to unpack the downloaded test files. This change is desired to work around an issue with the latest spack-stack Intel build on Orion as described in: JCSDA/spack-stack/issues/1355.

Issue(s) addressed

Resolves JCSDA/spack-stack/issues/1355

Dependencies

List the other PRs that this PR is dependent on:
None

Impact

Expected impact on downstream repositories:
None - this is a cmake configuration only change which uses a different means for upacking a downloaded tar file.

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation (N/A)
  • I have run the unit tests before creating the PR
    • Built and Intel spack-stack environment on Orion using the latest develop branches, then built and tested jedi-bundle using that environment. The jedi-bundle build completed successfully and there were 7 ctest failures that match up with known test failures (and not related to this change).

@srherbener srherbener added the INFRA JEDI Infrastructure label Jan 15, 2025
if(NOT EXISTS ${UNTAR_DEST}/${CRTM_COEFFS_BRANCH}/)
message(STATUS "Untarring the downloaded file (~2 minutes) to ${UNTAR_DEST}")
execute_process(COMMAND tar -xzf ${DOWNLOAD_DEST} -C ${UNTAR_DEST}
execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${UNTAR_DEST}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add at comment there, at least a line pointing to the issue

# https://....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a comment that includes the URL to the spack-stack issue.

@srherbener srherbener requested a review from fmahebert January 21, 2025 16:48
Copy link
Copy Markdown
Contributor

@fmahebert fmahebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not go test this, but this looks reasonable. Thanks for this workaround!

@BenjaminTJohnson BenjaminTJohnson merged commit 3f2865f into develop Jan 23, 2025
@BenjaminTJohnson BenjaminTJohnson deleted the feature/cmake-built-in-tar branch January 23, 2025 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

INFRA JEDI Infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orion, Intel environment for spack-stack-1.8.0 breaks the system tar command

4 participants