-
Notifications
You must be signed in to change notification settings - Fork 50
Update paths for run_ufo_hofx_test.sh #1830
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
Draft
ADCollard
wants to merge
7
commits into
develop
Choose a base branch
from
feature/ursa_paths
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
239cde9
Update paths for run_ufo_hofx_test.sh
ADCollard 4c7cd51
reinstate hera and add hercules
ADCollard e333a9e
Initial plan
Copilot c647bf3
Add jcb installation to CMake build system
Copilot 4a16ca9
Add integration test for jcb installation verification
Copilot 9917dfa
Module updates
ADCollard 1b83adc
Merge branch 'copilot/fix-1832' into feature/ursa_paths
ADCollard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| -- NOAA HPC Orion Modulefile for EVA | ||
| help([[ | ||
| ]]) | ||
|
|
||
| local pkgName = myModuleName() | ||
| local pkgVersion = myModuleVersion() | ||
| local pkgNameVer = myModuleFullName() | ||
|
|
||
| prepend_path("MODULEPATH", '/work2/noaa/da/python/opt/modulefiles/stack') | ||
|
|
||
| load("hpc/1.2.0") | ||
| load("miniconda3/4.6.14") | ||
| load("eva/1.0.0") | ||
|
|
||
| whatis("Name: ".. pkgName) | ||
| whatis("Version: " .. pkgVersion) | ||
| whatis("Category: EVA") | ||
| whatis("Description: Load all libraries needed for EVA") |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| help([[ | ||
| Load python virtual environment for obs-monitor | ||
| ]]) | ||
|
|
||
| local pkgName = myModuleName() | ||
| local pkgVersion = myModuleVersion() | ||
|
|
||
| conflict(pkgName) | ||
|
|
||
| -- Load dependencies | ||
| prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.9.2/envs/ue-oneapi-2024.2.1/install/modulefiles/Core") | ||
|
|
||
| load("stack-oneapi/2024.2.1") | ||
| load("stack-intel-oneapi-mpi/2021.13") | ||
| load("intel-oneapi-mkl/2024.2.1") | ||
| load("stack-python/3.11.7") | ||
| load("rocoto/1.3.7") | ||
|
|
||
| -- Python packages | ||
| load("py-jinja2/3.1.4") | ||
| load("py-netcdf4/1.7.1.post2") | ||
| load("py-pybind11/2.13.5") | ||
| load("py-pycodestyle/2.11.0") | ||
| load("py-pyyaml/6.0.2") | ||
| load("py-scipy/1.14.1") | ||
| load("py-xarray/2024.7.0") | ||
| load("py-pip/23.1.2") | ||
| load("py-matplotlib/3.7.4") | ||
| load("py-cartopy/0.24.1") | ||
| load("proj/9.4.1") | ||
| load("py-wxflow/0.2.0") | ||
|
|
||
| -- Set the venv path | ||
| local venv_root = "/scratch3/NCEPDEV/da/Edward.Safford/noscrub/python/envs/obs-mon" | ||
| local bin_path = pathJoin(venv_root, "bin") | ||
| local lib_path = pathJoin(venv_root, "lib/python3.11/site-packages") -- adjust Python version if needed | ||
|
|
||
| -- Modify environment variables to emulate virtualenv activation | ||
| prepend_path("PATH", bin_path) | ||
| prepend_path("PYTHONPATH", lib_path) | ||
|
|
||
| -- Optional: If you want to make this environment more self-contained | ||
| setenv("VIRTUAL_ENV", venv_root) | ||
|
|
||
| whatis("Name: " .. pkgName) | ||
| whatis("Version: " .. tostring(pkgVersion)) | ||
| whatis("Category: Obs-monitor") | ||
| whatis("Description: Load all libraries needed for obs-monitor") |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Test script to verify that jcb is properly installed during build | ||
| # This script should be run after a successful CMake build | ||
|
|
||
| set -e | ||
|
|
||
| echo "Testing jcb installation in build directory..." | ||
|
|
||
| # Get the build directory - assuming it's passed as first argument or use default | ||
| BUILD_DIR="${1:-${CMAKE_INSTALL_PREFIX:-./install}}" | ||
|
|
||
| if [ ! -d "$BUILD_DIR" ]; then | ||
| echo "Error: Build directory '$BUILD_DIR' does not exist" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Using build directory: $BUILD_DIR" | ||
|
|
||
| # Find the Python site-packages directory | ||
| PYTHON_SITE_PACKAGES=$(find "$BUILD_DIR" -path "*/lib/python*/dist-packages" -o -path "*/lib/python*/site-packages" | head -1) | ||
| if [ -z "$PYTHON_SITE_PACKAGES" ]; then | ||
| echo "Error: Could not find Python site-packages directory in $BUILD_DIR" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Find the bin directory | ||
| BIN_DIR=$(find "$BUILD_DIR" -name "bin" -type d | head -1) | ||
| if [ -z "$BIN_DIR" ]; then | ||
| echo "Error: Could not find bin directory in $BUILD_DIR" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Python packages directory: $PYTHON_SITE_PACKAGES" | ||
| echo "Binary directory: $BIN_DIR" | ||
|
|
||
| # Check if jcb package is installed | ||
| if [ ! -d "$PYTHON_SITE_PACKAGES/jcb" ]; then | ||
| echo "Error: jcb Python package not found in $PYTHON_SITE_PACKAGES" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Check if jcb command is available | ||
| if [ ! -f "$BIN_DIR/jcb" ]; then | ||
| echo "Error: jcb command not found in $BIN_DIR" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Test if jcb command works | ||
| export PYTHONPATH="$PYTHON_SITE_PACKAGES:$PYTHONPATH" | ||
| export PATH="$BIN_DIR:$PATH" | ||
|
|
||
| echo "Testing jcb command..." | ||
| if ! jcb --version; then | ||
| echo "Error: jcb command failed to run" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✓ jcb is properly installed and functional" | ||
| echo "✓ jcb command is available at: $BIN_DIR/jcb" | ||
| echo "✓ jcb package is installed at: $PYTHON_SITE_PACKAGES/jcb" | ||
|
|
||
| exit 0 |
This file contains hidden or 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
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.
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.
Can we still support Hera? The compute nodes aren't going away immediately
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.
Correct. Hera compute will remain past 8/5/2025
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.
OK, I added it back and also added hercules