Skip to content

[WIP] Trigger validation for 24795#24801

Closed
mcollovati wants to merge 2 commits into
mainfrom
validation/fix/jar-token-doFirst-config-cache
Closed

[WIP] Trigger validation for 24795#24801
mcollovati wants to merge 2 commits into
mainfrom
validation/fix/jar-token-doFirst-config-cache

Conversation

@mcollovati

Copy link
Copy Markdown
Collaborator

No description provided.

ingokegel and others added 2 commits June 24, 2026 15:54
The production-mode token-restore action was added as a Jar.doFirst {}
whose lambda captures the whole Project, which can't be serialized for
the configuration cache. It's moved to the block where the
vaadinBuildFrontendToken service is already in scope, and now captures
that service provider instead of the Project.

Fixes #24794
The config-cache regression in #24794 went unnoticed because the
existing configuration-cache tests only run the `vaadinBuildFrontend`
task, which never puts a `Jar`/`War` task in the task graph. The faulty
token-restore action lived on the packaging task, so the cache never
attempted to serialize it.

Add a functional test that runs the `war` task with
`--configuration-cache` in production mode, exercising the packaging
task's `doFirst` action. Against the pre-fix code it reproduces the
`cannot serialize object of type 'DefaultProject'` failure; with the
fix in place the configuration cache entry is stored and reused.

Part of #24794
@github-actions

Copy link
Copy Markdown

Test Results

 1 453 files  ±0   1 453 suites  ±0   1h 27m 16s ⏱️ -37s
10 269 tests  - 4  10 201 ✅  - 4  68 💤 ±0  0 ❌ ±0 
10 741 runs   - 4  10 672 ✅  - 4  69 💤 ±0  0 ❌ ±0 

Results for commit 34a4d7f. ± Comparison against base commit f470e11.

@sonarqubecloud

Copy link
Copy Markdown

@mcollovati mcollovati closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants