Skip to content

Mirror Maven Deploy Plugin #684 for JAIPilot Cloud - #1

Open
skrcode wants to merge 1 commit into
baseline/maven-deploy-pr-684from
evaluation/maven-deploy-pr-684
Open

skrcode wants to merge 1 commit into
baseline/maven-deploy-pr-684from
evaluation/maven-deploy-pr-684

Conversation

@skrcode

@skrcode skrcode commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Exact mirror of apache#684 at head b6f2f0f3604c97af00b9d539fd647bafd237abbf.

Evaluation context: this PR caches the reactor-wide projectsWithDeployExecution list in a shared first-project plugin context, but initializes it with a plain get/null-check/full scan/put sequence. Under parallel module mojo execution, multiple callers can miss simultaneously and each repeat the full O(N) reactor scan, undermining the promised O(N)-total bound (and relying on unspecific concurrent mutation semantics of the context map). Look only for one minimal behavior-preserving initialization/complexity improvement in the changed DeployMojo path. Preserve exact project filtering and order, empty-reactor behavior, plugin-context ownership/keying, exceptions, deploy-at-end states, and normal single-thread fast-path results. Prove concurrent first access performs one initialization/full scan with a deterministic barrier/counting test or harness, compare the exact head and candidate across at least five runs where practical, run focused tests, and finish with the repository-native clean build; keep no change if safe atomic initialization cannot be proved.

DeployMojo.allProjectsMarked() calls hasDeployExecution() for every
reactor project on every module invocation. hasDeployExecution() calls
getPluginsAsMap() for each project, producing O(N²) evaluations in a
large reactor build (e.g., 4383² ≈ 19.2M calls in a 4383-module project).

Fix: cache the filtered list of projects with deploy executions in the
first reactor project's plugin context. The list is invariant during a
build. Also simplify allProjectsMarked() to only check the projects
that actually have deploy executions, rather than iterating the full
reactor and testing the disjunction (hasState || !hasDeployExecution).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@skrcode

skrcode commented Aug 23, 2026

Copy link
Copy Markdown
Owner Author

Closed as a zero-count campaign run.

The managed agent found and proved a useful concurrent-initialization improvement (baseline failed 5/5 barrier runs; candidate passed 15/15; final offline mvn verify passed 29/29), but deterministic finalization rejected the packaged artifact before any repository mutation. Supabase function logs identify the exact trust-boundary failure as Invalid verification status at index 2. No companion branch or draft PR was published, and this result is not being rescued or counted.

Anthropic list cost: $2.84; estimated total including runtime: $2.87.

@skrcode

skrcode commented Aug 23, 2026

Copy link
Copy Markdown
Owner Author

Closing the rejected input mirror; no validated companion was published and this counts as zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants