Skip to content

ci: Fix workflows to play nicely with merge queues - #369

Merged
leandro-lucarella-frequenz merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:test-event
Apr 28, 2023
Merged

ci: Fix workflows to play nicely with merge queues#369
leandro-lucarella-frequenz merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:test-event

Conversation

@leandro-lucarella-frequenz

@leandro-lucarella-frequenz leandro-lucarella-frequenz commented Apr 28, 2023

Copy link
Copy Markdown
Contributor

The previous PR was merged unintentionally having some debug code and hacky (and wrong) conditions.

We actually don't need to test any pushes to gh-readonly-queue/** branches, we only need to test the merge (merge_group event).

@leandro-lucarella-frequenz
leandro-lucarella-frequenz requested a review from a team as a code owner April 28, 2023 08:48
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz force-pushed the test-event branch 2 times, most recently from 8f973a2 to 9ab80c0 Compare April 28, 2023 08:54
@leandro-lucarella-frequenz
leandro-lucarella-frequenz added this pull request to the merge queue Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz removed this pull request from the merge queue due to a manual request Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz force-pushed the test-event branch 2 times, most recently from 122ba6b to 53455a6 Compare April 28, 2023 08:59
@leandro-lucarella-frequenz
leandro-lucarella-frequenz added this pull request to the merge queue Apr 28, 2023
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz added this pull request to the merge queue Apr 28, 2023
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz added this pull request to the merge queue Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz removed this pull request from the merge queue due to a manual request Apr 28, 2023
llucax added 2 commits April 28, 2023 12:24
We now exclude testing the branches `gh-readonly-queue/**` as these are
the pushes GitHub does when "adding" PRs to a merge queue. We only want
to test the merge commit of a queue, to make sure all PRs included in
that merge play well together.

With this we can also remove the (wrong) hacky `if` conditions in
`test-generate-docs` and `publish-docs`.

Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
Signed-off-by: Leandro Lucarella <leandro.lucarella@frequenz.com>
@leandro-lucarella-frequenz leandro-lucarella-frequenz changed the title Test event ci: Fix workflows to play nicely with merge queues Apr 28, 2023
@leandro-lucarella-frequenz leandro-lucarella-frequenz added the type:bug Something isn't working label Apr 28, 2023
@leandro-lucarella-frequenz leandro-lucarella-frequenz added this to the v0.21.0 milestone Apr 28, 2023
@leandro-lucarella-frequenz

Copy link
Copy Markdown
Contributor Author

OK, I polished and rebranded this PR, in my tests it seems to work correctly now. I enabled auto-merge when it is approved, this time it should be merged for real. But this time before approving, please actually review 😄

@leandro-lucarella-frequenz
leandro-lucarella-frequenz added this pull request to the merge queue Apr 28, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit bc48e01 Apr 28, 2023
@leandro-lucarella-frequenz
leandro-lucarella-frequenz deleted the test-event branch April 28, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

5 participants