Skip to content

Ensures any failure in piped output is captured and reported.#4328

Merged
DavidHuber-NOAA merged 28 commits intoNOAA-EMC:developfrom
aerorahul:feature/pipedown
Dec 19, 2025
Merged

Ensures any failure in piped output is captured and reported.#4328
DavidHuber-NOAA merged 28 commits intoNOAA-EMC:developfrom
aerorahul:feature/pipedown

Conversation

@aerorahul
Copy link
Contributor

@aerorahul aerorahul commented Dec 12, 2025

Description

This PR:

This PR also provides a hotfix for #4334

Type of change

  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this change expected to change outputs (e.g. value changes to existing outputs, new files stored in COM, files removed from COM, filename changes, additions/subtractions to archives)? NO
  • Is this a breaking change (a change in existing functionality)? NO
  • Does this change require a documentation update? NO
  • Does this change require an update to any of the following submodules? NO

How has this been tested?

  • GFS tests on GaeaC6 and WCOSS
  • More testing is in progress

Checklist

  • Any dependent changes have been merged and published
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have documented my code, including function, input, and output descriptions
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • This change is covered by an existing CI test or a new one has been added
  • Any new scripts have been added to the .github/CODEOWNERS file with owners
  • I have made corresponding changes to the system documentation if necessary

Copy link
Contributor

@WalterKolczynski-NOAA WalterKolczynski-NOAA left a comment

Choose a reason for hiding this comment

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

I'm worried that sometimes we want to ignore the pipefail (particularly when using grep with wgrib2).

Copy link
Contributor

@DavidHuber-NOAA DavidHuber-NOAA left a comment

Choose a reason for hiding this comment

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

Just a couple of suggestions with find speedups. Otherwise, it looks good. I'm expecting a few more bugs to resolve as testing continues.

@aerorahul
Copy link
Contributor Author

I'm worried that sometimes we want to ignore the pipefail (particularly when using grep with wgrib2).

Thanks @WalterKolczynski-NOAA
Do you know where that is the case presently? If we know, then we can wrap that call with unset_strict such that"

unset_strict
wgrib2 ....
set_strict

What do you think?

Co-authored-by: David Huber <[email protected]>
Co-authored-by: Travis Elless <[email protected]>
Copy link
Contributor

@DavidHuber-NOAA DavidHuber-NOAA left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@DavidHuber-NOAA
Copy link
Contributor

Launching on Hercules and Ursa.

@emcbot emcbot added CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Ursa-Ready **CM use only** PR is ready for CI testing on Ursa labels Dec 19, 2025
@DavidHuber-NOAA DavidHuber-NOAA removed CI-Hercules-Failed **Bot use only** CI testing on Hercules for this PR has failed CI-Ursa-Failed **Bot use only** CI testing on Ursa for this PR has failed labels Dec 19, 2025
@emcbot emcbot added CI-Ursa-Building **Bot use only** CI testing is cloning/building on Ursa CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules and removed CI-Ursa-Ready **CM use only** PR is ready for CI testing on Ursa CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules labels Dec 19, 2025
@CoryMartin-NOAA
Copy link
Contributor

@aerorahul @bbakernoaa is on AL today. Do you need me to open a bugfix PR for this or can those changes be incorporated here?

@CoryMartin-NOAA
Copy link
Contributor

Never mind I see that @DavidHuber-NOAA reverted the PR. @bbakernoaa let's get this fixed in develop first then when we are back,

@emcbot emcbot added CI-Ursa-Running **Bot use only** CI testing on Ursa for this PR is in-progress CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress and removed CI-Ursa-Building **Bot use only** CI testing is cloning/building on Ursa CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules labels Dec 19, 2025
@aerorahul
Copy link
Contributor Author

@DavidHuber-NOAA
I applied your suggestion to comment out the gcafs pres_b archiving. With that, hopefully develop will not fail on that account.

@emcbot emcbot added CI-Ursa-Passed **Bot use only** CI testing on Ursa for this PR has completed successfully and removed CI-Ursa-Running **Bot use only** CI testing on Ursa for this PR is in-progress labels Dec 19, 2025
@DavidHuber-NOAA
Copy link
Contributor

Turns out that Hercules never actually ran. The GitLab runner was killed at some point. Merging based on success on Ursa and WCOSS2.

@DavidHuber-NOAA DavidHuber-NOAA merged commit 0f9a929 into NOAA-EMC:develop Dec 19, 2025
5 checks passed
@emcbot emcbot added CI-Hercules-Passed **Bot use only** CI testing on Hercules for this PR has completed successfully and removed CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress labels Dec 20, 2025
@aerorahul aerorahul deleted the feature/pipedown branch December 22, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-Hercules-Passed **Bot use only** CI testing on Hercules for this PR has completed successfully CI-Ursa-Passed **Bot use only** CI testing on Ursa for this PR has completed successfully CI-Wcoss2-Passed CI testing on WCOSS for this PR has completed successfully

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCAFS Attempts to archive non-existent pres_b products Add set -o pipefail to set_strict

6 participants