Repository navigation
Commit aabb5de
This PR cherry-picks changes from the original PR #27550 to branch 25.2.
The original commit conflicts on 25.2, so this PR picks the 25.3 pick
#27556 instead, which already adapted the change to an older branch.
> [!WARNING]
> The conflicts of the 25.3 pick #27556 were resolved automatically by
Claude Code, and this pick builds on them. Please review the changes
carefully.
---
> Follow-up to #27463
>
> **build failure** · flow-gradle-plugin · Gradle functional tests on
TeamCity
>
> The Gradle functional tests that use the configuration cache fail on
TeamCity since #27463 (13 tests). The nested test builds were given
every init script of the outer build, including the TeamCity runner's
own script, which registers build listeners. The configuration cache
does not allow those, so the nested builds fail before they start.
>
> **Risks:**
> - ✅ No product code changes: only the Gradle plugin's test harness.
>
> **Context.** The functional tests run nested builds through TestKit,
which uses a Gradle user home of its own, so #27463 passed the outer
build's init scripts on to them for the Maven Central mirror. On
TeamCity the outer build also gets
`/opt/agent/plugins/gradle-runner/scripts/init.gradle`, which calls
`Gradle.addListener` and `Gradle.useLogger`.
>
> - The `functionalTest` task now passes on only
`central-mirror.init.gradle`, and drops any other init script of the
outer build.
> - Without that script, local runs behave as before.
>
Co-authored-by: Marco Collovati <marco@vaadin.com>
1 parent 9cfa23f commit aabb5de
3 files changed
Lines changed: 17 additions & 9 deletions
File tree
- .github/gradle
- flow-plugins/flow-gradle-plugin
- src/functionalTest/kotlin/com/vaadin/gradle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
0 commit comments