(FACT-3121) Detect Illumos (SmartOS/OmniOS) LX virtualization#2492
(FACT-3121) Detect Illumos (SmartOS/OmniOS) LX virtualization#2492mhashizume merged 1 commit intopuppetlabs:mainfrom
Conversation
|
Can one of the admins verify this patch? |
f5d7556 to
31ba894
Compare
|
(Hmm, the test failures don't seem to be related to the changes in this PR.) |
bahamat
left a comment
There was a problem hiding this comment.
Hi, I’m one of the maintainers for SmartOS. It looks to me like the behavior presented here is desirable from our perspective. (Though, I have not evaluated this code functionally, I’ll leave that to those who are more familiar).
|
Hi, @joshcooper. I saw that you merged some PRs in this repo over the last few months. Are you available to review this PR sometime soon? |
|
Closing and reopening to retrigger tests |
|
Hi @smokris , thank you for your contribution and sorry for the delay. Would you be able to rebase you PR and resolve the conflict? Thank yoU! |
a6107cb to
d959b40
Compare
|
@mhashizume, yes, I pushed d959b40 a few minutes ago, in which I've rebased onto current |
d959b40 to
430d549
Compare
|
GitHub CI is running the tests in a different random order each time, and the tests were failing intermittently depending on the order they ran. For example, If I understand correctly, the problem was that, if the test calls a resolver that isn't mocked, then the resolver will execute on the current system and cache its results (rather than merely returning the mocked results without caching), and the cached results break subsequent tests (even if mocked). I pushed 430d549, which I think adds all the necessary mocks to enable the tests to pass regardless of order. |
mhashizume
left a comment
There was a problem hiding this comment.
Thank you for your contribution @smokris !
|
Closing and reopening to pick up new check |
See https://tickets.puppetlabs.com/browse/FACT-3121.
Facter uses
virt-what's output which islxc(onvirt-what1.20) or null (onvirt-what1.21+), so I addedcheck_illumos_lxprior toretrieve_from_virt_what.