Skip to content

Test Maven hosted, vendored and agent modes against production - #2118

Merged
Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
test/maven-production-e2e
Nov 18, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
test/maven-production-e2e

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

What is now covered

Production has published one free Maven patch since 2026-10-23: pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.7.9.2, patch 8e82692a-a5bd-40ac-97a7-4f1483449fd6 (GHSA-qr7j-h6gg-jmgc / CVE-2018-11307). It replaces one class, SubTypeValidator, at class-file version 50 (Java 6). The production suites still said Maven had no free patch and only watched for one.

This adds one Maven leg per mode. All three share one fixture, crates/socket-patch-cli/tests/maven_production/mod.rs:

Test Suite Mode
maven_hosted_jackson_databind_delivery e2e_hosted_production hosted
maven_vendored_jackson_databind_delivery e2e_vendored_production vendored
maven_agent_jackson_databind_delivery e2e_vendored_production, beside the Go agent leg (agent mode has no production suite of its own) agent

Each leg runs the real CLI against patches-api.socket.dev on the anonymous free tier and real Maven against Maven Central, with its own home directory and Maven local repository. Nothing is mocked.

  1. Upstream build. mvn compile plus dependency:build-classpath on a project that depends on jackson-databind 2.7.9.2. The project's own class, compiled by Maven against the dependency, runs on the classpath Maven resolved. The JVM must load SubTypeValidator from the upstream jar with the fix absent (its deny list lacks org.apache.ibatis.parsing.XPathParser).
  2. Apply with get <uuid> --mode <mode>, then build again:
    • hosted: a fresh checkout of the committable files. The pom pins 2.7.9.2-socket.8e82692a on the Socket repository, the local repository does not hold that version before the build, Maven downloads it from patch.socket.dev, and the jar's sha256 is the one in .mvn/checksums/checksums.sha256.
    • vendored: a fresh checkout built with mvn -o. The resolved jar is byte for byte the committed .socket/vendor/maven2/… jar.
    • agent: mvn -C -U. Maven keeps the swapped jar, and its .sha1 describes it.
    • all modes: the resolved artifact set (file name and sha256) is identical to the upstream build's except for jackson-databind. The applied jar holds the same file members as the original; every member the production record (/patch/view/<uuid>) does not name is byte for byte the original's, and each one it names goes from the record's beforeHash to its afterHash. The JVM loads the patched class from the jar Maven resolved, with the fix active.
  3. The drop-in check (next section).
  4. Undo with rollback. Every file is restored byte for byte, Maven resolves the original artifacts again (same paths, same sha256), and the JVM loads the unpatched class. For hosted and vendored the project tree must equal the tree before the patch. For agent, the artifact's directory in the local repository must hold exactly the files it held before, and no other file Maven had cached may differ. The project keeps an empty manifest and the backup of the original jar under .socket/jvm-originals/, which is the documented design; the leg accepts exactly those two files.
  5. Apply with scan --package <purl> --mode <mode>, undo with remove <uuid>. Same restored state, same Maven check.

Step 2 pins the patch by UUID, so another patch published later for the same release cannot change what is tested. If scan then selects a different patch in step 5, the leg prints a NOTE and still holds the undo to the same standard.

The leg skips (and fails under the strict flags CI sets) only when it cannot run at all: no Maven, no JDK, or an upstream build that could not resolve from Maven Central. Every other failure, the upstream build's included, fails the test.

The drop-in check

On each JDK the run provides, every class of the original jar and of the applied jar is loaded and linked beside the same dependency jars (DropIn.java, compiled by that JDK itself, since current compilers cannot emit class files for the oldest runtimes). The two reports must be identical: the same classes link, the same ones fail with the same error, and each replaced class initializes and keeps its public and protected members. Only the fix may differ. Each replaced class must also keep the class-file version of the class it replaces.

JDKs in CI

Java Source If it is missing
8, 11, 17, 21 the runner image's JAVA_HOME_<N>_X64 actions/setup-java (temurin) installs all four, the fallback the e2e job's JVM legs use
25 the runner image, when it has it left out; nothing is downloaded
6 azul/zulu-openjdk:6 in a container, pinned by digest left out with a workflow warning; the job does not fail

