Commit Graph
3 Commits
Author SHA1 Message Date
Hector Ventura 8bca221641 chore(deps): bump github actions from #2908, #2910 and #2909 (#2918)
Consolidates three open dependabot PRs into one change so CI runs once
instead of three times, and the workflow files are touched by a single
commit rather than three overlapping ones.

- #2908 actions-minor-patch group, five workflows
- #2910 actions/setup-java 5.6.0 to 6.0.0
- #2909 actions/setup-node 6.0.0 to 7.0.0

Every changed line is a `uses:` reference: setup-buildx x8, setup-graalvm
x7, login-action x4, checkout x4, build-push-action x3, setup-java x2,
setup-node x1. Nothing outside .github/workflows is touched.

The maven-minor-patch group (#2906) is deliberately left out: it crosses
a Quarkus minor version and wants its own branch and a full test run.
2026-09-01 23:33:36 -05:00
Hector Ventura 9db05d849b ci: raise the Release Cut timeout to 60 minutes (#2920)
Release Cut on floci-aws was cancelled at the 15 minute mark twice, on
2026-08-18 and again on 2026-09-01. Both releases actually succeeded: 2.0.0
was tagged 38 seconds into the semantic-release step, the release commit is on
main, pom.xml and CHANGELOG.md are correct, and the GitHub Release exists. Only
the post-publish work was killed, so the cost was a red run and the doubt that
comes with it.

The duration tracks the number of PRs in the release, not the repo size:

  58 PRs  -> 5m27s, success
  167 PRs -> cancelled at 15m
  278 PRs -> cancelled at 15m

semantic-release comments on and labels every issue and PR in a release, both
enabled by default, so a 278-PR release is roughly 556 API writes. That is why
gcp, az and oci finish in one to four minutes on identical configuration.

There is no batching or throttle option in @semantic-release/github 11.0.6 and
no bulk-comment endpoint in the GitHub API, so the choice is between dropping
the comments and allowing the time. The comments are worth keeping, so the
ceiling goes up: 60 rather than 30, since 278 PRs already needs about 22
minutes and the repo keeps growing.

All four emulators get the same value so the workflows stay identical.
2026-09-01 23:33:25 -05:00
Hector Ventura 61011c0fa8 feat(release): one-button release cut from main and ECR Public versioned publishing (#2127)
* feat(release): one-button release cut from main and ECR Public versioned publishing

- New Release Cut workflow (workflow_dispatch, dry-run input): semantic-release
  bumps pom.xml, writes CHANGELOG.md, commits, tags, and creates the GitHub
  Release; the tag push fires release.yml unchanged. Requires a GH_TOKEN
  fine-grained PAT (contents:write) because tags pushed with the default
  GITHUB_TOKEN do not trigger workflows.
- .releaserc.json: release from main only (release/x.y.x retired for now)
- release.yml: push versioned + latest native and compat tags to ECR Public,
  mirroring nightly.yml (OIDC role, public.ecr.aws/floci/floci) — previously
  only nightlies reached ECR Public

* fix(release): serialize release cuts and pin the release toolchain

Address review findings on the Release Cut workflow:

- concurrency group so overlapping dispatches queue instead of racing to
  push the same version/tag (no cancel-in-progress: a mid-flight release
  is never killed)
- the semantic-release toolchain is now installed with npm ci
  --ignore-scripts from a committed manifest + lockfile
  (.github/release-tooling), so the job holding the contents:write PAT
  runs a reproducible, fully pinned dependency tree instead of resolving
  mutable version ranges at run time

* fix(release): commit the pinned lockfile, SHA-pin actions, document queue semantics

Replicates the review fixes that took the sibling OCI PR to a clean review:

- the repo-wide package-lock.json ignore silently excluded the release
  toolchain's lockfile, so npm ci would fail on every dispatch; add a scoped
  gitignore exception and commit the lockfile
- pin checkout/setup-java/setup-node to full commit SHAs — this workflow
  holds the contents:write GH_TOKEN PAT, so a repointed action tag must not
  be able to change the code it executes
- document the concurrency group's last-dispatch-wins semantics (GitHub
  keeps one pending run per group; a superseded duplicate release cut is
  redundant by definition)

* fix(release): pin the ECR publishing actions to full commit SHAs

The OIDC-enabled job that assumes the public-image publishing role must not
execute code selected by a repointable tag: configure-aws-credentials and
amazon-ecr-login are now pinned to full commit SHAs (tags noted in comments),
matching the SHA-pinned docker actions already in this workflow.
2026-08-05 22:53:20 -05:00