Skip to content
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

Splitting up the archive task #3242

Open
wants to merge 77 commits into
base: develop
Choose a base branch
from

Conversation

AntonMFernando-NOAA
Copy link
Contributor

@AntonMFernando-NOAA AntonMFernando-NOAA commented Jan 21, 2025

Description

  • In this PR the archive task will be split into two parts. The first will always run and will just be for the copying of verification data to the VRFY_ARC and ARCDIR directories. The second will only run when HPSSARCH or LOCALARCH is set to YES and will generate and store tarballs in the ATARDIR, either on HPSS or locally.

  • Resolves Split up the archive task #3152

Type of change

  • Bug fix (fixes something broken)
  • New feature (adds functionality)
  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • 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 (If YES, please add a link to any PRs that are pending.)
    • EMC verif-global
    • GDAS
    • GFS-utils
    • GSI
    • GSI-monitor
    • GSI-utils
    • UFS-utils
    • UFS-weather-model
    • wxflow

How has this been tested?

  • CI tests in Hera

Example:

  • Cycled test on Hera
  • Forecast-only on Hera

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

parm/config/gfs/config.earc_tars Fixed Show fixed Hide fixed
parm/config/gfs/config.earc_tars Fixed Show fixed Hide fixed
parm/config/gfs/config.earc_vrfy Fixed Show fixed Hide fixed
parm/config/gfs/config.earc_vrfy Fixed Show fixed Hide fixed
parm/config/gfs/config.earc_tars Fixed Show fixed Hide fixed
parm/config/gfs/config.earc_vrfy Fixed Show fixed Hide fixed
@AntonMFernando-NOAA AntonMFernando-NOAA force-pushed the feature/arch-split branch 2 times, most recently from 3d5f792 to c283e87 Compare January 21, 2025 17:16
parm/config/gfs/config.arch_vrfy Fixed Show fixed Hide fixed
parm/config/gfs/config.arch_vrfy Fixed Show fixed Hide fixed
parm/config/gfs/config.arch_vrfy Fixed Show fixed Hide fixed
parm/config/gfs/config.arch_vrfy Fixed Show fixed Hide fixed
@AntonMFernando-NOAA
Copy link
Contributor Author

gfs_cyc test - /scratch1/NCEPDEV/global/Anton.Fernando/RUNTESTS/COMROOT/gfs_cyc2
gfs_forecast_only test - /scratch1/NCEPDEV/global/Anton.Fernando/RUNTESTS/COMROOT/gfs_ap1
gefs test - /scratch1/NCEPDEV/global/Anton.Fernando/RUNTESTS/COMROOT/gefs_ap1

'maxtries': '&MAXTRIES;'
}

metatask_dict = {'task_name': f'{self.run}_eamn',
Copy link
Contributor

Choose a reason for hiding this comment

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

There are now two eamn metatasks. One for earc_vrfy and one for earc_tars. Also, I think earc_vrfy doesn't need to be run in groups. It's going to be pretty lightweight (just local copies). My suggestions here are 1. change earc_vrfy to a task, not a metatask, and 2. let earc_tars have the eamn metatask name.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh, keep eamn in the trash where it belongs. One of these days, I'm doing to rename all those terrible four-letter names.

Comment on lines -2361 to -2362
else:
dep_dict = {'type': 'task', 'name': f'{self.run}_arch'}
Copy link
Contributor

Choose a reason for hiding this comment

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

This else should not have been removed. The ${RUN}_arch_vrfy task isn't valid for ensembles.

Comment on lines 2447 to 2450
else:
if self.options['do_archtar']:
dep_dict = {'type': 'task', 'name': f'{self.run}_arch_tars'}
deps.append(rocoto.add_dependency(dep_dict))
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be an else. It needs to be its own if block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split up the archive task
3 participants