How I checked what CI can provide:

  • GitHub's ubuntu-24.04 image (README of image 20261111.370.1) ships Java 8.0.512, 11.0.33, 17.0.21, 21.0.13 and 25.0.5 as JAVA_HOME_<N>_X64. hosted-e2e runs on a Depot runner, and I could not inspect that image, so 25 is used only when present and the other four fall back to setup-java. Temurin publishes all of them for Linux x64 (Adoptium API).
  • No setup-java distribution offers Java 6 or 7. Zulu is the one that used to. The pinned action (v6.0.1) resolves distribution: zulu from Azul's metadata API; its exact query for Linux x64 glibc returns 218 packages, Java 8 to 27. The catalogs it reads for Liberica (8, 10 to 27), Red Hat (8, 11, 17, 21) and Corretto (8, 11, 15 to 27) start at 8 too. The remaining distributions are lines that start at 8 or later; I did not query those.

Java 6. scripts/container-jdk.sh makes a stand-in JDK home whose bin/java and bin/javac run inside an image. The fixture already takes any directory with those two tools as a JDK, so the legs need no special case.

  • Image: azul/zulu-openjdk@sha256:0165cd4f…e7f7a. That is what the tag 6 points to on Docker Hub (last pushed 2018-11-07; a schema 2 manifest, so current Docker engines pull it; linux/amd64; 113 MB). Inside: Zulu 6.22.0.3 (OpenJDK 6u119) on Ubuntu 18.04.
  • Terms: the JDK directory carries the GPLv2 LICENSE, the OpenJDK assembly and Classpath exceptions, and Azul's DISCLAIMER, which says the open-source licences prevail. Azul's current "builds of OpenJDK Terms of Use" call Zulu builds "100% open source", provided as is, with no support owed; the Docker Hub page says they are "available for free unlimited use". I found no restriction on running it in CI. It is unmaintained: Azul's support roadmap ends Java 6 in December 2018 except for paying customers, its download API lists no Java 6 build, and Docker Hub marks the tag inactive, so it could disappear. The digest pin means it cannot change.
  • Bounds: the pull is capped at two minutes, each tool run at 300 s inside the container and 330 s for the client. The tools run with --network none, as the runner's user, with only the legs' temp directory mounted.
  • Soft skip: when Docker is missing, the pull fails or times out (Docker Hub rate-limits shared runners), or the image does not run, the script exits 3 and the step prints a workflow warning. The legs then run on Java 8 and later. Each leg prints the Java versions it ran on.

When the legs run

All three run in one step of the hosted-e2e job, "Run Maven production e2e (hosted, vendored, agent)", with the filter --ignored maven_ over both suites. The hosted suite's own step skips them (--skip maven_). The job runs on:

  • every push to main;
  • pull requests that are not drafts (opened, synchronize, reopened, ready_for_review);
  • every merge-queue entry;
  • the nightly schedule (05:41 UTC);
  • manual dispatch, unless os is windows or macos.

No label is involved, and CI_SCOPE does not scope the job. ci-ok needs it, so the legs are merge-blocking.

Outages

The same on every event, a merge-queue run included.

  • Socket's API or patch server is down. The existing "Run hosted-mode production e2e" step fails first, after its three attempts (20 s and 40 s apart), for every ecosystem. The Maven step never starts. If only Maven's routes fail, the Maven step fails after its own three attempts with the same spacing. Either way the bypass is the existing one: set the repository variable HOSTED_E2E_DISABLED=true and re-run the failed jobs. Every step is skipped and the job passes with a BYPASSED banner. There is no Maven-only bypass, as there is none for any other ecosystem.
  • Maven Central is down. Two places use it. The Maven install step tries Central's CDN, then the Apache archive (curl --retry 5 each); this is the script the e2e job's Maven legs already run on every PR and merge-queue entry. Each leg's upstream build tries Central once, then Google's Central mirror twice. If that still fails the leg cannot run, which the strict flags turn into a failure; the step retries all three legs up to three times, then the job fails. Same bypass. The npm, PyPI and RubyGems legs treat their registries the same way, without a mirror.
  • Docker Hub is down or rate-limits the runner. Java 6 is left out with a warning.

What is new for unrelated PRs: one more upstream, Maven Central, which can fail this job the way the npm, PyPI and RubyGems registries already can. Nothing else added here can fail the job on its own: Java 6 and Java 25 are optional, and setup-java runs only if the runner image lacks Java 8, 11, 17 or 21, which ci.yml already counts on every runner image having. A Maven failure no longer reruns the other ecosystems' legs, and their failures no longer rerun Maven's.

