* fix(docker): start the Windows binary with or without Docker running
The 2.4.0 Windows standalone binary exited at startup with an
UnsatisfiedLinkError for Java_com_sun_jna_Native_open. docker-java's
named-pipe socket calls JNA when the pipe does not open at once, and
JNA was initialized at image build time, so its native dispatch library
was loaded into the builder and never into the binary. JNA is now
initialized at run time, its JNI metadata (from
oracle/graalvm-reachability-metadata, CC0) and a proxy registration for
NamedPipeSocket$Kernel32 are bundled, and FlociDockerHttpClient turns a
LinkageError from the transport into an exception, so a JNA that still
cannot load fails that one Docker call instead of the whole emulator.
With JNA working, a Windows host without Docker never answered its
health check: docker-java retries a missing pipe for the whole 30 s
connect timeout, and DockerRetry retried the NoSuchFileException six
times. The pipe is now opened once first and a missing or denied pipe
fails at once, keeping docker-java's wait loop for a busy pipe, and
DockerRetry no longer retries either error.
The release smoke script prints both ends of a long log on failure.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* test(docker): skip the named-pipe client tests on Windows and name the tolerated exception
Both tests stand a temporary directory in for a pipe, which only behaves that way off Windows: there a directory opens as access-denied and Kernel32 loads. The busy-pipe catch now names its exception expected, as AGENTS.md asks for a tolerated one.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
---------
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
On Ubuntu 26.04, which ubuntu-latest is moving to, the amd64 native
binary asks glibc for x86-64-v3 whatever -march says, so it does not
start on x86-64-v2 CPUs. Pin the amd64 native jobs to ubuntu-24.04, as
the arm64 jobs are, and check the ISA level after the nightly and
release builds, so CI catches it next time.
* chore(release): publish standalone floci-aws binaries as release assets
The release already built Linux native executables, but only to package them
into the images; they were discarded after a day and releases carried no
assets. Users without Docker had nothing to download.
release.yml now also builds macOS (arm64, and x86_64 under Rosetta) and Windows
x86_64 binaries with GraalVM Community, smoke-tests every binary on its own
runner with .github/scripts/smoke-binary.sh (version matches the tag, SQS and
DynamoDB round trips, clean stop on SIGTERM), and checks that the Linux amd64
binary still starts on glibc 2.34 (Ubuntu 22.04). A new publish-binaries job,
the only one with write access to the release, stages the six executables as
floci-aws-<os>-<arch>, writes sha256sums.txt, signs every file with keyless
cosign sign-blob, attests build provenance, and uploads them to the release
semantic-release created. Build artifacts are kept 7 days so that job can be
re-run on its own.
make native-install now installs floci-aws, since floci is the CLI.
Refs #5767
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* fix(release): check the glibc 2.34 floor on every Linux binary and wait for the release
Review follow-ups for the binary release jobs:
- The floor check started the amd64 binary on Ubuntu 22.04, whose glibc is
2.35, so a binary that needed 2.35 would have passed. check-glibc-floor.sh
now reads the newest GLIBC_ symbol version the binary requires with
readelf and fails above 2.34, then starts it in UBI 9, whose glibc is 2.34.
- The two arm64 builds had no floor check at all; they run the same script.
- publish-binaries waits up to 10 minutes for semantic-release to create the
GitHub Release before uploading, instead of failing if it is not there yet.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
* fix(release): build darwin-amd64 with a pinned, checksummed GraalVM Community
The macOS x86_64 job downloaded Oracle GraalVM from download.oracle.com's
"latest" URL: not the Community build the job's comment names, unpinned and
unchecked, though its output is then signed and attested as ours. It now
fetches GraalVM Community 25.0.1, the last release with a macOS x64 build,
from graalvm-ce-builds and checks it against the published SHA-256 before
extracting it.
The publish-binaries header said semantic-release creates the release
before pushing the tag; it pushes the tag first, as the upload step says.
Signed-off-by: Hector Ventura <hectorvent@gmail.com>
---------
Signed-off-by: Hector Ventura <hectorvent@gmail.com>