Skip to content

Commit

Permalink
Merge branch 'develop' into feature_2575_tci_general_model
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe authored Dec 9, 2024
2 parents 0b87cf5 + 6d9cae7 commit 47233d0
Show file tree
Hide file tree
Showing 147 changed files with 3,902 additions and 6,015 deletions.
11 changes: 9 additions & 2 deletions .github/jobs/docker_build_metplus_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ fi
# remove v prefix
metplus_version=${SOURCE_BRANCH:1}

# if rc is in version number, get main_vX.Y, otherwise get X.Y-latest or develop
if [[ "${metplus_version}" =~ rc ]]; then
tag_format="main_v{X}.{Y}"
else
tag_format="{X}.{Y}-latest"
fi

# Get MET tag and adjust MET Docker repo if develop
met_tag=$("${GITHUB_WORKSPACE}"/metplus/component_versions.py -v "${metplus_version}" -o MET -f "{X}.{Y}-latest" --no-get_dev_version)
met_tag=$("${GITHUB_WORKSPACE}"/metplus/component_versions.py -v "${metplus_version}" -o MET -f ${tag_format} --no-get_dev_version)
echo "$met_tag"

MET_DOCKER_REPO=met
if [ "$met_tag" == "develop" ]; then
if [ "$met_tag" == "develop" ] || [[ "${met_tag}" =~ ^main_v[0-9]+\.[0-9]+ ]]; then
MET_DOCKER_REPO=met-dev
fi

Expand Down
12 changes: 10 additions & 2 deletions .github/jobs/docker_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@ echo "TIMING: docker pull ${DOCKERHUB_TAG} took `printf '%02d' $(($duration / 60
export DOCKERFILE_PATH=${GITHUB_WORKSPACE}/internal/scripts/docker/Dockerfile

metplus_version=$(head -n 1 "${GITHUB_WORKSPACE}/metplus/VERSION")
MET_TAG=$("${GITHUB_WORKSPACE}"/metplus/component_versions.py -v "${metplus_version}" -o MET -f "{X}.{Y}-latest" --no-get_dev_version)

# if rc is in version number, get main_vX.Y, otherwise get X.Y-latest or develop
if [[ "${metplus_version}" =~ rc ]]; then
tag_format="main_v{X}.{Y}"
else
tag_format="{X}.{Y}-latest"
fi

MET_TAG=$("${GITHUB_WORKSPACE}"/metplus/component_versions.py -v "${metplus_version}" -o MET -f ${tag_format} --no-get_dev_version)

MET_DOCKER_REPO=met-dev
if [ "${MET_TAG}" != "develop" ]; then
if [ "${MET_TAG}" != "develop" ] && ! [[ "${MET_TAG}" =~ ^main_v[0-9]+\.[0-9]+ ]]; then
MET_DOCKER_REPO=met
elif [ "${EXTERNAL_TRIGGER}" == "true" ]; then
# if MET tag is develop and external repo triggered workflow
Expand Down
25 changes: 25 additions & 0 deletions .github/parm/use_case_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@
"index_list": "10",
"run": false
},
{
"category": "marine_and_cryosphere",
"index_list": "11",
"disabled": true,
"disabled_reason": "exceeds GitHub Actions environment limits",
"run": false
},
{
"category": "medium_range",
"index_list": "0",
Expand Down Expand Up @@ -234,6 +241,22 @@
"index_list": "0",
"run": false
},
{
"category": "s2s_stratosphere",
"index_list": "1",
"disabled": true,
"disabled_reason": "exceeds GitHub Actions environment limits",
"data_location": "v6.0/additional_data_UserScript_fcstGFS_obsERA_StratospherePolar.tgz",
"run": false
},
{
"category": "s2s_stratosphere",
"index_list": "2",
"disabled": true,
"disabled_reason": "exceeds GitHub Actions environment limits",
"data_location": "v6.0/additional_data_UserScript_fcstGFS_obsERA_StratosphereQBO.tgz",
"run": false
},
{
"category": "short_range",
"index_list": "0",
Expand Down Expand Up @@ -278,12 +301,14 @@
"category": "short_range",
"index_list": "14",
"disabled": true,
"disabled_reason": "need new RRFS data with new line types",
"run": false
},
{
"category": "short_range",
"index_list": "15",
"disabled": true,
"disabled_reason": "exceeds GitHub Actions environment limits",
"run":false
},
{
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/create_conda_envs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,20 @@ jobs:
- run: .github/jobs/build_conda_image.sh
- run: .github/jobs/push_conda_image.sh

mp_analysis:
if: |
always() && (needs.check.outputs.no_skip == 'true' ||
contains(fromJSON(needs.check.outputs.run_list), 'mp_analysis'))
runs-on: ubuntu-latest
needs: [check,metplotpy]
env:
ENV_NAME: ${{ github.job }}
BASE_ENV: metplotpy
steps:
- uses: actions/checkout@v4
- run: .github/jobs/build_conda_image.sh
- run: .github/jobs/push_conda_image.sh

diff:
if: |
always() && (needs.check.outputs.no_skip == 'true' ||
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
- '.github/pull_request_template.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/labels/**'
- 'build_components/**'
- 'manage_externals/**'
- '**/README.md'
- '**/LICENSE.md'

Expand All @@ -30,8 +28,6 @@ on:
- '.github/pull_request_template.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/labels/**'
- 'build_components/**'
- 'manage_externals/**'
- '**/README.md'
- '**/LICENSE.md'

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
- '.github/pull_request_template.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/labels/**'
- 'build_components/**'
- 'manage_externals/**'
- '**/README.md'
- '**/LICENSE.md'

Expand All @@ -29,8 +27,6 @@ on:
- '.github/pull_request_template.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/labels/**'
- 'build_components/**'
- 'manage_externals/**'
- '**/README.md'
- '**/LICENSE.md'

Expand Down Expand Up @@ -59,6 +55,9 @@ jobs:
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
# continue if this step fails, which can happen when the merge commit
# message is too long
continue-on-error: true
- name: Build URL for commit that triggered workflow
if: github.event_name == 'workflow_dispatch'
run: echo https://github.com/${{ github.event.inputs.repository }}/commit/${{ github.event.inputs.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_truth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ jobs:
# get truth change log from *-ref branch
cmd="git checkout origin/${branch_name}-ref -- ${change_log_path}"
echo $cmd
$cmd
$cmd || true
# create or append to file to track truth data changes
# and ensure that PR merge into *-ref branch triggered testing workflow
change_entry="[$(date +%Y%m%d_%H:%M:%S) ${branch_name}] ${{ github.event.inputs.pull_requests }} - ${{ github.event.inputs.change_summary }}"
change_entry='[$(date +%Y%m%d_%H:%M:%S) ${branch_name}] ${{ github.event.inputs.pull_requests }} - ${{ github.event.inputs.change_summary }}'
echo "${change_entry}" >> ${change_log_path}
# add file if it does not already exist
Expand Down
1 change: 0 additions & 1 deletion build_components/Externals.cfg

This file was deleted.

39 changes: 0 additions & 39 deletions build_components/Externals_develop.cfg

This file was deleted.

39 changes: 0 additions & 39 deletions build_components/Externals_stable.cfg

This file was deleted.

22 changes: 0 additions & 22 deletions build_components/README.GFDLTRACKER

This file was deleted.

16 changes: 0 additions & 16 deletions build_components/README.md

This file was deleted.

45 changes: 0 additions & 45 deletions build_components/build_MET.sh

This file was deleted.

29 changes: 0 additions & 29 deletions build_components/env_vars.bash

This file was deleted.

Loading

0 comments on commit 47233d0

Please sign in to comment.