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

Unit-tests fixes #2717

Merged
merged 3 commits into from
Jul 15, 2022
Merged

Unit-tests fixes #2717

merged 3 commits into from
Jul 15, 2022

Conversation

giggsoff
Copy link
Contributor

Several fixes for unit tests:

  1. Seems we have problem with workerpool test as GC may run or not run in
    the background in time of check for workers count. Let's spread the test
    work in time and add sleep according to GC intervals.
  2. We should not use current directory for pubsub in test as it will be
    mounted and we potentially (for example on MacOS) will not have
    possibility to use sockets there
  3. We use pci addresses in tests and potentially can intersect with HW
    which is not expected, i.e. I can see errors in
    TestCreateDomConfig/amd64-fml and TestPciLongExists when I have 03:00.0
    on device. Let's try to avoid it using bus number from the end of
    possible values.

giggsoff added 3 commits July 14, 2022 11:58
Seems we have problem with workerpool test as GC may run or not run in
the background in time of check for workers count. Let's spread the test
 work in time and add sleep according to GC intervals.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
We should not use current directory for pubsub in test as it will be
mounted and we potentially (for example on MacOS) will not have
possibility to use sockets there.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
We use pci addresses in tests and potentially can intersect with HW
which is not expected, i.e. I can see errors in
TestCreateDomConfig/amd64-fml and TestPciLongExists when I have 03:00.0
on device. Let's try to avoid it using bus number from the end of
possible values.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
@zedi-pramodh
Copy link

@rvs please approve this PR so that #2715 can proceed.

@ghost ghost self-requested a review July 14, 2022 15:30
Copy link
Contributor

@rvs rvs left a comment

Choose a reason for hiding this comment

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

LGTM

@rvs rvs merged commit 8f6e6c4 into lf-edge:master Jul 15, 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.

4 participants