Skip to content

De-noise CI output #1294

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

Merged
merged 11 commits into from
Sep 10, 2021
Merged

De-noise CI output #1294

merged 11 commits into from
Sep 10, 2021

Conversation

kandersolar
Copy link
Member

@kandersolar kandersolar commented Aug 25, 2021

  • [ ] Closes #xxxx
  • I am familiar with the contributing guidelines
  • [ ] Tests added
  • [ ] Updates entries to docs/sphinx/source/api.rst for API changes.
  • [ ] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
  • [ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

It's annoying to scroll through what seems like np.inf lines of warnings in the CI output. Try finding anything in this mess: https://dev.azure.com/solararbiter/pvlib%20python/_build/results?buildId=5455&view=logs&j=fc432b8b-e2e3-594e-d8b1-15597b6c1d62&t=309866e1-2cf4-5f00-3d0a-999fc3a0f279

Seems like I'm not the only one annoyed by it, see @wholmgren's #1287 (comment)

the output of the CI is nearly impossible to parse right now

Probably a lot of it comes from our dependencies, but at least some of it can get fixed here. Might be worth suppressing some of the noisier warnings from our dependencies if we can't do anything about it.

I assume there's no need to get this into 0.9.0 so I'm not rushing to get this one done.

@kandersolar kandersolar changed the title [WIP] De-noise CI output De-noise CI output Sep 7, 2021
@kandersolar kandersolar marked this pull request as ready for review September 7, 2021 23:46
@kandersolar
Copy link
Member Author

I guess this is ready for review. Compare a log from before and after this PR.

Remaining warnings are mostly numpy "invalid value"/"divide by zero encountered in true_divide" warnings, which I'm inclined to not suppress here, but I could be convinced otherwise.

('2019-01-01T15:00-0500', 17.296785, 217.446538, 39.562, 39.562),
('2019-01-01T16:00-0500', 9.461862, 229.102218, 61.587, 32.339),
('2019-01-01T17:00-0500', 0.524817, 239.330401, 79.530, 5.490)],
[('2019-01-01T13:00', 2.404287, 122.79177, -84.440, -10.899),
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit surprised by this change. I'm sure it works but for style and clarity I would think including the timezone is better.

Copy link
Member

Choose a reason for hiding this comment

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

Can we use DataFrame, assert_series_equal, and assert_frame_equal instead of array and assert_allclose? I think that would be more aligned with typical use cases and would solve the timezone problem.

Copy link
Member Author

Choose a reason for hiding this comment

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

Some context here regarding numpy datetimes and timezones: https://numpy.org/doc/stable/release/1.11.0-notes.html#datetime64-changes

setup.cfg Outdated
Comment on lines 36 to 37
ignore:`np.typeDict` is a deprecated alias:DeprecationWarning:.*tables:
Copy link
Member

Choose a reason for hiding this comment

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

do we still need these?

Copy link
Member

@wholmgren wholmgren left a comment

Choose a reason for hiding this comment

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

Thanks @kanderso-nrel!

@wholmgren wholmgren added this to the 0.9.1 milestone Sep 10, 2021
@wholmgren wholmgren merged commit 2f08db1 into pvlib:master Sep 10, 2021
@kandersolar kandersolar deleted the warnings_cleanup branch September 10, 2021 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants