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

Normalise refs before passing to turbo-affected #8991

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

angusbayley
Copy link
Contributor

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

This was a (hopefully the) missing piece from yesterday's merge queue switch-on. Git refs need to normalised, i.e. the refs/heads/ substring needs to be removed, before passing to turbo. This PR implements that.

Here's a PR that shows this working. The clean-refs step is mostly copy-pasted from the clean-refs step that is already in this repo's turbo-affected-reusable workflow (it adds in variable definitions that this repo's turbo-affected-reusable workflow receives when it is run).

Here's the check that runs during the PR CI. Here's the check that runs on the merge group. It helps to get those 2 runs up side by side. You want to compare the "echo vars" and the "echo sanitized vars" steps for each run. This shows both that

  • github passes different format refs for PRs and Merge Groups
  • sanitization function correctly normalises them

This is what we need to fix the ambiguous refs issue from yesterday's merge group check.

Copy link

vercel bot commented Jan 23, 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) Jan 23, 2025 4:02pm
native-ui-storybook ⬜️ Ignored (Inspect) Jan 23, 2025 4:02pm
react-ui-storybook ⬜️ Ignored (Inspect) Jan 23, 2025 4:02pm
web-tools ⬜️ Ignored (Inspect) Jan 23, 2025 4:02pm

@live-github-bot live-github-bot bot added the automation CI/CD stuff label Jan 23, 2025
@lewisd5 lewisd5 self-requested a review January 23, 2025 16:34
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.

2 participants