Skip to content

Conversation

georgemccabe
Copy link
Collaborator

@georgemccabe georgemccabe commented Apr 5, 2022

per#1555, add call to clear function to reset arguments between each forecast lead run

NOTE: Issue #1555 should not be closed because changes are needed for the develop branch as well. Merging this PR will likely automatically close the issue but it should be reopened.

Pull Request Testing

  • Describe testing already performed for these changes:
  • Added unit tests that demonstrate correct behavior.
  • Modified GenEnsProd.conf use case to recreate bug, then confirmed that the fix resolved the issue.
  • @michelleharrold confirmed that this fix resolved the issue on Cheyenne
  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

Ensure all automated tests pass. The code change is minimal but I updated the unit tests and added more empty files used for testing. We already confirmed the change fixes the issue on Cheyenne, but if you'd like you can test using the example from #1555 using the 4.1.0 release and the bugfix branch.

  • Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]

  • Do these changes include sufficient testing updates? [Yes]

  • Will this PR result in changes to the test suite? [No]

    Python unit tests were updated but they should all pass as before.

  • Please complete this pull request review by MET 10.1.1 bugfix release.

Pull Request Checklist

See the METplus Workflow for details.

  • Add any new Python packages to the METplus Components Python Requirements table.
  • Review the source issue metadata (required labels, projects, and milestone).
  • Complete the PR definition above.
  • Ensure the PR title matches the feature or bugfix branch name.
  • Define the PR metadata, as permissions allow.
    Select: Reviewer(s)
    Select: Organization level software support Project or Repository level development cycle Project
    Select: Milestone as the version that will include these changes
  • After submitting the PR, select Linked issues with the original issue number.
  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.
  • Close the linked issue and delete your feature or bugfix branch from GitHub.

@georgemccabe georgemccabe added this to the METplus-4.1.1 Bugfix milestone Apr 6, 2022
@georgemccabe georgemccabe marked this pull request as ready for review April 6, 2022 22:42
…l to run_at_time_once function so that all wrappers that inherit from RuntimeFreq will be cleared properly before running, not just GenEnsProd
@georgemccabe georgemccabe changed the title bugfix 1555 main_v4.1 GenEnsProd forecast leads bugfix 1555 main_v4.1 clear args properly Apr 7, 2022
@georgemccabe georgemccabe reopened this Apr 7, 2022
Copy link
Collaborator

@JohnHalleyGotway JohnHalleyGotway left a comment

Choose a reason for hiding this comment

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

I approve of these changes.

All GHA tests passed with no differences flagged.

I reviewed the changes to 20 files:

  • 12 new empty files added to test multiple lead times.
  • updates to tests for the gen_ens_prod, tc_gen, and user_script wrappers.
  • adding calls to clear in tc_gen and tcrmw wrappers.
  • update met_util to pass custom info and reference in the runtime freq wrapper.

I don't completely understand all the details, but I don't see any obvious problems.

@JohnHalleyGotway JohnHalleyGotway merged commit e639792 into main_v4.1 Apr 8, 2022
@JohnHalleyGotway JohnHalleyGotway deleted the bugfix_1555_main_v4.1_gen_ens_prod_leads branch April 8, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Bugfix: Fix reset of arguments for some wrappers (i.e. GenEnsProd) after each run
2 participants