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

Enhance UpdateReadyForTesting message to be more like the others #4381

Merged
merged 2 commits into from
Feb 25, 2022

Conversation

AdamWill
Copy link
Contributor

The UpdateReadyForTesting message is an odd duck. It was first
made much like all the other update messages, but then changed
to look completely different in response to the requirements of
the CI team:

https://pagure.io/fedora-ci/general/issue/70

If anyone had bothered to ask, I would've said that the QA team
would quite like for the message to look just like all the
others, since we'd already implemented openQA test scheduling
based on the other messages, and this custom format does not
include some information that is useful for that scheduling,
such as whether the update is in the critical path.

In an attempt to keep everyone happy, this replaces message V1
with V2, which inherits from V1 but also inherits from
UpdateMessage and adds the 'update' property that all the other
update messages have.

Signed-off-by: Adam Williamson awilliam@redhat.com

@AdamWill AdamWill requested a review from a team as a code owner February 11, 2022 23:19
@AdamWill
Copy link
Contributor Author

Note: I sent this as a PR to get the tests run, as I cannot manage to run them locally. The virtualenv guide seems hopelessly outdated and vagrant up on Rawhide fails immediately with a ruby error I have no idea how to parse.

@AdamWill AdamWill force-pushed the update-ready-improve branch from be8fc4b to 08a765c Compare February 11, 2022 23:23
@lgtm-com
Copy link

lgtm-com bot commented Feb 11, 2022

This pull request introduces 1 alert when merging 08a765c into 2cd1d44 - view on LGTM.com

new alerts:

  • 1 for Conflicting attributes in base classes

@AdamWill AdamWill force-pushed the update-ready-improve branch 2 times, most recently from 4d36398 to e99af60 Compare February 11, 2022 23:43
@lgtm-com
Copy link

lgtm-com bot commented Feb 11, 2022

This pull request introduces 1 alert when merging e99af60 into 2cd1d44 - view on LGTM.com

new alerts:

  • 1 for Conflicting attributes in base classes

@AdamWill AdamWill force-pushed the update-ready-improve branch from e99af60 to 72acad9 Compare February 11, 2022 23:57
@AdamWill
Copy link
Contributor Author

On second thoughts, dropped the double inheritance. Inheriting from UpdateMessage isn't getting us a lot when we prefer the UpdateReadyForTestingV1 implementation of all the methods they share. This resolves the lgtm alert.

@AdamWill AdamWill force-pushed the update-ready-improve branch 2 times, most recently from b6a2b35 to 84ae08a Compare February 12, 2022 01:11
@AdamWill
Copy link
Contributor Author

For the record, there's a bug in CI somewhere. At this point (84ae08a) the CI claims everything passed, but the messages unit tests actually failed: https://github.com/fedora-infra/bodhi/runs/5164343499?check_suite_focus=true

Somehow the returncode of the test run is coming back as 0 (that's why we see f35-unit : SUCCESS! near the bottom) even though the pytest command clearly fails. But I can't see why.

@AdamWill
Copy link
Contributor Author

CI bug: #4382 . I sent a PR to fix it: #4383 . This version of this PR really does pass the unit tests.

@mattiaverga
Copy link
Contributor

Can you drop a note in the news directory so that this change will be listed in the release notes? I think this should be listed as backward incompatible change https://bodhi.fedoraproject.org/docs/developer/#release-notes

Everything else seems fine to me.

@AdamWill
Copy link
Contributor Author

Is it backward incompatible, though? The only way I can see it being backward incompatible is if someone somehow relied on these messages not having an update dict, which seems unlikely. They still have everything they had before, they just have...more.

I can do it that way if you like, just seemed a bit odd.

@mattiaverga
Copy link
Contributor

You're right, it is not backward incompatible, my fault. Just a note to announce the new field it's ok.

The UpdateReadyForTesting message is an odd duck. It was first
made much like all the other update messages, but then changed
to look completely different in response to the requirements of
the CI team:

https://pagure.io/fedora-ci/general/issue/70

If anyone had bothered to ask, I would've said that the QA team
would quite like for the message to look just like all the
others, since we'd already implemented openQA test scheduling
based on the other messages, and this custom format does not
include some information that is useful for that scheduling,
such as whether the update is in the critical path.

In an attempt to keep everyone happy, this replaces message V1
with V2, which inherits from V1 and adds the 'update' property
that all the other update messages have.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@AdamWill AdamWill force-pushed the update-ready-improve branch from d310540 to 11ef6e5 Compare February 25, 2022 00:32
@AdamWill
Copy link
Contributor Author

How's that?

Copy link
Contributor

@mattiaverga mattiaverga left a comment

Choose a reason for hiding this comment

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

👍 IMO

@mergify mergify bot merged commit 37738b2 into fedora-infra:develop Feb 25, 2022
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.

2 participants