Commit Graph
15 Commits
Author SHA1 Message Date
Hector Ventura 3c4118ff1a perf(native): build smaller binaries with -Os and enforce a size budget (#28) 2026-10-08 21:28:53 -05:00
Hector Ventura ac57626481 ci: cap open PRs at 4 with drafts and 2 ready for review (#27)
Describe the new open-PR limits (floci-loft decision 0021) in CONTRIBUTING.md
and the PR template, and grant the caller contents: write, which the shared
workflow needs to convert a PR back to a draft.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-07 17:46:30 -05:00
Hector Ventura 248d7a67f6 ci: limit contributors to 2 open pull requests (#26)
Call the shared floci-io/.github pr-limit workflow on opened, reopened and
ready_for_review, and on closed and converted_to_draft to clear stale
labels. Runs for the same pull request queue rather than cancel, and manual runs use their own concurrency group. Contributors
keep at most 2 open, non-draft pull requests: the 3rd and 4th get the
over-pr-limit label and a reminder, and from 2026-10-08 the 5th and later
are closed automatically. Bots and maintainers are exempt.

CONTRIBUTING.md and the pull request template describe the policy.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-10-01 17:44:24 -05:00
Hector Ventura 3159a653b4 docs: stop telling contributors to hand-edit CHANGELOG.md (#24)
* docs: stop telling contributors to hand-edit CHANGELOG.md

AGENTS.md and the PR template both asked for an entry under [Unreleased],
which changelog-guard.yml hard-fails and CONTRIBUTING.md forbids. Both lines
predate the semantic-release cutover in #20.

AGENTS.md now states the generated-file rule and points at the changelog-edit
escape hatch; the template drops the checkbox and says on the Conventional
Commits line why no hand edit is needed.

* docs: say which commit types actually produce a changelog entry

The previous wording claimed every Conventional Commit message is the changelog
entry. The commit gate accepts eleven types, but .releaserc.json runs
commit-analyzer with no releaseRules and no preset, so only feat, fix, perf and
breaking changes release. Two commits landed between 0.2.1 and 0.2.2, a fix and
a docs, and only the fix appears in the 0.2.2 section.

Corrected in all four places the claim lived: AGENTS.md, the PR template,
CONTRIBUTING.md, and the changelogTitle in .releaserc.json.

CHANGELOG.md changes with .releaserc.json on purpose and must stay byte
identical to it. @semantic-release/changelog strips the configured title from
the existing file only when the file starts with it, so changing one without
the other would leave the old header in the body and prepend the new one,
shipping a duplicated header on the next release. That is what the
changelog-edit label exists for.

Reported by Greptile on #24 and verified before acting.

* docs(ci): correct the same changelog claim in the guard's own error message

My first pass grepped only *.md and *.json, so it missed the two copies inside
changelog-guard.yml: the header comment and the ::error:: text a contributor
actually sees when the guard fires. A repo-wide grep now returns nothing.
2026-09-13 19:54:49 -05:00
Hector Ventura 7cef52bc50 ci(release): add one-button release cut from main (#20)
Releases were tag-driven: a maintainer hand-bumped pom.xml, hand-moved the
CHANGELOG [Unreleased] entries under a new heading, committed, then pushed a
SemVer tag. Three manual steps, each able to disagree with the others.

Add a manually-dispatched Release Cut workflow that runs semantic-release
against main: it analyzes the Conventional Commits since the last tag, bumps
pom.xml via `mvn versions:set`, regenerates CHANGELOG.md, commits both, tags
(tagFormat ${version}), and creates the GitHub Release. The tag push then
fires release.yml exactly as a manual tag push did, so the binary build and
homebrew-bump chain is untouched. A dry-run input previews the next version
and notes without releasing.

The cut needs a fine-grained PAT (GH_TOKEN, contents:write) rather than the
default GITHUB_TOKEN, whose tag pushes do not trigger other workflows — with
it, release.yml would never run. The semantic-release toolchain is pinned by
its own package-lock.json and installed with `npm ci --ignore-scripts`, so
the job holding that PAT never resolves mutable versions.

CHANGELOG.md becomes generated output. The hand-maintained [Unreleased]
section and its compare link are removed, the header explains the new
contract, and historic sections stay as they were. Changelog Guard fails any
PR that edits the file by hand unless a maintainer applies the
`changelog-edit` label.

Since commit messages are now the changelog, add a Conventional Commits
workflow that lints every non-merge commit in a PR against the types
semantic-release recognizes.

Also drop the hand-written installation body from release.yml — the release
now carries just the attachments, and semantic-release writes the notes.
2026-08-26 22:41:01 -05:00
Hector Ventura a2f97ae820 docs: add AGENTS.md, CONTRIBUTING.md, PR template; document GCP and self-update (#14)
* docs: add AGENTS.md, CONTRIBUTING.md, PR template; document GCP and self-update

- AGENTS.md (tracked): canonical agent guidance — architecture incl. the
  three product trees table, doctor check structure per tree, native-image
  constraints, code style rules, updated scope rules (self-update now in
  scope, must never auto-run)
- CONTRIBUTING.md: build/test setup, Conventional Commits, hand-maintained
  Keep-a-Changelog policy, PR guidelines, tag-driven release process
- .github/pull_request_template.md: adapted from the server repo with a
  'product trees affected' checklist
- README: document the floci gcp command group (quick start, command
  reference, global flags, gcp env variables, CI usage), floci update,
  Java 25+ fat-JAR requirement; drop the unwired snapshot --message flag
  from examples
- CHANGELOG: backfill [Unreleased] with #12 (self-update) and #11
  (ContainerInfo field alignment); document these docs changes
- release.yml: release notes said the fat JAR needs Java 21+, but it is
  built with --release 25 — corrected to Java 25+

* docs(changelog): use standard Keep a Changelog headings for Unreleased

The Documentation section is not one of the six types defined by Keep a
Changelog 1.1.0. New docs (AGENTS.md, CONTRIBUTING.md, README GCP section)
move under Added; the incorrect Java 21+ runtime claim moves under Fixed.
2026-07-06 20:15:32 -05:00
Hector Ventura 67468966ce ci: build and ship darwin/amd64 native binary via Rosetta (#5)
GraalVM native-image can't cross-compile architectures, and GitHub's Intel
macos-13 runners queue for hours and are being deprecated, so darwin/amd64 was
dropped — leaving 'brew install' and the install script with no Intel binary to
fetch (404). Add a release job that runs an x86_64 GraalVM under Rosetta 2 on
the Apple Silicon runner to produce a genuine x86_64 binary, re-wire the
Homebrew bump to fill the darwin/amd64 SHA, and add a manually-triggered
workflow to smoke-test the Rosetta build without cutting a release.

Closes #2
2026-06-10 17:18:59 -05:00
Hector Ventura b15d14b0c2 fix: homebrew formula issue 2026-05-15 23:34:51 -05:00
Hector Ventura ca8871a81a fix: update homebrew action with proper github-token 2026-05-15 23:14:54 -05:00
Hector Ventura 11883f5b67 fix: adding floci aws/az commands 2026-05-15 18:08:45 -05:00
Hector Ventura 77c2e75835 chore: removing docker image creation 2026-05-15 02:48:15 -05:00
Hector Ventura b866f3d1bb chore: ci just need to build and not upload 2026-05-15 02:37:47 -05:00
Hector Ventura 1d7f9f81d0 fix: updating with latest floci changes 2026-05-15 02:34:27 -05:00
HudaHajira 8f1e7fec2f ci: support initial homebrew formula placeholders 2026-05-14 15:31:09 -05:00
Hector Ventura aef1df595f chore: first commit 2026-05-12 17:10:46 -05:00