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

Update workflows to run merge queue on GH runners #8863

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

angusbayley
Copy link
Contributor

@angusbayley angusbayley commented Jan 10, 2025

Part of https://ledgerhq.atlassian.net/browse/LIVE-14748

Updates our workflows so that build-and-test-pr workflows are run on Github runners if the triggering event is a merge queue group. This anticipates the activation of a merge queue on develop, as has been done in the device-sdk-ts repo.

Testing this PR will be tricky.

  1. to test the merge_queue path we will need to have the merge queue activated, and we will need to see the merge queue issue a merge_group webhook, at which point we will need to confirm that all the affected jobs
    a) run on the correct runners
    b) run without error
  2. to test the normal path we will need to see build-and-test-pr run in a PR checks setting (pre-merge-queue) and ensure that:
    a) run on the original runners (same as they do today)
    b) run without error

# 2 is easier to test because it'll come for free in the pre-merge PR checks while testing # 1.

I recommend we do testing late in the evening at the end of a workday, announcing to #live-engineering in advance, or at a weekend. An alternative is to create a clone/fork of the entire ledger-live repo, configure it as per ledger-live (may take some time) and run a dry run rehearsal, but I think that has the potential to turn really quite complex and end up taking much more time than we want to spend on this. Therefore, merge strategy is to merge at the end of a workday, in advance of an end-of-workday session where we turn on the merge queue and validate that it works.

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 11:28am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 11:28am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 11:28am
web-tools ⬜️ Ignored (Inspect) Visit Preview Jan 10, 2025 11:28am

@live-github-bot live-github-bot bot added the automation CI/CD stuff label Jan 10, 2025
@angusbayley angusbayley marked this pull request as ready for review January 10, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation CI/CD stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant