Skip to content

ENT-3759: Test on GitHub Actions#3192

Merged
jirihnidek merged 2 commits intomainfrom
mhorky/ENT-3759_actions
Jan 26, 2023
Merged

ENT-3759: Test on GitHub Actions#3192
jirihnidek merged 2 commits intomainfrom
mhorky/ENT-3759_actions

Conversation

@m-horky
Copy link
Contributor

@m-horky m-horky commented Jan 16, 2023

  • Card ID: ENT-3759

@cnsnyder cnsnyder requested review from a team and jirihnidek and removed request for a team January 16, 2023 14:02
@m-horky m-horky force-pushed the mhorky/ENT-3759_actions branch 2 times, most recently from fd04b58 to 7358a48 Compare January 19, 2023 12:38
@m-horky m-horky marked this pull request as ready for review January 19, 2023 12:41
@cnsnyder cnsnyder requested a review from a team January 19, 2023 12:42
Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

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

Looks like a good start!

I left some minor notes & questions here and there, nothing too problematic IMHO.

include:
- name: "CentOS Stream 9"
image: "quay.io/centos/centos:stream9"
pytest_args: '--deselect test/rhsmlib/facts/test_hwprobe.py::HardwareProbeTest::test_networkinfo --deselect test/rhsmlib_test/test_facts.py::TestFactsDBusObject::test_GetFacts'
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm the second path (test/rhsmlib_test/test_facts.py) does not exist; i guess the second --deselect can be dropped altogether?

Copy link
Contributor

Choose a reason for hiding this comment

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

This class and method is located in the following file: test/rhsmlib/dbus/test_facts.py. If there is good reason to not run following unit tests, then this reason should be shared in the comment of the code.

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, the directory name differs between main and 1.28, it slipped in by accident.
That D-Bus' test_GetFacts runs full fact collection, and it was triggering the same error as the test_networkinfo. I'll add it to the comment below so it is clear.

Copy link
Contributor

Choose a reason for hiding this comment

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

though, if it worked in the first revision, then most likely the exclusion of test_GetFacts is not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's difficult to say, sometimes it crashes, sometimes it does not. Whole segfault is not 100% reproducible, sometimes it politely errors out with OSError. I'd rather keep it here, to prevent false negatives.

name="get_virt_info",
)
cls.patches["get_virt_info"] = get_virt_info_patch.start()
cls.patches["get_virt_info"].return_value = {}
Copy link
Contributor

Choose a reason for hiding this comment

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

this is set later in setUp(): it seems to me that the value there is static, so i think it'd be better to move that here instead; can you please add it as separate commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd rather do it in some completely separate PR, but sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah sure, separate PR is what I had in mind -- waiting for it ;)

Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

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

I like it! 👍 I have few comments notes and suggestions too.

include:
- name: "CentOS Stream 9"
image: "quay.io/centos/centos:stream9"
pytest_args: '--deselect test/rhsmlib/facts/test_hwprobe.py::HardwareProbeTest::test_networkinfo --deselect test/rhsmlib_test/test_facts.py::TestFactsDBusObject::test_GetFacts'
Copy link
Contributor

Choose a reason for hiding this comment

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

This class and method is located in the following file: test/rhsmlib/dbus/test_facts.py. If there is good reason to not run following unit tests, then this reason should be shared in the comment of the code.

@m-horky m-horky force-pushed the mhorky/ENT-3759_actions branch from 7358a48 to 48b5723 Compare January 25, 2023 13:19
Function 'setUp()' was overwriting the dictionary set in 'setUpClass()'
on every run for no good reason.
@m-horky m-horky force-pushed the mhorky/ENT-3759_actions branch from 48b5723 to 6187394 Compare January 25, 2023 14:51
Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I'll let Jirka review this as well, as he had notes previously.

Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

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

ACK

@jirihnidek jirihnidek merged commit 5d188e5 into main Jan 26, 2023
@jirihnidek jirihnidek deleted the mhorky/ENT-3759_actions branch January 26, 2023 20:26
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.

3 participants