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

More Distros for Pull-Request Workflow #765

Merged
merged 4 commits into from
Aug 16, 2023
Merged

Conversation

gierens
Copy link
Contributor

@gierens gierens commented Aug 15, 2023

This does three things:

  1. As suggested in Add another lspci test output variant #761 this adds a job for Arch Linux (base 20230723.0.166908), but since I was already at it also Debian 11 bullseye and Debian 12 bookworm, to the pull request workflow.

  2. During testing I stumbled across a linting error thrown by the newer flake8 version in the Arch job, see
    Screenshot from 2023-08-15 16-06-34
    I altered the mentioned equality checks in test/py/libvfio_user.py to fix this.

  3. It also bumps the version of Github Actions to v3 in all workflows. v2 will apparently be deprecated over the summer, see https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ and
    Screenshot from 2023-08-15 16-36-55

I already tested this on my own runner, see https://github.com/gierens/libvfio-user/actions/runs/5868047364 or
Screenshot from 2023-08-15 16-35-27
seems to work. I'm also a bit surprised how fast the arch job is.

Node12 and as a result Github Actions v2 will apparently soon be
deprecated, see: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Thus this changes all workflow jobs to use `actions/checkout@v3`.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
This adds jobs to `.github/workflows/pull_request.yml` for Debian 11
bullseye, Debian 12 bookworm and Arch Linux base 20230723.0.166908.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
The newer flake8 version in the arch linux job of the pull request
workflow fails due to:

E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

Both `__eq__` functions now use `is not` instead of `!=` for the type
initial check.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Copy link
Collaborator

@swapnili swapnili left a comment

Choose a reason for hiding this comment

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

thanks

@swapnili swapnili requested a review from jlevon August 15, 2023 17:09
@jlevon
Copy link
Collaborator

jlevon commented Aug 15, 2023

thanks! Could you also add these to required status checks in settings.yml?

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
@jlevon jlevon merged commit cfb7d90 into nutanix:master Aug 16, 2023
8 checks passed
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