mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
76c1907214db0e9cb968ac0ffbc8cafea06299a3
116
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
17245081f1 | chore(release): document the ordering invariant behind the baseline native/ wipe (#3528) | ||
|
|
341736fc39 |
ci: fix false first-PR welcome for issue-less repeat contributors (#3502)
actions/first-interaction@v3.1.0's isFirstPullRequest() never filters by author, and the action only skips the greeting when neither isFirstIssue nor isFirstPullRequest is true. A contributor who has never filed an issue trips a vacuously-true isFirstIssue, which alone opens the gate regardless of their real PR history. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> |
||
|
|
e0d43189f7 | fix(build): publish arm64 baseline release image (#3461) | ||
|
|
75a5111f6e |
docs: standardize Java code style rules (#3451)
* docs: standardize Java code style rules AGENTS.md becomes the canonical Code Style source, regrouped into General, Types and names, Imports, conventions the codebase already follows, and Tests. Two new rules: write explicit types rather than var, and import classes rather than writing fully-qualified names inline. Both are stated with the reason they matter here, that the concrete type at a call site is usually what a wire contract reviewer needs to see, and with the one exception each: record deconstruction patterns for var, and genuine same-file name collisions for qualified names. The rest is existing practice written down so it stays true. Each claim was measured against src/main and src/test: no printStackTrace, no logger field named anything but LOG, no Calendar and no SimpleDateFormat. The System.out rule exempts CLI entry points under tools/, which is its one real use. The empty-catch rule now blesses naming the variable ignored or expected, the convention the code already uses. Two conventions are stated with the exceptions the tree actually contains rather than as absolutes. java.util.Date survives where a third-party signature forces it, in the BouncyCastle certificate builder and the JAX-RS HttpHeaders.getDate() override, so the rule is java.time on Floci's side and conversion at that boundary. Tab indentation is banned as such, since a JSON text block may legitimately contain a tab as string content. CONTRIBUTING.md and docs/contributing.md had no code style section at all, and copilot-instructions.md had no code style content, so PR review could not flag either new rule. The Copilot entry also lists the collisions it must not flag. Existing code does not satisfy these everywhere. The rules are documentation only: nothing in CI enforces them, and no Java file changes here. * docs: correct the measured claims in the code style section Review on #3451 caught that System.out is not confined to the tools CLI: four test files print too. Checking the rest of the section the same way found five more claims that do not survive a measurement, so this corrects all six rather than only the reported one. The section's whole value is that a reader can trust it without re-measuring. System.out and System.err are now scoped to src/main, the way the wildcard import rule already splits src/main from tests. The exception is named by its real coordinates: AmiImageTool sits in the Java package io.github.hectorvent.floci.tools.ami, not in the top-level tools/ directory, which holds only tools/docs. printStackTrace stays absolute, since that one holds: zero in src/main and src/test. The Date rule listed two forced boundaries and there are three. BouncyCastle's certificate builder and the JAX-RS HttpHeaders.getDate() override are joined by JDBC's java.sql.Date, which extends java.util.Date and which the old wording read as prohibiting, in RdsDataFieldMapper and RdsDataSqlParameters. Optional is split, because half the claim was true. Never a field is exact, there are none. Never a parameter was wrong: Quarkus threads @ConfigProperty Optional<T> values through parameters in ResolvedServiceCatalog, ContainerBuilder, DockerClientProducer and LaunchedContainerAwsEnv. The three Tests rules each asserted something false. testX is not absent, it names 291 methods across 52 files, so it is described as the older pattern not to copy rather than as something that never happens. AssertJ is not absent either, it is a declared test dependency used by the six Lambda launcher tests. @DisplayName is genuinely rare in src/test, 13 files of 1455, but it is the norm in compatibility-tests at 183 of 208, as is AssertJ at 197 of 208. That module has the opposite idiom, so the Tests rules now say they describe src/test and point a contributor at the module they are in. Documentation only. No Java file changes here. |
||
|
|
2d51259120 |
feat(verifiedpermissions): add full service emulation (#3128)
* feat(verifiedpermissions): add full service emulation * fix(verifiedpermissions): harden OIDC and schema validation * test(verifiedpermissions): add service layer coverage * fix(verifiedpermissions): support native Cedar runtime * fix(verifiedpermissions): package Cedar native FFI * fix(verifiedpermissions): register Cedar deserializers for native * fix(verifiedpermissions): bound JWKS refreshes * fix(verifiedpermissions): avoid Cedar entity reflection * fix(verifiedpermissions): register Cedar native reflection * fix(verifiedpermissions): refresh rotated OIDC keys safely * fix(verifiedpermissions): retry failed JWKS refreshes * refactor(verifiedpermissions): isolate Cedar in sidecar * fix(verifiedpermissions): harden Cedar sidecar runtime * fix(verifiedpermissions): build cedar sidecar in compatibility CI * fix(verifiedpermissions): remove stale cedar jni config * fix(verifiedpermissions): recover cedar sidecar * fix(verifiedpermissions): bound OIDC document responses * fix(verifiedpermissions): start cedar sidecar in native sdk CI |
||
|
|
051a2f09db |
fix(github-actions): continue Docker compatibility tests after failures (#3351)
* fix: report compatibility suite failures * test: cover all compatibility suites after build failure * test: run Docker failure aggregation in CI |
||
|
|
cbfa034470 |
feat(identity-center): complete IAM Identity Center emulation (#3331)
* feat(ssoadmin): add region operation * feat(ssoadmin): attach customer managed policies * feat(ssoadmin): create applications * feat(ssoadmin): create application assignments * feat(ssoadmin): create account instances * feat(ssoadmin): create ABAC configuration * feat(ssoadmin): create trusted token issuers * feat(ssoadmin): delete account assignments * feat(ssoadmin): delete applications * feat(ssoadmin): delete application access scopes * feat(ssoadmin): delete application assignments * feat(ssoadmin): delete application authentication methods * feat(ssoadmin): delete application grants * feat(ssoadmin): delete identity center instances * feat(ssoadmin): list principal account assignments * feat(ssoadmin): provision permission sets * feat(ssoadmin): list provisioned permission sets * feat(ssoadmin): list accounts for provisioned permission set * feat(ssoadmin): describe permission set provisioning status * feat(ssoadmin): list permission set provisioning status * feat(ssoadmin): describe account assignment deletion status * feat(ssoadmin): list account assignment creation status * feat(ssoadmin): list account assignment deletion status * feat(ssoadmin): delete permission sets * feat(ssoadmin): detach customer managed policy references * feat(ssoadmin): list customer managed policy references * feat(ssoadmin): get inline permission set policies * feat(ssoadmin): put permission set boundaries * feat(ssoadmin): get permission set boundaries * feat(ssoadmin): delete permission set boundaries * feat(scim): create groups * feat(scim): create users * feat(scim): delete groups * feat(scim): delete users * feat(scim): get groups * feat(scim): get users * feat(scim): list groups * feat(scim): list users * feat(scim): get schemas * feat(scim): list schemas * feat(scim): list resource types * feat(scim): add service provider config * feat(scim): patch groups * feat(scim): patch users * feat(scim): put users * feat(ssoadmin): delete ABAC configuration * feat(ssoadmin): delete trusted token issuers * feat(ssoadmin): describe applications * feat(ssoadmin): describe application assignments * feat(ssoadmin): describe instances * feat(ssoadmin): describe ABAC configuration * feat(ssoadmin): describe regions * feat(ssoadmin): describe trusted token issuers * feat(ssoadmin): describe application providers * feat(ssoadmin): list application assignments * feat(ssoadmin): list principal application assignments * feat(ssoadmin): list applications * feat(ssoadmin): list application providers * feat(ssoadmin): list regions * feat(ssoadmin): list trusted token issuers * feat(ssoadmin): put application access scopes * feat(ssoadmin): get application access scopes * feat: support listing application access scopes * feat(ssoadmin): get application assignment configuration * feat(ssoadmin): put application assignment configuration * feat(ssoadmin): get application authentication methods * feat(ssoadmin): put application authentication methods * feat(ssoadmin): list application authentication methods * feat(ssoadmin): get application grants * feat(ssoadmin): put application grants * feat(ssoadmin): list application grants * feat(ssoadmin): get application session configuration * feat(ssoadmin): put application session configuration * feat(ssoadmin): list resource tags * feat(ssoadmin): tag resources * feat(ssoadmin): untag resources * feat(ssoadmin): remove regions * feat(ssoadmin): update applications * feat(ssoadmin): update instances * feat(ssoadmin): update ABAC configuration * feat(ssoadmin): update trusted token issuers * feat(ssooidc): register clients * feat(ssooidc): start device authorization * feat(ssooidc): create public client tokens * feat(ssooidc): create IAM-authenticated tokens * feat(ssoportal): list assigned accounts * feat(ssoportal): list assigned account roles * feat(ssoportal): issue assigned role credentials * feat(ssoportal): invalidate portal sessions * docs(ssoadmin): report complete operation count * fix(identity-center): repair CI validation * fix(identity-center): harden auth and native build * fix(ssooidc): disambiguate RestAssured query parameter * fix(identity-center): resolve CI compatibility failures * fix(identity-center): address maintainer review * fix(ssoadmin): preserve application provider partition * fix(identity-center): repair Java compatibility tests * fix(identity-center): trust local TLS in browser flows * fix(identity-center): register refresh token grant in SDK test |
||
|
|
3af6f47bf8 |
ci: enforce required pull request template sections (#3187)
Several open PRs have had sections of the pull request template deleted entirely (Summary, Type of change, Checklist) rather than filled in, and nothing catches this unless a reviewer happens to notice. Fail PR checks when a required section header is missing from the PR body. AWS Compatibility is deliberately excluded: many PRs (chores, refactors, non-AWS-behavior fixes) have nothing to say there. This applies to every open PR immediately, including ones opened before this rule existed: they start failing on their next push, edit, or reopen until the description is fixed up. |
||
|
|
50836bbdc8 |
chore(deps): update to Quarkus 3.39.2 and refresh pinned libraries (#3175)
* chore(deps): update to Quarkus 3.39.2 and refresh pinned libraries Quarkus platform 3.37.4 -> 3.39.2 (BOM and plugin), Jackson 2.22.2, wire 6.4.7, bcprov 1.85.2, graphql-java 26.1, swagger-parser 2.1.48, assertj 3.27.7, neo4j-java-driver 6.2.1, maven-compiler-plugin 3.16.0, maven-surefire-plugin 3.6.0. Vert.x 4.5.33, Netty 4.1.137, REST Assured 6.0.1 and the Kubernetes client move with the BOM. Two pins are kept deliberately. httpclient5 stays at 5.5.1: 5.6 adds transparent content decoding through commons-compress, and its XZ codec references org.tukaani.xz, which is not on the classpath, so the native build fails at link time through docker-java's FrameReader. The Quarkus 3.39 BOM manages 5.6.3, so the explicit pin is what keeps it out. protobuf-java 3.25.9 and proto-google-common-protos 2.49.0 stay for apicurio 2.6.13, the same mixed-classpath native failure that blocks #2906; apicurio 3.x is the real fix and is its own change. Verified: full test suite (14190 + 3479 tests, no new failures; the two RuntimeApiServerTest races reproduce on main), native image on GraalVM 25.0.3 builds and serves STS GetCallerIdentity. * chore(ci): keep single-callsite inlining off for Mandrel native builds Quarkus 3.39 enables -H:+AOTSingleCallsiteInline by default on Mandrel 25.0.4+ (quarkusio/quarkus#55482). The generated Quarkus REST invokers for AwsQueryController.dispatch and AwsJson11Controller.handle are each the single call site of a very large method, so the inliner folds it in and the aarch64 build fails in the compile step with BranchTargetOutOfBoundsException: conditional branches on AArch64 reach +/-1 MB and the inlined method is larger. The amd64 build survives only because x86 branches reach further, and its compile step still grew from about 60 s to 250 s. The opt-out flag exists only on Mandrel (Oracle GraalVM 25.0.3 rejects it as an unrecognized option), so it is appended in the workflows that build with Mandrel rather than in application.yml, keeping local builds on any GraalVM distribution working. * fix(deps): pin httpcore5 to the version httpclient5 5.5.1 declares The Quarkus 3.38+ BOM manages httpcore5 at 5.4.3, where the 3.37 BOM left it to httpclient5, which declares 5.3.6. httpcore5 5.4 changed SocketConfig's defaults: soKeepAlive is on and tcpKeepIdle is 5 seconds, where 5.3 had them off. docker-java copies SocketConfig.DEFAULT for the Docker socket, so httpclient5 now sets TCP_KEEPIDLE on it through SocketSupport.setOption, which looks up Socket.setOption and jdk.net.ExtendedSocketOptions by reflection. In the native image that reflection is unregistered, the lookup throws, and every Docker request fails with "Failure setting extended socket option": the native compat suites lost ECR, ECS, RDS, Redshift and the CDK bootstrap on both architectures while the JVM shards stayed green. docker-java is the only consumer of httpcore5 in the tree. Pinning httpcore5 and httpcore5-h2 to 5.3.6 restores the pair httpclient5 5.5.1 was built with. Verified on a local native build: the binary boots on Quarkus 3.39.2 and ECR GetAuthorizationToken starts the backing registry container over the Docker socket. Bisected: 3.37.4 clean, 3.38.3 and 3.39.2 fail without the pin. |
||
|
|
024bfa0a5c |
feat(docker): containers Floci launches trust the Floci CA (#3091)
* feat(tls): write a CA bundle for launched containers at boot
Containers Floci launches need to trust Floci's HTTPS endpoint from any runtime
without losing access to public HTTPS. A bundle that carries the JVM's public
roots followed by Floci's trust anchor makes that possible: the variables that
replace a runtime's trust store (SSL_CERT_FILE and friends) can then point at
it safely.
ContainerCaBundle writes {persistent-path}/tls/floci-ca-bundle.pem from the
JVM's default trust anchors plus the certificates in the anchor file: the local
CA, or the user-provided certificate file in custom-certificate mode. Only
certificates are copied out of that file, so a combined certificate-and-key
file never leaks its key into a container. The file is swapped in atomically
from a uniquely named temporary file. TlsConfigSource writes it in both
certificate modes; a failure is logged and never stops the boot.
hostPath(config) resolves the bundle in the directory the bootstrap used, so a
persistent path set only in application.yml cannot point it elsewhere, and
appendEnv(env) adds SSL_CERT_FILE, CURL_CA_BUNDLE, REQUESTS_CA_BUNDLE,
NODE_EXTRA_CA_CERTS and AWS_CA_BUNDLE without overriding a key the caller set.
The bootstrap now records its TLS directory in every TLS-on mode, not only when
it issues the leaf, so the CA producer and the bundle lookup read from the
directory the boot wrote to even when a persistent path is set in
application.yml alone. A missing bundle is reported once per process.
* feat(docker): every launched container gets the CA bundle and the trust variables
ContainerLifecycleManager.create is the single path every emulator-created
container passes through, so injecting trust there covers Lambda, ECS, MWAA,
Flink, RDS, ElastiCache, Batch and the rest at once.
With TLS on and the bundle present, create appends the five trust variables
after the spec's own environment (a value from a task or function definition
wins) and copies the bundle to /etc/floci-ca-bundle.pem in the created, not
yet started, container. A copy rather than a bind mount, because when Floci
itself runs in Docker its persistent path is not a host path the daemon can
mount. A failed copy is logged with its consequence and the container still
starts. With TLS off, or without a bundle, nothing changes.
* refactor(lambda): take container CA trust from the lifecycle manager bundle
The Lambda launcher no longer resolves, copies or announces the CA itself: the
lifecycle manager does that for every container. Its append-only policy
(NODE_EXTRA_CA_CERTS and AWS_CA_BUNDLE only, never SSL_CERT_FILE) existed
because a bare CA would have cut a function off from public HTTPS; the bundle
carries the public roots, so the policy and the test that guarded it go.
The Kubernetes launcher publishes the bundle in its ConfigMap instead of the
bare CA, mounts it at /etc/floci-ca-bundle.pem, and appends the trust
variables after the function's own environment so a function value wins, as
in the Docker launcher.
* test(docker): a launched container trusts Floci and public roots through the bundle
The unit tests pin the variables and the copy, not that a runtime reading them
actually trusts Floci and still reaches public HTTPS. A python:3.12-alpine
container launched through the lifecycle manager, with the image's own root
directory pointed away so only the bundle can supply roots, fetches
https://host.docker.internal:<port>/_floci/ca.pem and https://public.ecr.aws/
with no setup of its own. Skipped without a Docker daemon, like the other
*DockerIntegrationTest classes; the image is prefetched in CI with the
others.
* docs(tls): containers Floci launches trust the Floci CA
Describe the bundle every launched container receives, the five variables that
point at it, that a value set on the function or task definition wins, and
that the JVM ignores these variables so a Java workload still needs its own
trust store.
* fix(docker): recreate a container without the trust variables when the bundle cannot be copied
SSL_CERT_FILE, CURL_CA_BUNDLE and REQUESTS_CA_BUNDLE replace a runtime's trust
store, so a container whose bundle copy failed (an image without /etc) used to
start pointing them at a file that was not there, and lost every HTTPS
connection instead of only the ones to Floci. The lifecycle manager now removes
that container and creates it again without the variables, so it keeps the
image's own trust store. The host configuration, and with it any dynamic host
port, is built once and reused.
* fix(tls): serve only the certificate blocks of a user-provided file from ca.pem
In custom-certificate mode GET /_floci/ca.pem returned the configured
certificate file byte for byte, so a combined certificate-and-key file, the
form OpenSSL tooling produces, handed the server's private key to any caller.
The endpoint now goes through the same certificate-only parsing the container
bundle uses. TlsUserCertIntegrationTest boots on a combined file and asserts
the response holds the user certificate and the local CA and no key.
* test(cloudformation): wait for DeleteStack to finish before asserting on deleted resources
DeleteStack hands the work to an executor and answers at once. Seven tests in
CloudFormationIntegrationTest asserted on the deleted resources right after the
answer; one of them, deleteStack_ecs_leavesNoOrphans, failed shard 1 of this
pull request's CI 44 ms later with the cluster still ACTIVE, while the same
shard had passed on the previous push.
A shared awaitStackDeleted polls DescribeStacks until the stack reports
DELETE_COMPLETE or no longer exists, fails on DELETE_FAILED or after ten
seconds, and replaces the three inline copies of that loop as well.
* docs(tls): restore the learned-hostnames section and the ACM wording that #3079 dropped
#3079's docs commit (
|
||
|
|
b0b153c6a8 |
ci(compat): wait on the container's health status before running the suites (#3107)
The readiness step curled the port, so the image's HEALTHCHECK never ran under CI: a malformed probe would leave the container unhealthy while every suite passed against the open port. The step now polls docker inspect for the health status, exits on healthy and fails with the health log and the container logs on unhealthy, so both arches exercise the native image's bash /dev/tcp probe before any suite starts. Checked on a CI-built arm64 image: healthy after 5 s; with the app forced onto another port, unhealthy is reported after 26 s and the step fails. |
||
|
|
64f06e090f |
perf(docker): shrink image by 28% using ubi9-micro (109 MB to 78 MB compressed) (#3085)
* perf(docker): move the native image to ubi9-micro The binary needs only libc, and since #3037 the entrypoint needs only bash and coreutils. ubi9-micro has both at 7 MB compressed instead of ubi9-minimal's 40 MB. Measured on arm64 with the nightly-09042026 binary: 109 MB to about 78 MB compressed, 313 MB to 229 MB uncompressed. ubi9-micro has no useradd and no curl, so the user is one /etc/passwd line and the healthcheck is a bash /dev/tcp probe. Dockerfile.native gets the same runtime stage and loses its unused gosu tools stage. Dockerfile.compat needs microdnf, so it now starts from ubi9-minimal and copies /app out of the native image. * chore(docker): share the health probe and split the compat tools stage The bash health probe is now docker/healthcheck.sh, used by all three Dockerfiles. Dockerfile.compat gets a version independent tools stage; the aws CLI shim test and the cache warm job build target: tools, so they pull no floci image and their cached layers stay stable. ARG VERSION and the native RUN steps move so only the binary copy changes between builds. * fix(docker): copy healthcheck.sh into the compat image from the build context * ci(compat): build the whole compat image on pull requests and check it starts healthy |
||
|
|
c55733c49e |
ci(compat): run the suites on the arm64 image and keep one amd64 leg (#3039)
#2940 widened the compatibility workflow to build the native image for both published architectures and run all eight suites on both, sixteen suite jobs per PR. What the suites check is arch-neutral, and with several PRs in flight the jobs sat queued for the shared runner pools for longer than they take to run. The suites now run against the arm64 image only. Both native images are still built, so each published architecture is proven to link and package, and one amd64 suite stays: sdk-test-python now carries a Firehose compression delivery test, mirroring the Java one, that proves the x86_64 snappy JNI library survived the native build. That is the one resource registered per platform, and the proof moves from the slowest leg to the fastest. The two Snappy variants are container formats around raw Snappy blocks: the xerial snappy-java stream and Hadoop's block framing, neither of which has a Python reader without native system libraries. The test parses the framing itself, following Floci's writer, and decodes the raw blocks with cramjam, which ships wheels for both architectures. The results artifact carries the architecture in its name so the two Python uploads are distinguishable. |
||
|
|
aa455fbba0 |
ci(compat): record the native build size in the job summary and keep the stats JSON (#3016)
Quarkus passes -H:BuildOutputJSONFile to every native build, so the build-output stats (code area, image heap, resources, total image size, reachable types and methods) already exist next to the native source jar and were thrown away. Read them after the quick build, append them to the job summary for each architecture together with the gzip size of the binary, which tracks the compressed layer Docker Hub reports, and upload the JSON as an artifact for 30 days. This is the measurement every dependency-removal PR needs on amd64, which cannot be built locally on an Apple Silicon machine, and the first half of a size gate: nothing fails yet, the numbers just become visible per PR. |
||
|
|
eb0472fccc |
docs: fix stale image tags, release model, service nav and contributor checklists (#2980)
The getting-started and contributor docs had drifted from what the workflows and the code actually do: - quick-start and CONTRIBUTING pointed users at a `latest-jvm` image that the release pipeline never publishes; both now name the `-compat` image, and `make docs-check` greps the docs for any `-jvm` tag - the CONTRIBUTING branching model now matches the workflows: `main` is published as the nightly channel, a maintainer runs the Release Cut workflow to tag a release, and the tag triggers the publish; PR builds produce compat images but never publish them - README and the docs landing page carried a hand-maintained service count and a second copy of the service table, both stale; they now link to the Services Overview - the Service Matrix gains the ELB Classic row it was missing, with an `elb` alias so the check no longer resolves the Classic key to the v2 page, and check_service_matrix.py now also fails on a docs/services page that has no row - the README category table lists 16 documented services it omitted - mkdocs nav gains 11 service pages that were unreachable from the site, drops a duplicate CloudTrail entry, and the docs job now runs `mkdocs build --strict` with nav and link validation so a page without a nav entry fails CI - AGENTS.md, CONTRIBUTING.md and docs/contributing.md told contributors to register a service in ServiceRegistry, which has no registration API; all three now point at ResolvedServiceCatalog and list the config, storage, native-image, docs, tooling and compat-suite touchpoints a new service needs |
||
|
|
73411043e1 |
ci: pin every GitHub Action to a commit SHA (#2979)
Replaces the 38 floating tag refs left across ci, compatibility, doc-style, docs, docs-actions, conventional-commits, nightly, release and welcome with the SHA plus version comment style already used by release-cut and build-images. Floating majors are pinned to their current release (upload-artifact v7.0.1, download-artifact v8.0.1, setup-python v7.0.0, amazon-ecr-login v2.0.1). Every SHA was checked against the tag it annotates. |
||
|
|
4ce53b51d6 |
perf(build): keep only the snappy JNI libraries the image will use (#2940)
* perf(build): keep only the snappy JNI libraries the image can load snappy-java registers its JNI library for 27 platforms as native image resources. Only the one for the running platform can load. Downsize Docker image size from 274.4 to 267.5 MiB, 88.7 to 86.6 MB gzipped. * ci(compat): run the native compatibility suite on amd64 too The native image ships for linux/amd64 and linux/arm64, but only arm64 ever ran the compatibility suite. An arch-specific resource in the native image could go missing on amd64 and no PR check would catch it. The snappy-java JNI library is one such resource. Both jobs now run once per architecture. |
||
|
|
65e1d506cc |
ci(compat): fail the build when compat-opentofu drifts from compat-terraform (#2898)
Adds a CI job comparing the resource address lists in the two configs' main.tf files, failing on any unlisted one-sided resource. The 11 resources already only in compat-terraform (Application Auto Scaling, RDS, the CloudWatch alarm, the IAM managed-policy-attach path, IAM tag coverage, and the GuardDuty org feature) are recorded as pre-existing gaps in a new tf-only allowlist rather than ported, so the check also flags an allowlist entry once it stops being one-sided. Allowlists are directional (separate tf-only / otf-only files) so a resource that flips sides -- dropped from one config and re-added to the other under the same address -- is still reported as unreviewed drift instead of silently matching a stale entry from the old side. Closes #2263 |
||
|
|
4ca8c42470 |
ci: flag em-dashes in new files (#2961)
AGENTS.md says no em-dashes anywhere, in any content, but nothing enforced it. Scoped to files a PR adds rather than lines changed in existing ones, since plenty of existing content already has em-dashes and flagging every PR that touches one of those files would make this noise rather than signal. |
||
|
|
60f89268c8 |
ci: validate PR title against Conventional Commits (#2960)
The lint-commits job only checked individual commit messages on the branch, never the PR title itself - even though CONTRIBUTING.md documents the title as what's enforced, since it becomes the squash-merge commit message that semantic-release reads on main. A PR could have conventional per-commit history and still merge under a non-conventional title with nothing catching it. Adds a "Validate PR title" step ahead of the existing commit check, reusing the same pattern via a job-level env var instead of duplicating the regex. |
||
|
|
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. |
||
|
|
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. |
||
|
|
2b4f39e4e6 |
ci: align the nightly schedule on 23:00 America/Chicago (#2862)
The four emulators targeted the same instant by two different routes, and three of the four header comments were wrong about it. All four now carry the same schedule block: cron '0 23 * * *' with timezone America/Chicago. For floci-gcp and floci-az this is a behavior change: they used a fixed '0 4 * * *' UTC, which holds 23:00 CT only in summer and slips to 22:00 CT once CST starts. The inline comment claiming it "shifts to 23:00 CST in winter" had the direction backwards. The header comment now also records that GitHub delays scheduled runs on low-activity repositories. Observed start times on this org range from 04:03Z to 15:55Z for the same nominal schedule, so the cron is a target rather than a guarantee, and aligning it does not make the four build simultaneously. |
||
|
|
426fbcb284 |
feat/redshift auth proxy (#2751)
* feat(redshift): add auth proxy port range and endpoint-host config * feat(redshift): add containerHost/containerPort/proxyPort to Cluster model * feat(redshift): add RedshiftAuthProxy reusing the RDS PostgreSQL protocol handler * feat(redshift): add RedshiftProxyManager registry with shutdown hook * feat(redshift): front new clusters with an auth proxy and advertise it * feat(redshift): stop/update proxy on delete/modify, start it on snapshot restore * feat(redshift): keep proxy port stable across reboot and adopt-on-startup * test(redshift): integration coverage for JDBC through the auth proxy * test(redshift): reinstate JDBC connectivity check now that the proxy exists * docs(redshift): document the cluster auth proxy and its config * fix(redshift): prevent minor port leak when proxy fails to start * fix(redshift): rollback container on proxy failure and surface teardown errors * fix(redshift): stop auth proxy on rollback to prevent listener collisions * fix(redshift): ensure proxy shutdown failure does not abort container and port cleanup * fix(redshift): add proper logging for intentionally ignored cleanup exceptions * fix: Wait for Redshift database readiness before proxying Previously, RedshiftContainerManager just slept for 3 seconds before marking the container as started. On slower CI environments, the PostgreSQL database might take longer to initialize, resulting in Connection Refused when the RedshiftAuthProxy forwards connections. Now, RedshiftContainerManager polls the database using psql until it's ready, up to 60 seconds. * fix(redshift): prevent proxy port reallocation on shutdown failure Addresses a review comment indicating that if a Redshift auth proxy fails to shut down during rollback or deletion, its port must not be released into the available pool. Reassigning a still-bound port would cause subsequent cluster creations to fail with a BindException. Instead, we now tolerate proxy shutdown errors but intentionally leak the port allocation to prevent collisions. * fix(redshift): fix failing tests due to proxy changes 1. RedshiftOperationsTest checked for a hardcoded port 5440, but the RedshiftService now allocates dynamic proxy ports. Removed the exact port assertion. 2. RedshiftContainerManager's psql readiness check was connecting via local Unix socket, which succeeded before PostgreSQL was actually ready to accept remote TCP connections from the proxy. Added '-h 127.0.0.1' to enforce TCP readiness. * test(redshift): use Awaitility to connect to proxy Use Awaitility to retry the initial connection in RedshiftProxyIntegrationTest to prevent transient 'Connection attempt failed' errors on slower CI environments. * chore(redshift): use proper imports instead of fully-qualified class names in tests * fix(redshift): fix compiler errors introduced during import cleanup * fix(redshift): resolve proxy lifecycle bugs and CI network issues - Throw RuntimeException from RedshiftProxyManager.stopProxy if proxy is not found. This allows RedshiftService to catch it and intentionally leak the port, preventing port collisions if a proxy fails before registration. - Force RedshiftProxyIntegrationTest to connect via 127.0.0.1 instead of the endpoint address, which resolves to host.docker.internal in CI environments and causes UnknownHostException. * fix(redshift): prevent proxy port exhaustion on startup failures Instead of blindly assuming missing proxies denote a leaked port, RedshiftProxyManager now tracks proxies that failed their socket cleanup during startup. stopProxy throws an exception only if the socket is known to be leaked. This allows RedshiftService to safely release ports after clean proxy startup failures, addressing Greptile's feedback about port exhaustion. * fix(redshift): retain proxy reference to allow retry on close failure As identified by Greptile, stopProxy previously removed the proxy from the registry before calling proxy.stop(). If stop() threw an exception, the proxy reference was lost, preventing any subsequent retry from ever finding it and attempting to close it again. stopProxy now only removes the proxy from the registry after stop() returns successfully. Additionally, failedCleanups is now retained instead of cleared, ensuring retries continue to safely leak the port if cleanup remains impossible. * fix(redshift): abort cluster deletion if proxy fails to stop As highlighted by Greptile, previously deleteCluster would swallow proxy shutdown failures and delete the cluster metadata anyway. This eliminated the retry path, stranding the unclosed proxy and its port reservation until the process exited. Now, if stopProxyAndReleasePortSafely fails, deleteCluster throws an exception to preserve the cluster metadata so the deletion can be retried. * test(redshift): lock in proxy lifecycle failure-recovery behaviors Bổ sung test cho ba hành vi hardening chưa được cover, để refactor sau không âm thầm phá vỡ: - stopProxy giữ lại proxy trong registry khi close() ném, cho phép retry gọi lại đúng instance và chỉ deregister sau khi stop sạch - marker leak khi startup cleanup thất bại được retain qua mọi retry và chỉ bị xoá bởi một lần start mới thành công - deleteCluster abort với InternalFailure, giữ nguyên container + metadata khi proxy không stop được; retry sau đó hoàn tất khi proxy stop OK Đồng thời bỏ "-p 7100-7199:7100-7199" trong compatibility.yml: proxy bind 0.0.0.0 trong container floci và sdk-test-java chạy trên compat-net nên JDBC đi container-to-container qua alias "floci", không cần publish port ra host. Giữ lại FLOCI_SERVICES_REDSHIFT_ENDPOINT_HOST=floci. * fix(redshift): keep an unclosable proxy reachable for later retry Theo phản hồi mới của Greptile: khi start/replace proxy thất bại và cleanupFailedStart cũng không đóng được listener, code cũ chỉ lưu relayKey vào một Set rồi vứt object RedshiftAuthProxy. stopProxy sau đó ném vĩnh viễn mà không còn cách nào chạm tới listener để thử đóng lại, khiến cluster không xoá được và port bị giữ mãi trong dải hữu hạn. Thay Set<String> failedCleanups bằng Map<String, RedshiftAuthProxy> unclosableProxies. cleanupFailedStart giữ lại chính proxy đó; stopProxy và stopAll thử đóng lại, chỉ gỡ entry khi stop thành công. startProxy không còn xoá marker khi start mới — chỉ một lần stop thành công mới gỡ, vì listener cũ có thể vẫn đang bound. * fix(redshift): retry proxy port bind to absorb reboot rebind race rebootCluster giữ nguyên proxy port của cluster để endpoint ổn định, nên listener cũ bị đóng rồi bind lại đúng port đó chỉ vài ms sau. Dưới tải (CI runner ARM) kernel có thể chưa nhả port và SO_REUSEADDR không giúp được khi accept loop cũ đang teardown -> BindException -> RebootCluster trả 500. Đây là nguyên nhân test RedshiftOperationsTest. testClusterAndSnapshotLifecycle fail chập chờn. start() giờ retry bind tối đa ~1s, chỉ nuốt BindException; IOException khác vẫn propagate ngay. Thêm test dựng cảnh port bị chiếm tạm thời rồi nhả, xác nhận proxy vẫn bind được. * fix(redshift): tear down proxy and release port when rebootCluster fails Nếu startProxy/restoreSnapshot ném sau khi proxy đã (re)start trong rebootCluster, hai nhánh catch chỉ set status "failed" rồi rethrow — proxy mới vẫn chạy và port vẫn nằm trong usedPorts, không nhánh nào dọn. Giờ cả hai catch gọi stopProxyAndReleasePortSafely như createCluster và restoreFromClusterSnapshot đã làm; proxyPort được hoist ra ngoài try với sentinel -1 để rollback an toàn kể cả khi chưa cấp port. Thêm test: restoreSnapshot ném -> proxy được stop lại, AwsException nổi lên. * fix(redshift): serialize createCluster/deleteCluster/restoreFromClusterSnapshot modifyCluster và rebootCluster đã synchronized nhưng create/delete/restore thì không, dù cả năm method đều chạy chuỗi container + proxy + port nhiều bước trên cùng một cluster. deleteCluster(x) chạy song song rebootCluster(x) có thể để lại metadata mồ côi trỏ tới container/proxy đã dừng. Thêm synchronized cho ba method còn lại để nhất quán. * fix(rds,redshift): close backend socket when the auth handshake fails handleConnection mở kết nối TCP tới container Postgres trước khi gọi handleAuth. Chỉ nhánh thành công (bridge) và vài nhánh lỗi có kiểm soát mới đóng backend; nếu handleAuth trả về sớm ở một probe trần (SSLRequest không kèm startup) hoặc ném IOException (client ngắt giữa handshake), catch cũ chỉ đóng client -> mỗi health-check TCP làm rò một connection tới Postgres, ăn dần max_connections. Chuyển việc đóng socket sang finally, đóng cả client lẫn backend (idempotent, nhánh thành công đã đóng sẵn). Áp cho cả RdsAuthProxy vì RedshiftAuthProxy được copy từ đó. Thêm test: client drop giữa handshake -> backend nhận EOF. * fix(redshift): stop replacement container and keep dump on failed reboot Rollback của rebootCluster (b44fd1e3) mới chỉ stop proxy + release port, để container thay thế chạy tiếp sau một cluster "failed", và finally vẫn xoá tempDump. Vì container gốc đã stop và không có volume, tempDump là bản sao duy nhất của data -> mất data không khôi phục được (bug có sẵn, giờ mới lộ). rollbackReboot() giờ stop luôn container thay thế (như createCluster/ restoreFromClusterSnapshot). tempDump chỉ bị xoá khi reboot thành công; khi fail thì giữ lại và log đường dẫn để khôi phục thủ công. * fix(redshift): make reboot rollback phase-aware to protect the original Commit trước cho rollbackReboot stop container vô điều kiện. Nếu reboot fail ngay ở takeSnapshot hoặc stopProxy — lúc container gốc (chứa data, không volume) VẪN đang chạy — thì rollback lại force-remove chính nó, huỷ bản sao data hoàn chỉnh duy nhất và chỉ còn dump rỗng/dở. Thêm hai cờ: - originalTornDown: đã stop proxy + container gốc -> rollback mới được đụng vào proxy/port - replacementStarted: đã start container thay thế -> rollback mới được stop container Fail trước hai mốc đó: không đụng gì, trạng thái gốc còn nguyên. Thêm test: takeSnapshot ném -> cm.stop và stopProxy không được gọi. * fix(redshift): clean an orphan replacement container on failed reboot containerManager.start có thể tạo container Docker rồi mới ném ở waitForReady, nên cờ replacementStarted (set sau khi start return) bỏ sót trường hợp này -> orphan chạy dưới tên cluster. Bỏ replacementStarted, gate rollback theo mỗi originalTornDown: một khi proxy + container gốc đã stop thì container gốc chắc chắn biến mất, nên containerManager.stop (xoá theo tên) chỉ có thể chạm replacement — kể cả replacement do start() tạo dở rồi ném. Thêm test: start() ném -> rollback vẫn gọi cm.stop để dọn orphan. * fix(redshift): remove orphan cluster metadata on failed create/restore * fix(redshift): keep failed cluster metadata if proxy stop fails * fix(redshift): fix TooManyActualInvocations in proxy tests * fix(redshift): clear proxyPort on reboot rollback if port is released * fix(redshift): retain reserved port on reboot startup failure * fix(redshift): retain proxy port in reboot rollback and teardown failed startup recovery * fix(redshift): skip failing cluster and retaining dump if reboot fails before teardown |
||
|
|
b76eadc98e |
docs(cloudformation): generate the supported resource-type table (#2739)
The "Supported Resource Types" table was hand-maintained, and had drifted: ten provisioned types were undocumented, including the whole CloudFront row, Lambda's Permission/MicrovmImage/NetworkConnector, RDS DBProxy and DBProxyTargetGroup, ECS capacity providers, EC2 VPCEndpoint and ApiGatewayV2 Authorizer. Generate it from the provisioner inventory TSV that CfnResourceInventoryTest already pins to the CDI-resolved registry, so the table cannot drift from what Floci actually provisions. Wired into docs-sync and docs-check, with the inventory path added to the workflow filters: it lives under src/test/resources, which src/main/** did not cover, so a slice that moved a type between owners would have skipped the gate. The table is prose as much as data, so presentation stays configurable in cfn_resource_types.yaml: service labels, curated type order (types not listed there are appended alphabetically, so a new type still appears), per-type notes, and extra_types for capabilities that are real but are not provisioner types, each needing a stated reason. Nested Stack and the Custom::* wildcard are the two such entries; the wildcard cannot be an inventory type because the registry is keyed by exact type. The generator reads the TSV rather than the Java because several provisioners return Set.of(CONSTANT, CONSTANT) from resourceTypes(), which a source regex only partly sees. Also flags two things cheaply, before anyone waits on a Quarkus boot: a provisioner missing @ApplicationScoped, and a type claimed by both the legacy switch and a provisioner. |
||
|
|
54dacfc56f |
ci: stop the compat jobs writing per-PR image caches (#2725)
These were the two buildx scopes left writing from pull_request runs after #2634, and they had grown into the largest single consumer of the repo's 10 GB Actions cache budget: 5.57 GB across 19 open PR refs, against 2.49 GB on main. Actions caches are ref-scoped, so none of it was readable by any other PR. floci-native: remove the cache entirely. The image COPYs a natively compiled binary that changes every commit, and Docker layer reuse is sequential, so nothing after that COPY can ever be reused. Measured on a real run, the build imported a cache manifest and then reported zero CACHED layers — it was write-only, while mode=max stored the whole image including that volatile multi-hundred-MB layer on every PR. The step costs ~19-28s with or without it. compat-shim: keep the cache but move production to main. This image builds FROM a published floci/floci tag and its cost is a microdnf install that changes only when the Dockerfile does, so its layers are genuinely stable and worth caching — the defect was only that no producer existed on main, so a PR's first run could never hit. warm-compat-caches.yml grows a `shim` job mirroring the consumer's context, file and build-args; the consumer becomes read-only. A one-off purge of the existing refs/pull/* entries is still needed after this merges, as it was for #2634 — the change stops the writes but does not reclaim what is already stored. |
||
|
|
5d04667804 |
ci: give the nightly native builds a maven cache that can actually hit (#2724)
Both nightly build jobs used setup-graalvm's `cache: maven`, which could never hit here. Its restore hashes the pristine pom.xml, but the post-job save runs *after* `mvn versions:set` has rewritten that pom, so the two keys never match. The nightly version also embeds the date, so the save key changed every night — 08-28 saved ...0d0497deb231, 08-29 saved ...476d856e99e8. Both jobs therefore logged "maven cache is not found" on every run while writing 222 MB per job per night under a key nothing would ever read, and paid ~66s of cold dependency resolution each time. Drop `cache: maven` and restore ci.yml's key instead. Both jobs check out `ref: main`, so the pristine pom hashed here matches the one ci.yml hashed when it saved from a push to main, and placing the restore before `versions:set` keeps it that way. Restore-only: ci.yml is the single writer, and saving here would recreate the mutated-key garbage. Expect most of the ~66s per job rather than all of it — `-Dnative` pulls native-image plugins that ci.yml's `mvn test` never fetches, and the arm64 job restores an x64-populated ~/.m2 (Maven artifacts are arch-neutral, so only classifier-based natives re-download). |
||
|
|
f4328b8854 |
ci: save the maven cache from main only, not from every PR (#2713)
Actions caches are ref-scoped: a pull_request run's write lands in refs/pull/N/merge where no other PR can read it. ci.yml saved ~/.m2/repository on every run, so each open PR stored a ~201 MB byte-identical duplicate of the copy main already publishes under the same key — 1.61 GB across 8 open PRs when measured, against a 10 GB repo-wide budget that had just been brought back under control. PRs already restore main's copy: four sampled PR runs all logged "Cache restored from key: maven-Linux-a80d20aaec", the key main holds. Their own save adds nothing, and main sees ~15 qualifying pushes a day so its copy stays fresh. Restore is untouched and still runs on every shard of every event; only the save is gated. A PR that edits pom.xml now misses this exact key, falls back to the restore-keys prefix for the bulk, and re-downloads its delta each re-run instead of caching it. pom.xml changed 21 times in the last 30 days, so that is a small minority of PRs paying a small delta. |
||
|
|
e07ddcf155 |
ci: cache compat test images on main instead of per-PR (#2634)
Actions caches are ref-scoped: a pull_request run may read the base branch's caches, but its writes land in refs/pull/N/merge, private to that PR. compatibility.yml is pull_request-only and no workflow on main wrote buildx caches, so main held 3 cache entries while four PR refs held ~3.07 GB each — 13.24 GB against GitHub's 10 GB repo limit. Every PR therefore built all eight compat test images cold and wrote a private copy no other PR could read, and LRU eviction removed entries even between a single PR's own runs. The sdk-test-java image build, which sits on the compat critical path, swung between 29s and 211s at random: 2 cache hits in 12 sampled runs. Add warm-compat-caches.yml to populate the scopes on main, and drop cache-to from the legs so they read that one shared copy. PRs now get a warm read on their first run, which was previously impossible. The warm triggers watch dependency-bearing inputs only, since 182 of the last 90 days' commits touched compatibility-tests/ but just 31 touched a manifest. sdk-test-go is the exception and is watched wholesale: its Dockerfile runs `go mod download` after `COPY . .`, so any source change invalidates its dependency layer. The existing 13 GB is not cleaned by this change; the PR-scoped entries need a one-off purge after merge, or they will keep evicting the main cache this adds. |
||
|
|
273e62d17e |
ci: restore ci.yml's maven cache in the compat native build (#2636)
setup-graalvm's `cache: maven` keys on setup-graalvm-Linux-maven-<hash>, a key only this pull_request-only workflow ever writes. Actions caches are ref-scoped, so every write landed in refs/pull/N/merge where no other run could read it: build-native logged "maven cache is not found" on 6 of 6 sampled runs while dutifully saving 211 MB each time. That cost ~66s of cold dependency resolution — 1,398 "Downloading from" lines — inside an 8.6m job that serially gates all eight compat legs. ci.yml already saves ~/.m2/repository on every push to main under maven-<os>-<hash(pom.xml)>. Restore that key here instead, read-only so ci.yml stays the single writer and the two never race. Expect most of the ~66s back rather than all of it: runner.os is Linux on both sides but ci.yml runs x64 while this runs arm64, so classifier-based native artifacts still re-download, and `-Dnative` pulls native-image plugins that ci.yml's `mvn test` never fetches. nightly.yml carries the same `cache: maven` and also misses, but for a different reason — it saves to a main-scoped key daily and is evicted by the repo's cache overrun rather than by ref-scoping. Left untouched; it should recover once that overrun is resolved. |
||
|
|
47034394d1 |
ci: surface per-class timings from the compatibility test legs (#2507)
* ci: surface per-class timings from the compatibility test legs The slowest compatibility leg (sdk-test-java, ~10 minutes) is a black box: the container entrypoint runs the build tool quietly, so the job log shows pass/fail but no per-class times, and the junit XMLs the suites already export to test-results/ are discarded after the summary step. - Report the slowest 25 classes (and the suite total) in the job log and step summary, parsed from the exported junit XMLs. - Upload test-results/ as a per-leg artifact so timings are machine-readable across runs. - Extend the leg's sparse checkout to include .github/ci for the parser. No test behavior changes; the report step never fails the job. * ci: retrigger compatibility legs when the timing parser changes * ci: make the timing reporter total and the report step non-fatal The reporter promised it never fails the job, but only ET.ParseError was caught: a locale-formatted time attribute (ValueError) or an unreadable path (OSError) would exit non-zero and fail an otherwise-green leg. Catch both with a stderr warning naming the file, and add continue-on-error to the report step so the property holds regardless of parser changes. |
||
|
|
9b74281c2a |
ci: fail pull requests whose commits carry AI attribution trailers (#2545)
* ci: fail pull requests whose commits carry AI attribution trailers CONTRIBUTING.md and AGENTS.md both say not to include Co-Authored-By trailers for AI tools, but nothing enforced it, so the rule was only ever caught by a human reading the commit list. Three commits reached main carrying one: |
||
|
|
257e004600 |
ci: shard Build and Test into a 4-way profile-grouped matrix (#2506)
The suite grew past its timeout: 7,855 tests in mid-July to 11,800 today, 19-20 minute runs against the (now 30-minute) cap, with 51 serialized Quarkus augmentations before any test executes. Sharding is the only >3x lever. - 4 shards, each a deterministic slice computed at runtime from the compiled test classes, so a new package can never silently fall outside every shard. - Group-by-profile partitioner: classes sharing a @TestProfile land in one shard atomically, since per-shard augmentation cost is distinct profiles times ~5.4s and a split group pays its augmentation once per shard. - ci-summary aggregation gate fails on any shard failure, any class assigned to two shards, or any class assigned to none, checked against the same commit's own class list rather than a hardcoded count. - The maven cache step is split into restore (all shards) / save (shard 1 only) so four shards do not race one save key. - Best-effort background Docker image prefetch per shard, pulling only the images that shard's tests use. - Per-shard timeout drops to 15 minutes; expected worst shard ~5.5-6.5 min. |
||
|
|
a68bfc4e68 |
fix(ci): replace setup-java's broken maven cache with actions/cache (#2503)
* fix(ci): replace setup-java's broken maven cache with actions/cache
setup-java@v5.6.0's built-in cache: maven has never worked on this
repo: every run restores nothing ("maven cache is not found") and then
fails to save ("Path Validation Error: Path(s) specified in the action
for caching do(es) not exist"), so every single CI run resolves the
full dependency tree cold. Confirmed across 3 independent runs, no
custom localRepository override anywhere that would explain it -
looks like a bug in this pinned action version.
Uses actions/cache directly instead, keyed on pom.xml's hash - the
same underlying mechanism setup-java's option wraps, just debuggable
and not broken. Free (GitHub Actions cache storage is free up to
10GB/repo), same runner, no test/build logic touched.
* fix(ci): scope the maven cache key to the root pom.xml only
hashFiles('**/pom.xml') also picked up
compatibility-tests/sdk-test-java/pom.xml, a separate project this
workflow never builds - its own paths: trigger only watches the root
pom.xml. An unrelated change there would bust the cache key and cost
this fix its whole point on the next run.
|
||
|
|
59c6f772cb | chore(ci): raise the test job timeout to 30 minutes (#2502) | ||
|
|
0f888dc1ff | docs: restore navigation for existing pages (#2252) | ||
|
|
9fda5f5919 |
fix(compat): install AWS CLI v2 in the compat image so AWS_ENDPOINT_URL is honored (#2315)
* fix(compat): shim aws to inject --endpoint-url from AWS_ENDPOINT_URL, add CI smoke test * fix(compat): migrate to AWS CLI v2, drop the endpoint-url shim --------- Co-authored-by: doraemon2200 <106516578+doraemon2200@users.noreply.github.com> |
||
|
|
9fccf7cd38 |
docs: add MAINTAINERS.md and route application code to the repo maintainers (#2320)
The org-wide GOVERNANCE.md states that maintainers are listed in each repository's MAINTAINERS.md, but no repository had one. Add it here, following the org-level template so the family does not drift into per-repo dialects. CODEOWNERS gains area rules so application-code PRs reach this repository's maintainers. Every Lead-reserved path is unchanged, and no default * owner is introduced, so review routing gains a reviewer without funnelling every PR through one person. |
||
|
|
cc6e96de69 |
chore(release): make CHANGELOG.md automation-owned (#2138)
* chore(release): make CHANGELOG.md automation-owned Per ecosystem decision 0008: - remove the hand-maintained [Unreleased] section (its entries are all represented by Conventional Commits since the last tag and appear in the next generated release section) and the stale [Unreleased] link reference - new preamble stating the file is generated by semantic-release — a contributor's Conventional Commit message IS the changelog entry; historic Keep a Changelog sections remain below - set changelogTitle in .releaserc.json so semantic-release inserts new release sections BELOW the preamble instead of prepending above the file title (observed live in the first automated release) - new changelog-guard workflow: PRs touching CHANGELOG.md fail unless they carry the changelog-edit override label - CONTRIBUTING: replace the retired release/x.y.x recipe with the Release Cut flow and the do-not-edit rule * docs(contributing): finish retiring release-branch guidance Review follow-up: the Release awareness / Branching Model sections still described release/x.y.x branches as the stable lines, contradicting the main-only Release Cut flow this PR documents. Releases are cut from main; the release-branch row/claim is removed (reintroducible if maintenance lines ever return). |
||
|
|
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. |
||
|
|
42d94c62ee |
ci: add reusable JVM and native image publishing (#1936)
* ci: add reusable image publishing Provide a workflow_call contract that builds native amd64 and arm64 artifacts and publishes native and compat multi-architecture images for an exact caller-selected source revision. Keep registry authority in the caller and return immutable digest references plus provenance for downstream tests. * fix(docker): use glibc in JVM development image Use an Ubuntu-based Java 25 runtime so the JVM image can host glibc-linked integrations while preserving the existing entrypoint, tooling, and architecture behavior. * ci: publish JVM images by default * fix(ci): harden reusable image builds * docs(ci): clarify image registry input * fix(docker): locate the installed AWS CLI * fix(ci): tag images by build time and revision |
||
|
|
9bbe9ffeb9 |
chore(deps): bump actions/setup-python from 6 to 7 (#2081)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
0af0ec7c26 |
chore(deps): bump the actions-minor-patch group with 7 updates (#2080)
Bumps the actions-minor-patch group with 7 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` | | [actions/setup-java](https://github.com/actions/setup-java) | `5` | `5.6.0` | | [graalvm/setup-graalvm](https://github.com/graalvm/setup-graalvm) | `1.5.6` | `1.6.3` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `4.1.0` | `4.2.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `7.2.0` | `7.3.0` | | [docker/login-action](https://github.com/docker/login-action) | `4.2.0` | `4.5.1` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `6.2.0` | `6.2.3` | Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v7.0.0...v7.0.1) Updates `actions/setup-java` from 5 to 5.6.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v5...v5.6.0) Updates `graalvm/setup-graalvm` from 1.5.6 to 1.6.3 - [Release notes](https://github.com/graalvm/setup-graalvm/releases) - [Commits](https://github.com/graalvm/setup-graalvm/compare/6f3fa030c4b8f77c1f554a860f593a654538fa38...0def53c0fd8534bc13416c9469f5be45265824fd) Updates `docker/setup-buildx-action` from 4.1.0 to 4.2.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5...bb05f3f5519dd87d3ba754cc423b652a5edd6d2c) Updates `docker/build-push-action` from 7.2.0 to 7.3.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/f9f3042f7e2789586610d6e8b85c8f03e5195baf...53b7df96c91f9c12dcc8a07bcb9ccacbed38856a) Updates `docker/login-action` from 4.2.0 to 4.5.1 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/650006c6eb7dba73a995cc03b0b2d7f5ca915bee...abd2ef45e78c5afb21d64d4ca52ee8550d9572c7) Updates `aws-actions/configure-aws-credentials` from 6.2.0 to 6.2.3 - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v6.2.0...v6.2.3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-minor-patch - dependency-name: actions/setup-java dependency-version: 5.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor-patch - dependency-name: graalvm/setup-graalvm dependency-version: 1.6.3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor-patch - dependency-name: docker/setup-buildx-action dependency-version: 4.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor-patch - dependency-name: docker/build-push-action dependency-version: 7.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor-patch - dependency-name: docker/login-action dependency-version: 4.5.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor-patch - dependency-name: aws-actions/configure-aws-credentials dependency-version: 6.2.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions-minor-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
9e90e5cff3 |
perf(docker): stop duplicating the native binary into a second image layer (#2069)
Both native Dockerfiles wrote the ~196 MB binary into the image twice. A RUN that
renames or chmods a large file rewrites the whole file into a new layer, so the
published image carried two copies of it:
110 MB ubi9-minimal base
18.8 MB microdnf install
196 MB COPY --chown=1001:root native/<arch>/ /app/
196 MB RUN mv /app/*-runner /app/application && chmod +x /app/application
Set the mode in the COPY itself and move the rename out of the image and into the
build pipeline, which now stages the binary as native/<arch>/application.
Dockerfile.native does the same with a single COPY --chmod=755 --from=build.
Measured on linux/arm64 against floci/floci:1.5.34, with a 196 MB binary on both
sides so the comparison is like for like:
uncompressed 521 MB -> 325 MB
compressed 168 MB -> 104 MB (sum of gzip -6 layer blobs; Docker Hub
reports 166.1 MB for 1.5.34)
layers 8 -> 6
No behaviour change. The only filesystem difference in the resulting image is
quarkus-artifact.properties, now 0755 rather than 0644, because --chmod applies to
every file in the staged directory. /app and /app/data keep 0775 and uid 1001:0 for
arbitrary-uid (OpenShift) runs, and /app/application keeps 0755 — docker/entrypoint.sh
gates its default command on [ -x /app/application ].
|
||
|
|
00d59b4963 |
chore: add an advisory open-PR limit notice (#2047)
The review backlog is long enough that a single contributor holding many open PRs makes it harder for any of them to get proper attention. This adds a nudge rather than a gate. On open or reopen, a workflow counts the author's open PRs and, above five, adds an `over-pr-limit` label and posts one comment linking their open PRs. It never closes a PR and never fails a check, both paths exit zero. Bots and maintainers are exempt, so dependabot can hold as many as it needs. The comment is posted at most once per PR via a marker, and the label is removed automatically when the author drops back under the limit. `pull_request_target` is used so the token can label fork PRs. The workflow never checks out or runs PR code, it only calls the GitHub API, so the elevated context is not exposed to untrusted input. The policy is documented in CONTRIBUTING.md and docs/contributing.md. Also drops the CONTRIBUTING.md edge-builds section, which described the `edge.yml` workflow removed in #691 and was the last reference to it, and fixes a stray character in the adjacent CI line. |
||
|
|
83fcd12f1c |
ci: attach provenance and SBOM attestations to the published images (#2032)
* ci: attach provenance and SBOM attestations to the published images * ci: restore trailing newline at end of file |
||
|
|
2bea2c0aec |
ci: use the snake_case input names first-interaction v3 expects (#1981)
The step passed repo-token, issue-message and pr-message, which are the v1
names. v3 renamed them to repo_token, issue_message and pr_message, so GitHub
dropped all three as unknown inputs and the action failed on the first required
lookup:
Unexpected input(s) 'repo-token', 'issue-message', 'pr-message',
valid inputs are ['issue_message', 'pr_message', 'repo_token']
Error: Input required and not supplied: issue_message
repo_token looked supplied in the logs only because the action declares it with
default: ${{ github.token }}; the two messages have no default.
Every run since the workflow merged has failed, so first-time contributors got a
red check on their first PR and no welcome comment, which is the opposite of
what the workflow is for.
pull_request_target runs the base branch's copy of a workflow, so this cannot be
exercised from a PR — the next first-time contribution after merge is the check.
|
||
|
|
f36598244d |
chore: welcome first-time contributors and surface the Slack invite (#1968)
First-time contributors' pull requests sit with no CI at all until a maintainer approves the workflow runs, and nothing on the PR explains the wait — recent ones went 10 to 12 days before anyone noticed they had never been tested. The Slack invite was reachable only from the bottom of the README (line 785 of 834). It appeared in neither CONTRIBUTING file, the pull request template, nor either issue template, so contributors arriving through those paths never saw it. Add a first-interaction workflow that greets a contributor's first issue or pull request; the pull request message leads with why the checks have not started, so the gate reads as routine rather than as neglect. Surface the Slack invite where contributors actually pass: the new-issue chooser via contact_links, the pull request template, and both CONTRIBUTING files. The workflow only posts a comment and never checks out or executes pull request code, so its pull_request_target trigger does not expose the elevated context. |
||
|
|
7d70f64162 |
feat(docs): generate Supported Actions tables from handler source (#1641)
* feat(docs): generate Supported Actions tables from handler source The "Supported Actions" tables in docs/services/*.md were hand-maintained and drifted from the handlers. For example secrets-manager.md omitted RestoreSecret, which SecretsManagerJsonHandler dispatches, and acm.md listed RenewCertificate, which is not implemented anywhere in src/. Derive the action list from handler source so it cannot drift, while keeping the hand-written Description column: - tools/docs/regen_action_docs.py extracts actions from `case "X" ->` switch arms (including multi-label arms) and JAX-RS REST controllers, and rewrites only the rows between the <!-- floci:actions --> markers. Descriptions are preserved by action name; new actions get a "-" placeholder. PascalCase-only matching avoids picking up SCREAMING_CASE labels from non-action switches. - tools/docs/services.yaml registers 18 single-table switch services and lists the remaining switch handlers under deferred_handlers, so the new-service sentinel fires only on a genuinely unregistered handler. - make docs-sync / docs-check / docs-test, plus a Python-only CI workflow that gates on handler, doc, and tooling changes. - Migrate 18 service docs into marker blocks, reconciling real drift (adds RestoreSecret, ImportCertificate, and others; drops the unimplemented RenewCertificate). Revives the parser and CI gate from #738 by @ericbsantana and completes the description-preservation its spec described. REST-mode, mixed-mode, multi-table, non-tabular, S3, and ecr docs are deferred and tracked in deferred_handlers. * docs: drop standalone design spec from action-docs tooling Remove ideas/auto-generated-action-tables.spec.md and the four references to it (CONTRIBUTING.md, Makefile, regen_action_docs.py docstring, services.yaml). It was a planning artifact; the operational docs live in CONTRIBUTING.md and the tooling is self-documenting. The #738 / @ericbsantana credit is preserved in the PR description. * chore: address review on action-docs tooling - pin actions/checkout to v7.0.0 in docs-actions workflow to match the repo-wide bump (#1690), so dependabot does not immediately flag the new file - document in the generator docstring that a switch case label counts as supported purely by existing, so a per-action UnsupportedOperation stub would be a false positive (handlers here reject from the default arm) * docs: regenerate action tables against current handler source Resync the generated Supported Actions tables to handler source after rebasing onto the latest main: - cloudformation: add DescribeStackInstance and DescribeStackSetOperation now emitted by the handler, and keep the implemented StackSet descriptions - cloudtrail: add LookupEvents - firehose: add UpdateDestination - step-functions: add PublishStateMachineVersion, ListStateMachineVersions, DeleteStateMachineVersion - register the cloudcontrol handler in deferred_handlers so the strict unregistered-handler gate passes (no standalone action table yet) * fix(docs): prevent action-table generator from silently dropping actions Address the latest review pass on the action-docs tooling: - switch extraction now captures case arms whose labels wrap across lines (valid Java 14+ syntax). The capture group excludes only `{ } ;` boundaries, so it spans newlines between labels but stops at the arm's `->`. A wrapped arm was previously missed, and docs-check would stay green because the doc and the generated output agreed on the omission, defeating the whole drift-prevention guarantee. - REST extraction skips Javadoc / inline comments between a verb annotation and the method signature; such a line otherwise reset the lookahead and dropped the action. - parse_marker_block raises a descriptive error when a marker is not on its own line, instead of a bare "substring not found". - doc, source, and registry reads/writes are pinned to UTF-8 so generation is locale-independent (the docs contain non-ASCII text). - the docs-actions push trigger watches Makefile and the workflow file, matching its pull_request trigger. Adds regression tests for the multi-line arm and comment-skip paths (20 total). |
||
|
|
ac96a7d292 | docs: adding sponsor section (#1724) |