Skip to content

Build lambda ARM64 artifact on edge builds to main#6569

Merged
guilload merged 1 commit into
mainfrom
paul-masurel/build-lambda-on-main-edge
Jul 1, 2026
Merged

Build lambda ARM64 artifact on edge builds to main#6569
guilload merged 1 commit into
mainfrom
paul-masurel/build-lambda-on-main-edge

Conversation

@fulmicoton-dd

Copy link
Copy Markdown
Collaborator

Summary

  • build-lambda previously only ran on tag-triggered releases (if: github.ref_type == 'tag'); pushes to main fell back to the pinned lambda URL and never produced a fresh binary.
  • Aligns the trigger with docker/merge so edge builds on main also build and package a fresh lambda ARM64 artifact.
  • Fixes ASSET_VERSION extraction to handle branch pushes (previously only stripped the refs/tags/ prefix, leaving refs/heads/main unchanged); branch builds now get edge-<short-sha>.

Test plan

  • Verify a push to main triggers Build Lambda ARM64 and it completes successfully
  • Verify tag-triggered releases still build/tag the lambda artifact as before

Aligns the lambda build trigger with the docker/merge jobs so main
pushes produce a fresh lambda binary for edge images, instead of only
tag-triggered releases.
@fulmicoton-dd fulmicoton-dd force-pushed the paul-masurel/build-lambda-on-main-edge branch from a523c70 to e412951 Compare July 1, 2026 16:20
@fulmicoton-dd fulmicoton-dd requested a review from guilload July 1, 2026 16:20
@fulmicoton-dd fulmicoton-dd marked this pull request as ready for review July 1, 2026 16:20
@fulmicoton-dd fulmicoton-dd requested a review from a team as a code owner July 1, 2026 16:20

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e412951577

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

if: github.ref_type == 'tag'
# Build a fresh lambda for tag-triggered releases and edge builds on main.
# workflow_dispatch and other branches fall back to the pinned URL in build.rs.
if: github.ref_type == 'tag' || (github.ref_type == 'branch' && github.ref == 'refs/heads/main')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep manual main dispatches on the pinned lambda

For workflow_dispatch runs launched from main, GitHub still sets github.ref_type to branch and github.ref to refs/heads/main, so this condition runs build-lambda even though the adjacent comment says manual dispatches should fall back to the pinned URL. Because docker now needs this job, a manually triggered Docker publish from main becomes blocked by the ARM64 lambda build and will skip entirely if that extra build fails; add a github.event_name == 'push' guard to the main-branch side if only push edge builds should build the fresh lambda.

Useful? React with 👍 / 👎.

push:
branches:
# Triggers an edge build, gated behind manual approval of the "production" environment.
- main

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the release-0.9 Docker publish path

This workflow no longer matches pushes to release-0.9, while the same change also removes the only v0.9.0-rc metadata tag rule and I found no remaining release-0.9/v0.9.0-rc publisher elsewhere in the repo. Any push that previously refreshed the RC Docker image from that branch will now produce no image at all, so keep the branch/tag rule unless decommissioning that release stream is intentional.

Useful? React with 👍 / 👎.

@guilload guilload merged commit 735277b into main Jul 1, 2026
9 checks passed
@guilload guilload deleted the paul-masurel/build-lambda-on-main-edge branch July 1, 2026 16:40
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.

2 participants