The canary

canary_unpublished_ecosystems probes production for free patches in ecosystems the suite has no leg for. By design it never fails: it prints a NOTE unless SOCKET_PATCH_HOSTED_E2E_CANARY_STRICT=1, and no workflow sets that. It has been naming Maven in a passing job since the patch was published. From today's hosted-e2e on main (run 44119917071):

NOTE canary_unpublished_ecosystems: production now publishes free patches for previously-empty ecosystems:
  - maven: pkg:maven/com.fasterxml.jackson.core/jackson-databind -> ["8e82692a-a5bd-40ac-97a7-4f1483449fd6"]
Extend this suite with real install proofs for them (see docs/testing/hosted-production-e2e.md).
test canary_unpublished_ecosystems ... ok

The docs say what to do then: add the catalog fixture, the preflight registration, the install proof and the CI toolchain, and update both coverage tables. This PR does that for Maven. Maven leaves both canaries' lists and joins both preflights; the canaries still watch Cargo, NuGet and Composer, which have no free patch today. The vendored suite's canary is not run by any workflow, and its comment now says so.

Review findings

/code-review high found ten. All ten are fixed in the second commit.

# Finding What changed How I checked
1 Any failure of the upstream build was a soft skip Only a failure to resolve from Maven Central is. Anything else panics. is_resolution_failure is shared from maven_build_common Ran the agent leg, not strict, with a launcher that cannot start under the moved home: FAILED, "the upstream build failed, and not on resolving from Maven Central"
2 The "leg did not run" check anchored on ^MAVEN-PROD Not anchored. libtest writes test <name> ... and ok separately, so another test's line can land between them scripts/tests/test_container_jdk.py pins the pattern
3 delivered_uuid took the first event's UUID The applied event's UUID, then downloaded (vendored names the patch only there) The three legs
4 Maven ran under the moved home without the version-manager roots jvm_env::isolate_cli applies to Maven too, and the global .tool-versions is copied into the leg's home Ran the agent leg with a launcher that behaves like an asdf shim (needs its root and ~/.tool-versions): passed. A unit test pins parity with the CLI's isolation
5 The hosted leg sat inside the hosted suite's retry loop One step for all three legs, own attempts; the suite's loop has --skip maven_ Workflow test; CI runs it first
6 The Maven installer was pasted into hosted-e2e scripts/install-maven.sh, called by both ci.yml jobs test_ci_maven_download.py runs both steps against a fake CDN in every mode
7 Third copy of the /patch/view fetch common/patch_view.rs; the hosted suite's two helpers and the fixture use it The three legs, and gem_bundler_hosted_install_proof locally (verified 4 patched files against afterHash)
8 The local repository was hashed in every mode Only in agent mode, and once per check The three legs
9 A second fresh_checkout maven_build_common::fresh_checkout copies src/ too; the local copy is gone The three legs; cargo check of its other users
10 Fixture::mvn repeated Mvn::run; mvn -v ran twice Mvn::run_with takes an environment hook, and detect keeps the runtime path The three legs

One copy of the installer is left on purpose: gradle-compatibility.yml has had its own since before this PR. Switching it would run that workflow's full matrix on this PR; it can move to the script in a follow-up.

What I ran locally

macOS arm64, Maven 3.9.16, on the tree of the head commit. CI's strict flags, four JDKs:

TMPDIR=…/tmp2 JAVA_HOME_6_X64=…/jdk6-script JAVA_HOME_8_X64=…/jdks/java8 JAVA_HOME_17_X64=…/jdks/java17 \
JAVA_HOME_26_ARM64=/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home \
SOCKET_PATCH_MAVEN_E2E_JAVA=6,8,17,26 SOCKET_PATCH_MAVEN_E2E_REQUIRED=1 SOCKET_PATCH_MAVEN_E2E_VERSION=3.9.16 \
SOCKET_PATCH_HOSTED_E2E_STRICT=1 SOCKET_PATCH_VENDORED_E2E_STRICT=1 \
cargo test -j4 --locked -p socket-patch-cli --no-fail-fast --test e2e_hosted_production --test e2e_vendored_production -- \
  --ignored --nocapture maven_ canary_unpublished preflight_required

jdk6-script is what scripts/container-jdk.sh azul/zulu-openjdk@sha256:0165… …/jdk6-script …/tmp2 wrote (amd64, emulated here). Java 8 and 17 are scratch wrappers of the same shape over eclipse-temurin:8-jdk and :17-jdk; Java 26 is Homebrew's JDK.

running 3 tests
test preflight_required_patches_are_published ... ok
maven_hosted_jackson_databind_delivery: drop-in check on Java 1.6.0-119, 1.8.0_504, 17.0.20.1, 26.0.1
canary_unpublished_ecosystems: cargo / nuget / composer still have no free-tier published patches — their hosted-mode legs remain untestable end-to-end against production.
test canary_unpublished_ecosystems ... ok
NOTE maven_hosted_jackson_databind_delivery: the applied jar carries 0 directory entries, the original 28 (file members are identical apart from the patched ones)
MAVEN-PROD mode=hosted maven=3.9.16 step=build-resolves-patched-jar pass (jackson-databind-2.7.9.2-socket.8e82692a.jar, 2 other artifact(s) unchanged)
MAVEN-PROD mode=hosted maven=3.9.16 step=jvm-loads-patched-class pass (com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator from jackson-databind-2.7.9.2-socket.8e82692a.jar)
MAVEN-PROD mode=hosted maven=3.9.16 step=drop-in pass (java=1.6.0-119 linked 572 of 573 in both jars, the same link failure in both: com.fasterxml.jackson.databind.ext.PathDeserializer: java.lang.NoClassDefFoundError, fix absent -> active)
MAVEN-PROD mode=hosted maven=3.9.16 step=drop-in pass (java=1.8.0_504 linked 573 of 573 in both jars, no link failure, fix absent -> active)
MAVEN-PROD mode=hosted maven=3.9.16 step=drop-in pass (java=17.0.20.1 linked 573 of 573 in both jars, no link failure, fix absent -> active)
MAVEN-PROD mode=hosted maven=3.9.16 step=drop-in pass (java=26.0.1 linked 573 of 573 in both jars, no link failure, fix absent -> active)
MAVEN-PROD mode=hosted maven=3.9.16 step=rollback pass (every file restored byte for byte; Maven resolves the original again)
MAVEN-PROD mode=hosted maven=3.9.16 step=remove pass (every file restored byte for byte; Maven resolves the original again)
test maven_hosted_jackson_databind_delivery ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 32 filtered out; finished in 58.14s
running 4 tests
test preflight_required_patches_are_published ... ok
canary_unpublished_vendored_ecosystems: cargo / nuget / composer still have no free-tier published patches — their vendored-mode legs remain untestable end-to-end against production.
test canary_unpublished_vendored_ecosystems ... ok
MAVEN-PROD mode=agent maven=3.9.16 step=drop-in pass (java=1.6.0-119 linked 572 of 573 in both jars, the same link failure in both: com.fasterxml.jackson.databind.ext.PathDeserializer: java.lang.NoClassDefFoundError, fix absent -> active)
MAVEN-PROD mode=vendored maven=3.9.16 step=drop-in pass (java=1.6.0-119 linked 572 of 573 in both jars, the same link failure in both: com.fasterxml.jackson.databind.ext.PathDeserializer: java.lang.NoClassDefFoundError, fix absent -> active)
MAVEN-PROD mode=agent maven=3.9.16 step=remove pass (every file restored byte for byte; Maven resolves the original again)
test maven_agent_jackson_databind_delivery ... ok
MAVEN-PROD mode=vendored maven=3.9.16 step=remove pass (every file restored byte for byte; Maven resolves the original again)
test maven_vendored_jackson_databind_delivery ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 29 filtered out; finished in 33.21s

The vendored and agent legs print the same lines as the hosted one; only their Java 6 and last lines are shown. On Java 6, one class of 573 fails to link in both jars alike (ext.PathDeserializer, which needs java.nio.file.Path from Java 7).

