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

Bugfix 251 test scorecard #256

Merged
merged 4 commits into from Jan 18, 2023
Merged

Bugfix 251 test scorecard #256

merged 4 commits into from Jan 18, 2023

Conversation

bikegeek
Copy link
Collaborator

Pull Request Testing

  • Describe testing already performed for these changes:

Create a python 3.8 conda environment with these NCO metcalcpy minimal requirements:

MetPy==1.3.1
netcdf4==1.6.2 <- NOTE: this wasn't installed on 'acorn', this needs to be included
numpy==1.22.0
pandas==1.5.1
pip==22.2.2
pytest==6.2.2
python-dateutil==2.8.2
PyYAML==5.4.1
scipy==1.8.1
xarray==2022.3.0

Run tests using this script (to run only the 'basic' tests that don't use image comparison 3rd party packages):

run_basics.sh.txt

Copy the script to the METcalcpy/test/ directory
Remove the .txt extension
chmod 777 run_basics.sh
from the METcalcpy/test directory, run sh ./run_basics.sh

Verified that the specified tests passed (some tests are skipped in test_agg_stats_and_boots.py because they take a very long time to run) .

NOTE test_event_equalize.py tests is not included in the run_basics.sh script because there is another Github issue #250 for addressing the failing test in test_event_equalization.py

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:

Perform the same testing as above

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

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

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

    If yes, describe the new output and/or changes to the existing output:

  • Please complete this pull request review by Bugfix release.

Pull Request Checklist

See the METplus Workflow for details.

  • 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 Development issue 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.

@bikegeek bikegeek added priority: high High Priority requestor: NOAA/other NOAA Laboratory, not otherwise specified requestor: METplus Team METplus Development Team METcalcpy: General labels Jan 11, 2023
@bikegeek bikegeek added this to the METcalcpy 2.0.0-bugfix milestone Jan 11, 2023
Copy link
Collaborator

@jprestop jprestop left a comment

Choose a reason for hiding this comment

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

Hi @bikegeek. The same problem I mentioned in PR #255 exists here.

Copy link
Collaborator

@jprestop jprestop left a comment

Choose a reason for hiding this comment

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

@bikegeek Also, it appears that this PR and Feature 251 test scorecard #253 are both requesting to be merged into main_v2.0:

[Feature 251 test scorecard #253](https://github.com/dtcenter/METcalcpy/pull/253)
"bikegeek wants to merge 3 commits into main_v2.0 from feature_251_test_scorecard"
 
[Bugfix 251 test scorecard #256](https://github.com/dtcenter/METcalcpy/pull/256)
“bikegeek wants to merge 3 commits into main_v2.0 from bugfix_251_test_scorecard”

But I think PR #253 should be going into develop. However, I'm not sure what branch it was created off of or how to tell.

@jprestop jprestop mentioned this pull request Jan 11, 2023
13 tasks
@bikegeek
Copy link
Collaborator Author

bikegeek commented Jan 11, 2023 via email

@jprestop
Copy link
Collaborator

I thought the base for this bugfix branch should be main_v2.0 and the base for the feature branch should be main_v2.0?

@bikegeek
Copy link
Collaborator Author

bikegeek commented Jan 12, 2023 via email

@jprestop
Copy link
Collaborator

I just verified that the bugfix_251 base is main_v2.0 and the feature_251
base is develop. The previous comment was incorrect. I was looking at the PR for the feature_251

Awesome. Thank you so much!

@jprestop
Copy link
Collaborator

Hi @bikegeek. I just did a git pull and didn't see any changes here. I was wondering if maybe my previous comment was missed or misinterpreted due to the conversation about the branches:

Hi @bikegeek. The #255 (review) I mentioned in PR #255 exists here.

This branch has the same issue as PR #255 with regard to "FAILED test_lon_360_to_180.py::test_lon_from_360_to_180 - AttributeError: module 'numpy' has no attribute 'float'", unfortunately.

@bikegeek bikegeek marked this pull request as draft January 12, 2023 21:32
@bikegeek bikegeek marked this pull request as ready for review January 12, 2023 21:37
Copy link
Collaborator

@jprestop jprestop left a comment

Choose a reason for hiding this comment

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

Hi @bikegeek. I checked out the updates and ran the tests on Acorn. I'm happy to report that test_lon_360_to_180.py along with the others all passed. I approve this request. Sorry for the delay in approval.

@bikegeek bikegeek merged commit ed9921d into main_v2.0 Jan 18, 2023
@bikegeek bikegeek deleted the bugfix_251_test_scorecard branch January 26, 2023 21:17
bikegeek added a commit that referenced this pull request Feb 23, 2023
* Bump pillow from 8.3.2 to 9.3.0 (#260)

Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.3.2 to 9.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@8.3.2...9.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bugfix 251 test scorecard (#256)

* Replace Python versions 3.8.6 and 3.8.12 with 3.8

* Bugfix #251 replace SettingWithCopyWarning with Warning.  SettingWithCopyWarning no longer available for this check

* Adding double asterisks to end bolding on mulitple lines

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* bugfix_249_warnings (#261)

* Update unit_tests.yml

replace 3.8.6 and 3.8.12 with 3.8 for Python because latest version of ubuntu does not have support for python 3.8.6

* Feature 251 test scorecard (#253)

* Issue #251 In Pandas 1.3 and above, the SettingWithCopy Warning category has been removed.  Replace the check for category=SettingWithCopyWarning with Warning, since SettingWithCopyWarning is a subclass of Warning

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Feature 250 test event equalize (#252)

* Remove Python 3.8.6 and 3.8.12 and use Python 3.8 instead.  The latest version of ubuntu no longer has python 3.8.6 available.

* Issue #250 fix the test_equalize_axis_data_no_fcst_var fixture

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

* #251 allow test to run check on numpy types regardless of numpy version

* Update unit_tests.yml

add python 3.10 to testing to evaluate package compatibility

* Update unit_tests.yml

remove Python 3.10 there are issues with HDF5

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Delete requirements_36.txt

Python 3.6 no longer supported

* #249 Add test_future_warnings test

* #249 additional sample data

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/22

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/20

* #249 replacing pd.append with pd.concat and adding tests and data

* #249 added tests

* #249 Additional test data

* Revert "Merge branch 'develop' of https://github.com/dtcenter/METcalcpy into bugfix_249_warnings"

This reverts commit 7f203bf, reversing
changes made to dd87d77.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Adding file based on testing on Acorn for NCO (#265)

* Per #267, updating modulefiles

* Adding script for testing on WCOSS2

* Correcting filename

* Bugfix release (#272)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>
bikegeek added a commit that referenced this pull request Feb 23, 2023
* Delete requirements_36.txt

Python 3.6 no longer supported

* #249 Add test_future_warnings test

* #249 additional sample data

* Bugfix Issue #249 Future Warnings- replace append with pd.concat

* Bugfix issue #249 add the test for future warnings

* Bugfix #249 additional data

* Bugfix Issue #249 additional data that wasn't previously committed

* Bugfix #249 add sum stat import

* Bugfix #249 added workflow to check for Python package vulnerabilities

* Updated requirements.txt for nco and all others

* issue #249 add imports to pandas and warning

* Bugfix 249 future warnings (#280)

* Bump pillow from 8.3.2 to 9.3.0 (#260)

Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.3.2 to 9.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@8.3.2...9.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bugfix 251 test scorecard (#256)

* Replace Python versions 3.8.6 and 3.8.12 with 3.8

* Bugfix #251 replace SettingWithCopyWarning with Warning.  SettingWithCopyWarning no longer available for this check

* Adding double asterisks to end bolding on mulitple lines

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* bugfix_249_warnings (#261)

* Update unit_tests.yml

replace 3.8.6 and 3.8.12 with 3.8 for Python because latest version of ubuntu does not have support for python 3.8.6

* Feature 251 test scorecard (#253)

* Issue #251 In Pandas 1.3 and above, the SettingWithCopy Warning category has been removed.  Replace the check for category=SettingWithCopyWarning with Warning, since SettingWithCopyWarning is a subclass of Warning

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Feature 250 test event equalize (#252)

* Remove Python 3.8.6 and 3.8.12 and use Python 3.8 instead.  The latest version of ubuntu no longer has python 3.8.6 available.

* Issue #250 fix the test_equalize_axis_data_no_fcst_var fixture

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

* #251 allow test to run check on numpy types regardless of numpy version

* Update unit_tests.yml

add python 3.10 to testing to evaluate package compatibility

* Update unit_tests.yml

remove Python 3.10 there are issues with HDF5

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Delete requirements_36.txt

Python 3.6 no longer supported

* #249 Add test_future_warnings test

* #249 additional sample data

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/22

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/20

* #249 replacing pd.append with pd.concat and adding tests and data

* #249 added tests

* #249 Additional test data

* Revert "Merge branch 'develop' of https://github.com/dtcenter/METcalcpy into bugfix_249_warnings"

This reverts commit 7f203bf, reversing
changes made to dd87d77.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Adding file based on testing on Acorn for NCO (#265)

* Per #267, updating modulefiles

* Adding script for testing on WCOSS2

* Correcting filename

* Bugfix release (#272)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>
fisherhucar added a commit that referenced this pull request Feb 23, 2023
* Delete requirements_36.txt

Python 3.6 no longer supported

* #249 Add test_future_warnings test

* #249 additional sample data

* Bugfix Issue #249 Future Warnings- replace append with pd.concat

* Bugfix issue #249 add the test for future warnings

* Bugfix #249 additional data

* Bugfix Issue #249 additional data that wasn't previously committed

* Bugfix #249 add sum stat import

* Bugfix #249 added workflow to check for Python package vulnerabilities

* Updated requirements.txt for nco and all others

* issue #249 add imports to pandas and warning

* Bugfix 249 future warnings (#280)

* Bump pillow from 8.3.2 to 9.3.0 (#260)

Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.3.2 to 9.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](python-pillow/Pillow@8.3.2...9.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bugfix 251 test scorecard (#256)

* Replace Python versions 3.8.6 and 3.8.12 with 3.8

* Bugfix #251 replace SettingWithCopyWarning with Warning.  SettingWithCopyWarning no longer available for this check

* Adding double asterisks to end bolding on mulitple lines

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* bugfix_249_warnings (#261)

* Update unit_tests.yml

replace 3.8.6 and 3.8.12 with 3.8 for Python because latest version of ubuntu does not have support for python 3.8.6

* Feature 251 test scorecard (#253)

* Issue #251 In Pandas 1.3 and above, the SettingWithCopy Warning category has been removed.  Replace the check for category=SettingWithCopyWarning with Warning, since SettingWithCopyWarning is a subclass of Warning

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Feature 250 test event equalize (#252)

* Remove Python 3.8.6 and 3.8.12 and use Python 3.8 instead.  The latest version of ubuntu no longer has python 3.8.6 available.

* Issue #250 fix the test_equalize_axis_data_no_fcst_var fixture

* Added ending asterisks for end bold to fix these warnings: WARNING: Inline strong start-string without end-string.

* #251 allow test to run check on numpy types regardless of numpy version

* Update unit_tests.yml

add python 3.10 to testing to evaluate package compatibility

* Update unit_tests.yml

remove Python 3.10 there are issues with HDF5

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Delete requirements_36.txt

Python 3.6 no longer supported

* #249 Add test_future_warnings test

* #249 additional sample data

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/22

* Update requirements.txt

https://github.com/dtcenter/METcalcpy/security/dependabot/20

* #249 replacing pd.append with pd.concat and adding tests and data

* #249 added tests

* #249 Additional test data

* Revert "Merge branch 'develop' of https://github.com/dtcenter/METcalcpy into bugfix_249_warnings"

This reverts commit 7f203bf, reversing
changes made to dd87d77.

Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>

* Adding file based on testing on Acorn for NCO (#265)

* Per #267, updating modulefiles

* Adding script for testing on WCOSS2

* Correcting filename

* Bugfix release (#272)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
Co-authored-by: Hank Fisher <fisherh@ucar.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
METcalcpy: General priority: high High Priority requestor: METplus Team METplus Development Team requestor: NOAA/other NOAA Laboratory, not otherwise specified
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants