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

run black on PR and fix formatting issues in autogenerate_pipeline.py #162

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

stefano-garzarella
Copy link
Member

@stefano-garzarella stefano-garzarella commented Sep 2, 2024

Summary of the PR

The last commit made black unhappy.
Let's fix the formatting issues suggested by black and run it on every PR to avoid this issue in the future.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

roypat
roypat previously approved these changes Sep 2, 2024
.buildkite/autogenerate_pipeline.py Show resolved Hide resolved
@roypat
Copy link
Collaborator

roypat commented Sep 2, 2024

oh, I just noticed that we actually have a black github action. But why does it run after merge instead of on PRs? :o Should we change

to be on: pull_request instead? 🤔

@stefano-garzarella
Copy link
Member Author

oh, I just noticed that we actually have a black github action. But why does it run after merge instead of on PRs? :o Should we change


to be on: pull_request instead? 🤔

I was going to ask, I'm pretty sure I already fixed some other issue in the past years, and maybe asked the same, but didn't find anything.

@roypat
Copy link
Collaborator

roypat commented Sep 2, 2024

oh, I just noticed that we actually have a black github action. But why does it run after merge instead of on PRs? :o Should we change

to be on: pull_request instead? 🤔

I was going to ask, I'm pretty sure I already fixed some other issue in the past years, and maybe asked the same, but didn't find anything.

Ahhh, yeah, now I see. I completely misunderstood you on the other issue last year, sorry! Let's just move this github action to run on PRs instead of post-merge then. I really don't see a good reason why we shouldnt (we check formatting pre-merge on all other repos after all), and it already caused it to have to do fix up PRs at least twice now

@stefano-garzarella
Copy link
Member Author

@roypat yeah, I'm going to add a commit to this PR

@stefano-garzarella stefano-garzarella changed the title autogenerate_pipeline.py: fix formatting issues run black on PR and fix formatting issues in autogenerate_pipeline.py Sep 2, 2024
@TimePrinciple
Copy link
Contributor

Should we wait until this is merged, and then upgrade kvm-bindings's CI? I saw the version bump on kvm-bindings is about to be merged

@stefano-garzarella
Copy link
Member Author

Should we wait until this is merged, and then upgrade kvm-bindings's CI? I saw the version bump on kvm-bindings is about to be merged

This is just a fix for a formatting issue, so IMHO it doesn't really matter.

The last commit made `black` unhappy.
Let's fix the formatting issues suggested by `black`.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
It's happening quite often to have CI broken on the main branch
because we only run `black` on merges, to prevent these problems,
let's run `black` or PR as well.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
@stefano-garzarella
Copy link
Member Author

Just rebased since our CI on main is still red, @andreeaflorescu @lauralt @sameo @ShadowCurse please, can you take a look?

@ShadowCurse ShadowCurse merged commit 438f36e into rust-vmm:main Sep 6, 2024
3 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.

4 participants