Also run on that tree:

  • The two launcher checks of findings 1 and 4, and gem_bundler_hosted_install_proof (finding 7): results in the table above.
  • The non-ignored tests of both suites (18 and 17 passed, the fixture's four unit tests among them), spawn_env_hygiene (21 passed) and the cli helper-copy ratchets.
  • cargo check --all-features on both suites and every other test target that includes maven_build_common.
  • rustfmt --check on the touched Rust files; shellcheck on the two new scripts.
  • python3 -B -m unittest discover -s scripts/tests: 418 pass. Seven are new: the container script against a fake Docker (pull, soft skips, digest pin, the exact docker run arguments), the workflow wiring, and both ci.yml installer steps.
  • cargo clippy on the touched test targets: no finding in files or lines this PR adds. With -D warnings these targets already fail on main in common/ and prebuilt_common/ (duplicate_mod, needless_borrow); CI lints only the shipped targets.

Before the review fixes I also ran a negative control for the harness: the applied jar with SubTypeValidator's class-file version raised to 99. DropIn reports link-fail …SubTypeValidator: java.lang.UnsupportedClassVersionError, linked 572 of 573, and exits non-zero.

What CI will be the first to run

This draft does not trigger CI. Nothing in the workflow has run there yet:

  • JDK selection on the Depot runner, including whether it has Java 25, and the setup-java fallback.
  • scripts/container-jdk.sh on Linux: Docker on that runner, the pull by digest, and the image running natively as the runner's user.
  • scripts/install-maven.sh in hosted-e2e and in the e2e job's Maven legs, on Linux, macOS and Windows.
  • The Maven step itself: the legs on Linux x64 with Maven on JDK 17, the drop-in check on Java 11, 21 and 25, and the "leg ran" check.
  • The Windows compile check of the new modules.

Not asserted, and decisions for the owner

  • Packaging. The service's jar carries no directory entries (the original has 28) and stores its members uncompressed. Every file member except the patched class is byte for byte the original's, and the jar links identically on every JDK tried. The legs print a NOTE about the directory entries and do not fail on it.
  • Java 6 is best effort. A run without it is green with a warning. If it should be required, the step's soft skip is the one place to change.
  • The canary's visibility. A NOTE in a passing job was the only signal for 25 days. Options: set the strict flag on the nightly run, or turn the NOTE into a workflow warning. I changed neither.

No product bug found. The CLI's behaviour is unchanged; only tests, scripts, the workflow and docs are touched.


Generated by Claude Code

Production has published a free Maven patch since 2026-10-23
(jackson-databind 2.7.9.2, GHSA-qr7j-h6gg-jmgc), but the production
suites still said Maven had none and only watched for one. Their canary
has printed a NOTE about it on every hosted-e2e run since then, in a
passing job.

Add a Maven leg per mode (tests/maven_production): hosted in
e2e_hosted_production, vendored and agent in e2e_vendored_production,
beside the Go agent leg. Each leg builds a real project with real Maven
from Maven Central, applies the patch with the real CLI against
production, and builds again:

- Maven must resolve the artifacts it resolved before, byte for byte,
  except the patched jar. That jar must differ from the original only in
  the members the patch record names, each matching its afterHash.
- The project's own class, compiled by Maven, runs on the resolved
  classpath: the JVM must load the patched class from that jar, with the
  fix active (and the upstream class, fix absent, before the patch).
- The drop-in check: on every JDK the run provides, every class of the
  original jar and of the applied jar is loaded and linked beside the
  same dependencies, and the two reports must be identical. Each
  replaced class must keep the class-file version of the class it
  replaces.
- rollback, then scan + remove, must each restore every file byte for
  byte, and Maven must resolve the original again.

hosted-e2e gains JDK selection (8, 11, 17, 21, 25 from the runner image,
setup-java for any that are missing), a pinned Maven 3.9.16, and a step
for the vendored and agent legs. No setup-java distribution offers Java
6 or 7 for Linux x64, so Java 8 is the oldest runtime CI checks.

Maven leaves the unpublished-ecosystems canaries, joins the preflight,
and the docs describe the new legs and when the canary's report is seen.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…p-in check

Review findings on the new legs:

- The upstream build returned a soft skip for any failure. Only a failure
  to resolve from Maven Central is a reason not to run now; a launcher
  that cannot start, or a fixture that no longer compiles, fails the leg.
- Maven ran under the leg's own home without the version-manager roots
  (asdf, mise, SDKMAN) the CLI isolation carries, so a `mvn` that is a
  shim failed there. It gets the same roots and the global
  `.tool-versions`.
- The undo removed the patch named on the first event for the package.
  It reads the `applied` event's UUID first, then `downloaded`.
- The hosted leg sat inside the hosted suite's retry loop. All three
  legs run in one step with their own attempts; the suite's loop skips
  `maven_`. The step's "leg ran" check no longer anchors at line start.
- The Maven installer was pasted into hosted-e2e. Both ci.yml jobs call
  scripts/install-maven.sh.
- The fixture carried its own copies of the patch-view fetch, the fresh
  checkout and Maven's argument assembly, ran `mvn -v` twice and hashed
  the local repository in modes that never read it. Those go through
  common/patch_view.rs and maven_build_common (which now keeps the Java
  runtime path and takes an environment hook).

The one live Maven patch is Java 6 bytecode and no setup-java
distribution offers Java 6, so scripts/container-jdk.sh gives the legs a
`java` and `javac` that run in azul/zulu-openjdk:6, pinned by digest: no
network, bounded, only the legs' temp directory mounted. It is best
effort. When Docker or the image is unavailable the job warns and the
check covers Java 8 and later. Java 25 joins only when the runner image
already has it, so neither adds a way for the job to fail.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 17, 2026 19:10
@cursor

cursor Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Expand merge-blocking hosted-e2e with new upstream dependencies (Maven Central, Docker for Java 6) and production API calls; changes are mostly tests, scripts, and workflow wiring rather than product code.

Overview
Adds real Maven production legs for the free jackson-databind 2.7.9.2 patch (hosted, vendored, and agent), including Maven builds, JVM load checks, multi-JDK drop-in verification, and rollback / remove undo paths. Maven is removed from the unpublished-ecosystem canaries and wired into preflight and coverage docs.

CI consolidates Maven install into scripts/install-maven.sh, provisions JDKs (plus optional Java 6 via scripts/container-jdk.sh), and runs Maven tests in a dedicated step with its own retries while the main hosted e2e step skips maven_ tests.

Shared test helpers add common/patch_view.rs for GET /patch/view/<uuid> and extend maven_build_common (Maven env isolation, fresh_checkout including src/, resolution-failure detection).

Reviewed by Cursor Bugbot for commit 85597c8. Configure here.

@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief for 85597c8

What it does: Adds one real-Maven production e2e leg for each mode (hosted, vendored and agent). Each leg runs the live free patch for jackson-databind 2.7.9.2 (8e82692a) against patches-api.socket.dev and Maven Central. Each leg:

  1. Builds upstream and checks that the fix is absent.
  2. Applies the patch and checks the jar against the production record's before/after hashes, with every other artifact unchanged.
  3. Loads the patched class in a JVM, plus a drop-in check on JDK 8/11/17/21, and also 25 and 6 when they are available.
  4. Rolls back and checks the result is byte for byte the original.

In CI the Maven legs move into their own step of hosted-e2e, with up to 3 attempts. The Maven install is factored into scripts/install-maven.sh, and Java 6 comes from a digest-pinned container through scripts/container-jdk.sh, best effort.

Risk: Medium. This is test and CI only, with no product code. But hosted-e2e is in ci-ok's needs, so Maven Central and the production Maven patch now gate every PR and the merge queue. On this head hosted-e2e took about 4.5 minutes of its 30-minute budget.

Look here:

Verified:

  • Reviewed the full diff.
  • The assertions can't pass without the patch: there are absent-fix checks before apply, record-hash checks on the jar, and a JVM probe of the patched deny list.
  • Downloads are SHA512-pinned and fail closed; the scripts use set -euo pipefail.
  • No secrets are used, and ci-ok's needs and the triggers are unchanged.
  • CHANGELOG.md is untouched.
  • cargo check --tests -p socket-patch-cli passes.
  • The fixture unit tests (maven_production::) pass 4/4 in both production test binaries.
  • The Python tests for container-jdk.sh and the Maven download pass (9 tests).
  • CI: ci-ok and clippy are green on this head, and the hosted-e2e Maven legs pass.

Changes I made: None.

Open questions: None blocking. Two to watch:

  1. The agent leg fails on any changed file in the Maven local repository. That would catch a resolver bookkeeping rewrite on the Central-fallback mirror path, so it could flake there.
  2. install-maven.sh now hands a Git-Bash path to native Python on the Windows e2e legs, which only run on full/extended CI. MSYS should convert it, but it is untested here.

Generated by Claude Code

@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Nov 17, 2026
Merged via the queue into main with commit 15c6b8c Nov 18, 2026
83 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the test/maven-production-e2e branch November 18, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants