Skip to content

Conversation

@dstandish
Copy link
Contributor

No description provided.

@dstandish dstandish added the disable warnings Run pytest with --disable-warnings label Dec 2, 2022

LOW_MEMORY_CONDITION = 8 * 1024 * 1024 * 1024

DISABLE_WARNINGS_LABEL = "disable warnings"
Copy link
Member

@potiuk potiuk Dec 2, 2022

Choose a reason for hiding this comment

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

I believ we wanted to "enable warnings" by label so that they are hidden by default ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

even better --- i thought you wanted them there by default

Copy link
Member

Choose a reason for hiding this comment

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

Not really. I think it was more of @uranusjr's quest to fix them and I think he turned them on in the first place, for that reason, but I think indeed this should be more ore less dedicated effort to remove them and showing them by default when we have many of them do not play well with GitHub UI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, i agree. i also appreciate the desire to squash those warnings. there's a lot of noise... and if it shows up in the tests, probably a lot of it shows up for users.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

One nit, one doubt.

I like it this way - i wanted to do it via selective-checks, but this way is indeed simpler and easy to add other test variations this way.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

With nit for splitting.

Copy link
Member

@ashb ashb left a comment

Choose a reason for hiding this comment

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

Let's not? Let's remove/fix the warnings instead?

@potiuk
Copy link
Member

potiuk commented Dec 3, 2022

@ashb - Absolutely. I'd'love that.

What do you propose exactly ? How do you think we can improve curent situation?

Currently the warnings are printed and besides slowing the ways how people can se their test failures, they don't do much - that's the nature of warnings. It's lile that for quite some time.

I have my own idea but it's quite disruptive and might be difficult to accept so I would love to hear, maybe others have better ideas before I bias them with mine.

@ashb
Copy link
Member

ashb commented Dec 3, 2022

My idea is a Two phase approach, similar to how we did... Typing? in the past. And I call it a ratchet.

The first step is to capture how many warnings each test file produces, and then we fail ci if any new warnings are issued.

The next step is once a file doesn't have any warnings there is a way of making pytest treat warnings as failure (I think we do it in one place in our test site right now).

I noticed the sheer number of warnings when looking at the bug fix for rc3: it's way up from where I remember it, and it was only my list to look at next week. I suspect over half are from one of two helper funcs in our test suite!

@potiuk
Copy link
Member

potiuk commented Dec 3, 2022

Yes. This is good idea :).

@potiuk
Copy link
Member

potiuk commented Dec 5, 2022

Closing as we have better solution in #28096 . But .. follow up on actually fixing the warnings is a good idea :)

@potiuk potiuk closed this Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools disable warnings Run pytest with --disable-warnings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants