Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
aadb0a8
update gfs ->global
AntonMFernando-NOAA Feb 4, 2026
db36890
second batch
AntonMFernando-NOAA Feb 5, 2026
8f21cb3
update converting scripts
AntonMFernando-NOAA Feb 5, 2026
24ab37c
Merge remote-tracking branch 'origin/develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 5, 2026
69414c8
update HOMEglobal for new commit
AntonMFernando-NOAA Feb 5, 2026
c7c3a1b
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 6, 2026
75e5709
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 6, 2026
08110a4
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 9, 2026
db557cc
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 10, 2026
07cf584
update scripts
AntonMFernando-NOAA Feb 10, 2026
079c734
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
a97f219
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
88839da
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
1c02173
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
61e5e90
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
3e15621
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
b615d71
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
731c512
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
0d3a19d
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
0a45bdf
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
037ec1c
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
bd64d0a
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
c26f8f4
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
4d492c2
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
08cc669
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 10, 2026
3ca9cd8
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
a433ea9
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 10, 2026
94a8838
Update dev/ush/convert_from_net.sh
AntonMFernando-NOAA Feb 10, 2026
4fe0b81
Update dev/ush/test.sh
AntonMFernando-NOAA Feb 10, 2026
360e403
update scripts
AntonMFernando-NOAA Feb 10, 2026
a56d5d8
Merge branch 'maint/EE2_rename' of https://github.com/AntonMFernando-…
AntonMFernando-NOAA Feb 10, 2026
4f3aab8
add return
AntonMFernando-NOAA Feb 10, 2026
db8510c
update scripts
AntonMFernando-NOAA Feb 11, 2026
7d9bdb6
update script
AntonMFernando-NOAA Feb 11, 2026
bf085fc
update scripts
AntonMFernando-NOAA Feb 11, 2026
96715b7
script update
AntonMFernando-NOAA Feb 11, 2026
d4765d0
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
7117efb
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
60fa482
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
3264187
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
b37ecd8
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 11, 2026
8d3dc37
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 11, 2026
ebdb201
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 11, 2026
912c71e
Update dev/ush/convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 11, 2026
2ed47f9
update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
9ec74dc
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
7cee89a
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
9417721
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
6469c84
Update dev/ush/convert_from_net_to_global.sh
AntonMFernando-NOAA Feb 11, 2026
24a1ccb
update scripts
AntonMFernando-NOAA Feb 11, 2026
7d1ca66
update scripts
AntonMFernando-NOAA Feb 11, 2026
d530da0
update scripts
AntonMFernando-NOAA Feb 11, 2026
9dfefeb
kept ecf files as NET
AntonMFernando-NOAA Feb 12, 2026
af1f672
submodule updates
Feb 12, 2026
9e1c43d
add paths
AntonMFernando-NOAA Feb 12, 2026
fbf23d6
update submodules
AntonMFernando-NOAA Feb 12, 2026
7784b8f
update verif-global.fd module
AntonMFernando-NOAA Feb 12, 2026
a1c6753
update gitmodules
AntonMFernando-NOAA Feb 12, 2026
24e1d69
upadte gdas
AntonMFernando-NOAA Feb 13, 2026
61856ed
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 13, 2026
e41e46a
update .gitmodules
AntonMFernando-NOAA Feb 14, 2026
48788ed
update ufs_utils module
AntonMFernando-NOAA Feb 14, 2026
90b90a9
update ufs_utils.fd
AntonMFernando-NOAA Feb 17, 2026
46973b2
update convert scripts
AntonMFernando-NOAA Feb 17, 2026
148794b
update exglobal_scripts
AntonMFernando-NOAA Feb 19, 2026
1209650
Merge remote-tracking branch 'origin/develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 19, 2026
2e5e8bd
update sorc/link_workflow.sh
AntonMFernando-NOAA Feb 19, 2026
f3b96d6
update convert scripts
AntonMFernando-NOAA Feb 19, 2026
4c194f3
Fix shellcheck formatting in convert_from_global_to_net.sh
AntonMFernando-NOAA Feb 19, 2026
cdc06ed
update gdas to current hash
Feb 19, 2026
26d1fbf
Merge branch 'develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 20, 2026
2fabbf9
update HOMEgfs->HOMEglobal
AntonMFernando-NOAA Feb 20, 2026
1fad4ae
update gdas app
AntonMFernando-NOAA Feb 20, 2026
eba9292
update global_cycle scripts
AntonMFernando-NOAA Feb 20, 2026
7431e64
update fnbgso
AntonMFernando-NOAA Feb 20, 2026
3fd67f1
update gdas app
AntonMFernando-NOAA Feb 24, 2026
c254358
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 25, 2026
c26ea8c
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 26, 2026
b585b2e
update gsi monitor
AntonMFernando-NOAA Feb 26, 2026
0ca4a1e
update global-cycle scripts
AntonMFernando-NOAA Feb 26, 2026
3fa3b97
Remove pwd assignment from exglobal_enkf_sfc.sh
AntonMFernando-NOAA Feb 26, 2026
bc5ccc3
update gsi_monitor
AntonMFernando-NOAA Feb 26, 2026
b4a43af
Merge branch 'NOAA-EMC:develop' into maint/EE2_rename
AntonMFernando-NOAA Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def get_resource(self, task_name):
### Environment Setup
```bash
# From gw_setup.sh - CRITICAL for Python imports
if [[ -d "${HOMEgfs}/sorc/wxflow/src" ]]; then
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${HOMEgfs}/sorc/wxflow/src"
if [[ -d "${HOMEglobal}/sorc/wxflow/src" ]]; then
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${HOMEglobal}/sorc/wxflow/src"
export PYTHONPATH
fi
```
Expand Down Expand Up @@ -331,13 +331,13 @@ meta_tasks_state = {} # State tracking per metatask

### Machine Detection
```bash
source "${HOMEgfs}/ush/detect_machine.sh"
source "${HOMEglobal}/ush/detect_machine.sh"
# Sets MACHINE_ID for host-specific configurations
```

### Module Loading
```bash
module use "${HOMEgfs}/modulefiles"
module use "${HOMEglobal}/modulefiles"
module load "module_gwsetup.${MACHINE_ID}"
```

Expand All @@ -360,7 +360,7 @@ module load "module_gwsetup.${MACHINE_ID}"
# Standard environment setup in tasks
envar_dict = {
'RUN_ENVIR': 'emc',
'HOMEgfs': self.HOMEgfs,
'HOMEglobal': self.HOMEglobal,
'EXPDIR': self._base.get('EXPDIR'),
'NET': self._base.get('NET'),
'RUN': self.run,
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pw_aws_ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: gw-ci-aws
# TEST_DIR contains 2 directories;
# 1. HOMEgfs: clone of the global-workflow
# 1. HOMEglobal: clone of the global-workflow
# 2. RUNTESTS: A directory containing EXPDIR and COMROT for experiments
# e.g. $> tree ./TEST_DIR
# ./TEST_DIR
# ├── HOMEgfs
# ├── HOMEglobal
# └── RUNTESTS
# ├── COMROT
# │ └── ${pslot}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Checkout global-workflow
uses: actions/checkout@v4
with:
path: ${{ github.run_id }}/HOMEgfs
path: ${{ github.run_id }}/HOMEglobal
submodules: 'recursive'
repository: ${{ needs.fetch-branch.outputs.repo }}
ref: ${{ needs.fetch-branch.outputs.branch }}
Expand All @@ -113,12 +113,12 @@ jobs:
steps:
- name: Build components
run: |
cd ${{ env.TEST_DIR }}/HOMEgfs/sorc
cd ${{ env.TEST_DIR }}/HOMEglobal/sorc
./build_all.sh -j 8
- name: Link artifacts
run: |
cd ${{ env.TEST_DIR }}/HOMEgfs/sorc
cd ${{ env.TEST_DIR }}/HOMEglobal/sorc
./link_workflow.sh
create-experiments:
Expand All @@ -138,7 +138,7 @@ jobs:
pslot: ${{ matrix.case }}.${{ github.run_id }}
run: |
mkdir -p ${{ env.RUNTESTS }}
cd ${{ env.TEST_DIR }}/HOMEgfs
cd ${{ env.TEST_DIR }}/HOMEglobal
source dev/ush/gw_setup.sh
source dev/ci/platforms/config.noaacloud
./dev/workflow/create_experiment.py --yaml dev/ci/cases/pr/${{ matrix.case }}.yaml --overwrite
Expand All @@ -156,8 +156,8 @@ jobs:
steps:
- name: Run Experiment ${{ matrix.case }}
run: |
cd ${{ env.TEST_DIR }}/HOMEgfs
./dev/ci/scripts/run_check_ci.sh ${{ env.TEST_DIR }} ${{ matrix.case }}.${{ github.run_id }} HOMEgfs
cd ${{ env.TEST_DIR }}/HOMEglobal
./dev/ci/scripts/run_check_ci.sh ${{ env.TEST_DIR }} ${{ matrix.case }}.${{ github.run_id }} HOMEglobal
clean-up:
needs: run-experiments
Expand Down
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
url = https://github.com/NOAA-EMC/gfs-utils
[submodule "sorc/ufs_utils.fd"]
path = sorc/ufs_utils.fd
url = https://github.com/ufs-community/UFS_UTILS.git
url = https://github.com/AntonMFernando-NOAA/UFS_UTILS
[submodule "sorc/verif-global.fd"]
path = sorc/verif-global.fd
url = https://github.com/NOAA-EMC/EMC_verif-global.git
url = https://github.com/AntonMFernando-NOAA/EMC_verif-global
[submodule "sorc/gsi_enkf.fd"]
path = sorc/gsi_enkf.fd
url = https://github.com/NOAA-EMC/GSI.git
[submodule "sorc/gdas.cd"]
path = sorc/gdas.cd
url = https://github.com/NOAA-EMC/GDASApp.git
url = https://github.com/AntonMFernando-NOAA/GDASApp
ignore = dirty
[submodule "sorc/gsi_utils.fd"]
path = sorc/gsi_utils.fd
url = https://github.com/NOAA-EMC/GSI-Utils.git
[submodule "sorc/gsi_monitor.fd"]
path = sorc/gsi_monitor.fd
url = https://github.com/NOAA-EMC/GSI-Monitor.git
url = https://github.com/AntonMFernando-NOAA/GSI-Monitor
[submodule "sorc/nexus.fd"]
path = sorc/nexus.fd
url = https://github.com/NOAA-OAR-ARL/NEXUS.git
Expand Down
64 changes: 32 additions & 32 deletions dev/ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def Machine = 'none'
def machine = 'none'
def CUSTOM_WORKSPACE = 'none'
def HOMEgfs = 'none'
def HOMEgfs_dev = 'none'
def HOMEglobal = 'none'
def HOMEglobal_dev = 'none'
def CI_CASES = ''
def GH = 'none'
// Map of the machine names (MACHINE_ID) to the Jenkins Node names
Expand Down Expand Up @@ -90,8 +90,8 @@ pipeline {
properties([parameters([[$class: 'NodeParameterDefinition', allowedSlaves: ['built-in', 'hercules-emc', 'hera-emc', 'ursa-emc', 'orion-emc', 'gaeaC6-emc'], defaultSlaves: ['built-in'], name: '', nodeEligibility: [$class: 'AllNodeEligibility'], triggerIfResult: 'allCases']])])
GH = sh(script: "which gh || echo '~/bin/gh'", returnStdout: true).trim()
CUSTOM_WORKSPACE = "${WORKSPACE}"
HOMEgfs = "${CUSTOM_WORKSPACE}/global-workflow"
HOMEgfs_dev = "${CUSTOM_WORKSPACE}/global-workflow/dev"
HOMEglobal = "${CUSTOM_WORKSPACE}/global-workflow"
HOMEglobal_dev = "${CUSTOM_WORKSPACE}/global-workflow/dev"
sh(script: "rm -Rf ${CUSTOM_WORKSPACE}/global-workflow; mkdir -p ${CUSTOM_WORKSPACE}/global-workflow")
sh(script: "rm -Rf ${CUSTOM_WORKSPACE}/RUNTESTS; mkdir -p ${CUSTOM_WORKSPACE}/RUNTESTS")
sh(script: """${GH} pr edit ${env.CHANGE_ID} --repo ${repo_url} --add-label "CI-${Machine}-Building" --remove-label "CI-${Machine}-Ready" """)
Expand All @@ -106,17 +106,17 @@ pipeline {
steps {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
script {
ws(HOMEgfs) {
echo "Checking out the code on ${Machine} using scm in ${HOMEgfs}"
ws(HOMEglobal) {
echo "Checking out the code on ${Machine} using scm in ${HOMEglobal}"
try {
checkout scm
} catch (Exception e) {
echo "Failed to checkout the code on ${Machine} using scm in ${HOMEgfs}, try again ..."
echo "Failed to checkout the code on ${Machine} using scm in ${HOMEglobal}, try again ..."
sleep time: 45, unit: 'SECONDS'
try {
checkout scm
} catch (Exception ee) {
echo "Failed to checkout the code on ${Machine} using scm in ${HOMEgfs}: ${ee.getMessage()}"
echo "Failed to checkout the code on ${Machine} using scm in ${HOMEglobal}: ${ee.getMessage()}"
if (env.CHANGE_ID) {
sh(script: """${GH} pr comment ${env.CHANGE_ID} --repo ${repo_url} --body "Checkout **Failed** on ${Machine} in Build# ${env.BUILD_NUMBER}: ${ee.getMessage()}" """)
}
Expand All @@ -127,9 +127,9 @@ pipeline {
def gist_url = ""
def error_logs = ""
def error_logs_message = ""
dir("${HOMEgfs}/sorc") {
dir("${HOMEglobal}/sorc") {
try {
sh(script: "${HOMEgfs_dev}/ci/scripts/utils/ci_utils.sh build") // build the global-workflow executables
sh(script: "${HOMEglobal_dev}/ci/scripts/utils/ci_utils.sh build") // build the global-workflow executables
} catch (Exception error_build) {
echo "Failed to build global-workflow: ${error_build.getMessage()}"
if ( fileExists("logs/error.logs") ) {
Expand All @@ -140,20 +140,20 @@ pipeline {
if (fileExists("${line}") && readFile("${line}").length() > 0 ){
try {
archiveArtifacts artifacts: "${line}", fingerprint: true
error_logs = error_logs + "${HOMEgfs}/sorc/${line} "
error_logs_message = error_logs_message + "${HOMEgfs}/sorc/${line}\n"
error_logs = error_logs + "${HOMEglobal}/sorc/${line} "
error_logs_message = error_logs_message + "${HOMEglobal}/sorc/${line}\n"
}
catch (Exception error_arch) { echo "Failed to archive error log ${line}: ${error_arch.getMessage()}" }
}
}
try {
sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --repo PR_BUILD_${env.CHANGE_ID}
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --repo PR_BUILD_${env.CHANGE_ID}
""")
gist_url=sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --multiple --format=github --gist PR_BUILD_${env.CHANGE_ID} | tail -n 1
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --multiple --format=github --gist PR_BUILD_${env.CHANGE_ID} | tail -n 1
""", returnStdout: true).trim()
sh(script: """${GH} pr comment ${env.CHANGE_ID} --repo ${repo_url} --body 'Build **FAILED** on **${Machine}** in Build# ${env.BUILD_NUMBER} with error logs:\n```\n${error_logs_message}```\n\nFollow link here to view the contents of the above file(s): ${gist_url}' """)
} catch (Exception error_comment) {
Expand All @@ -176,8 +176,8 @@ pipeline {
}
// Get a list of CI cases to run
CI_CASES = sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/get_host_case_list.py ${machine}
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/get_host_case_list.py ${machine}
""", returnStdout: true).trim().split()
echo "Cases to run: ${CI_CASES}"
}
Expand All @@ -193,7 +193,7 @@ pipeline {
agent { label NodeName[machine].toLowerCase() }
steps {
script {
ws(HOMEgfs) {
ws(HOMEglobal) {
def parallelStages = CI_CASES.collectEntries { caseName ->
["${caseName}": {
stage("Create ${caseName}") {
Expand All @@ -202,8 +202,8 @@ pipeline {
def error_output = ""
try {
error_output = sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/ci_utils.sh create_experiment ${HOMEgfs_dev}/ci/cases/pr/${caseName}.yaml
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/ci_utils.sh create_experiment ${HOMEglobal_dev}/ci/cases/pr/${caseName}.yaml
""", returnStdout: true).trim()
} catch (Exception error_create) {
sh(script: """${GH} pr comment ${env.CHANGE_ID} --repo ${repo_url} --body '${caseName} **FAILED** to create experiment on ${Machine} in BUILD# ${env.BUILD_NUMBER}\n with the error:\n```\n${error_output}```' """)
Expand All @@ -215,22 +215,22 @@ pipeline {
stage("Running ${caseName}") {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
script {
def pslot = sh(script: "${HOMEgfs_dev}/ci/scripts/utils/ci_utils.sh get_pslot ${CUSTOM_WORKSPACE}/RUNTESTS ${caseName}", returnStdout: true).trim()
def pslot = sh(script: "${HOMEglobal_dev}/ci/scripts/utils/ci_utils.sh get_pslot ${CUSTOM_WORKSPACE}/RUNTESTS ${caseName}", returnStdout: true).trim()
def error_file = "${CUSTOM_WORKSPACE}/RUNTESTS/EXPDIR/${pslot}/${pslot}_error.logs"
sh(script: " rm -f ${error_file}")
try {
sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/run_check_ci.sh ${CUSTOM_WORKSPACE} ${pslot} 'global-workflow'
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/run_check_ci.sh ${CUSTOM_WORKSPACE} ${pslot} 'global-workflow'
""")
sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/ci_utils.sh cleanup_experiment ${CUSTOM_WORKSPACE}/RUNTESTS/EXPDIR/${pslot}
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/ci_utils.sh cleanup_experiment ${CUSTOM_WORKSPACE}/RUNTESTS/EXPDIR/${pslot}
""")
} catch (Exception error_experment) {
sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/ci_utils.sh cancel_batch_jobs ${pslot}
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/ci_utils.sh cancel_batch_jobs ${pslot}
""")
ws(CUSTOM_WORKSPACE) {
def error_logs = ""
Expand All @@ -252,13 +252,13 @@ pipeline {
}
try {
gist_url = sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --multiple --format=github --gist PR_${env.CHANGE_ID} | tail -n 1
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --multiple --format=github --gist PR_${env.CHANGE_ID} | tail -n 1
""", returnStdout: true).trim()
sh(script: """${GH} pr comment ${env.CHANGE_ID} --repo ${repo_url} --body 'Experiment ${caseName} **FAILED** on ${Machine} in Build# ${env.BUILD_NUMBER} with error logs:\n```\n${error_logs_message}```\n\nFollow link here to view the contents of the above file(s): ${gist_url}' """)
sh(script: """
source ${HOMEgfs_dev}/ush/gw_setup.sh
${HOMEgfs_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --repo PR_${env.CHANGE_ID}
source ${HOMEglobal_dev}/ush/gw_setup.sh
${HOMEglobal_dev}/ci/scripts/utils/publish_logs.py --file ${error_logs} --repo PR_${env.CHANGE_ID}
""")
} catch (Exception error_comment) {
echo "Failed to comment on PR: ${error_comment.getMessage()}"
Expand Down
Loading
Loading