Skip to content

Fix XTC Gradle configuration, task outputs, and build caching - #651

Merged
lagergren merged 53 commits into
masterfrom
lagergren/xtc-late-source-roots
Sep 28, 2026
Merged

lagergren merged 53 commits into
masterfrom
lagergren/xtc-late-source-roots

Conversation

@lagergren

@lagergren lagergren commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

This is about a year's worth of things I think have been broken with Gradle but working under weird conditions. Fixed them all, including earlier fixes with Plugin not being completely lazy and respecting source sets. Now updated including more fixes on that.

Description

Gradle tasks in the XTC plugin and its repository consumers can miss late configuration, reuse stale results, overwrite another task's outputs, or perform publication before their validation runs. For example, adding a nested source root could leave compilation incorrectly up to date, and Java resource processing could overwrite transformed XTC resources.

This PR fixes the related plugin and build-logic findings tracked in #652. It contains the original three source/provider fixes, 46 separately reviewable audit commits, and one test-fixture review follow-up: 50 commits, 64 files, +2,397 / −1,445 lines. The issue provides every commit, its size, and its verification evidence.

Categories and why they belong together

Category Corrected behavior Why this is a Gradle/plugin problem
Plugin configuration and task isolation Source roots, resource filters, build directories, redirects, and later source sets remain connected to providers. Run/test tasks own their overrides, honor selected modules/methods/arguments, inherit the right extension, and track test selection as inputs. Java and XTC processed resources have separate outputs. These are plugin DSL conventions, task wiring, launcher argument construction, and Gradle input/output contracts.
Plugin execution services and diagnostics Preserve failure causes and literal messages; identify launcher artifacts independently of consumer versions; close owned classloaders after construction/shutdown failures; fingerprint implementation contents. These classes launch compiler/runtime requests on behalf of Gradle tasks. The changes are in the plugin's adapter/build-service lifecycle, not the XVM interpreter.
Producer dependencies and output ownership Configure Java encoding before snapshotting; use the Unicode Java toolchain; execute the version test task; build module-list producers; avoid eager task realization; give scripts/resources/settings/copies distinct outputs; correct Docker aliases and generated Windows launcher arguments. Each fix makes a Gradle task consume its declared producers and own the files it writes. Generated launcher changes correct distribution assembly.
Native tool downloads and build cache Track tool versions, parser headers, compiler libraries, runtime sources, flags and targets; verify pinned download hashes; constrain tar extraction; publish native-library pairs atomically through one cache implementation. These are custom Gradle download/extraction/compilation tasks and their artifact cache. Parser, scanner, and runtime implementation sources are unchanged.
Packaging, publication, and external actions Package VS Code from staged metadata; produce LSP timestamps during execution or from a fixed epoch; require a stable IntelliJ publication suffix; validate publication entry points before their actions; stage Docker contexts privately and always execute external-state actions. These changes govern build artifacts, publishing prerequisites, and Gradle's model of external state.
Readability and regression coverage Use typed task/extension accessors, remove verified unused helpers, and exercise real plugin configuration/cache behavior. Retain and document the source-directory internal adapter where Gradle's public interface is insufficient. This keeps the same build/plugin code maintainable and tests the contracts changed above. The active top-level module filter remains in XtcCompileTask.

The repository build scripts are consumers of the same plugin and shared conventions. They exposed the same provider, producer, output-ownership, and cache-invalidation mistakes. Keeping the fixes together lets the combined plugin/XDK/language-tool packaging checks verify those contracts across the composite builds. Separate commits preserve review boundaries.

Scope and intentional build behavior changes

The complete diff is limited to plugin/, build-logic/, Gradle build scripts, a native-download checksum manifest, and build documentation. It contains no compiler/interpreter/JIT implementation changes, Ecstasy source changes, language-server/editor implementation changes, dependency version or lockfile updates, or CI workflow changes. The experimental constant-pool/runtime branch and its uncommitted work are excluded. Existing optional-build flags and local-versus-CI formatting policy are preserved.

Build behavior deliberately changes where the old contract was wrong:

  • VSIX output is under lang/vscode-extension/build/distributions/; packaging leaves the tracked source manifest untouched. The obsolete stamp/restore tasks are removed.
  • IntelliJ snapshot publication requires -Pjetbrains.publish.suffix=<unique-build-id>; CI already supplies it. LSP metadata supports -PsourceDateEpoch=<seconds>.
  • Remote publication entry points enforce existing release approval and credentials. Snapshot bundles require a local file destination and a -SNAPSHOT version, without requiring remote credentials; Maven-local publication stays independent.
  • Docker tasks execute on every invocation because a local marker cannot represent registry/image state. Each task uses a private context; the nonexistent standalone manifest alias is removed.
  • Native cache keys change to include actual build inputs. Existing incomplete entries fail explicitly rather than being reused.

P22 remains a documented compatibility boundary: Gradle 9.7.1's nested source-tree handling requires DefaultSourceDirectorySet. A public-interface replacement broke four regressions, including configuration-cache behavior, so this PR retains the small adapter and adds coverage.

Type of change

  • Bug fixes in the XTC Gradle plugin and repository build logic
  • Build-workflow compatibility changes described above
  • Regression tests, documentation, and non-functional cleanup

Related issue

Implements the actionable fixes in #652, with P22 retained as the documented limitation. The issue remains open for review and merge tracking.

How Has This Been Tested?

On Linux x86-64 with the repository's Gradle 9.7.1 wrapper and Java 25 toolchain:

./gradlew :plugin:test --rerun :common-plugins:test --rerun --no-build-cache spotlessCheck :xdk:installDist --console=plain
./gradlew :lang:vscode-extension:packageExtension -PincludeBuildLang=true -PincludeBuildAttachLang=true --console=plain
git diff --check origin/master...HEAD
  • Combined JUnit XML: 53 plugin tests + 44 build-logic tests; zero failures, errors, or skips. Both test tasks actually reran. Repeating the combined command reused the configuration cache; the XDK install and formatting checks passed.
  • Real VSIX packaging passed for the normal 0.4.4 version and two suffixes. Archive inspection checked the JavaScript bundle, server JARs and assets, one LSP metadata file, ten native libraries, and byte-identical source package.json. Repetition reused the configuration cache with compilation, resources, staging and packaging up to date.
  • Review follow-up: native cache unit tests use explicitly synthetic version identifiers rather than current catalog pins. They verify that changing either version changes the cache key; production still reads libs.versions.toml. All 13 focused cases passed twice with zero failures/errors/skips, including configuration-cache reuse, and spotlessCheck passed.
  • Focused regressions cover changed source/resource/module boundaries, task isolation and selection, failure/cleanup paths, native input mutations preserving size/mtime, deterministic concurrent cache builders, invalid archives, and publication policy.
  • Additional real-task checks include all five cross-compiled native-library pairs, tool-version changes, deleted parser-header regeneration, tampered-download rejection, version/project-generation tests, module printing, Unicode fixture generation, and configuration-cache reuse. Per-commit evidence is in Track XTC Gradle plugin correctness and build-practices audit #652.
  • Publication wiring was verified through dependency probes and actual validator failures; Docker behavior used a fake executable. No artifacts or Docker images were published. Windows batch scripts were fixture-tested but not executed on Windows; no IDE GUI integration or full network Unicode-data regeneration was run. Those limits are not claims of end-to-end coverage.

Local test build cost

Measured on the same Linux x86-64 machine (Threadripper 2950X), Gradle 9.7.1, comparing
master d30b5c798 with PR head 056369b6a. Compiled outputs and downloaded dependencies
were already available; "fresh" below means an empty, separate TestKit directory for each
revision, not a clean repository or an empty dependency cache.

Forced plugin test run Master: 19 tests This PR: 53 tests Added command time
Fresh TestKit cache 26.2 s 31.0 s 4.7 s
Populated TestKit cache 12.2 s 14.8 s 2.6 s

These are individual local measurements, not cross-machine performance guarantees. Gradle
profiles isolate actual test-task time at 23.3 → 27.7 seconds for fresh TestKit caches and
11.4 → 14.0 seconds for populated caches. All measured tests passed with zero skips.

The complete 97-test plugin/build-logic command took 21.9 seconds with existing TestKit caches,
including outer build configuration. An unchanged repeat of
./gradlew :plugin:test :common-plugins:test --no-build-cache --profile --console=plain
took 1.1 seconds with configuration-cache reuse and both test tasks UP-TO-DATE.

The root build --dry-run graph includes :plugin:test, but excludes
:common-plugins:test and the standalone :javatools:versionOutputTest.
The 44 new build-logic tests therefore add no execution time to the ordinary root build;
their JUnit test-method time was 2.2 seconds when explicitly requested. No compiler bootstrap
or XDK execution is performed inside the new plugin fixtures.

For reproducibility, the comparison forced :plugin:test --rerun --no-build-cache --profile.
A temporary init script set the test JVM's documented
org.gradle.testkit.dir property
to a different fresh directory for each revision; the same command was then repeated with that
directory populated. The benchmark setup changes no repository files or default test selection.

Checklist

  • Changes reviewed against the plugin/build-logic scope; runtime work excluded.
  • Regression tests and real artifact builds pass locally.
  • Configuration-cache reuse and changed-input behavior checked.
  • Relevant build documentation and the complete issue inventory updated.
  • Formatting/whitespace checks pass and the publication worktree is clean.

@lagergren lagergren changed the title Preserve late configuration in XTC plugin tasks Fix XTC Gradle configuration, task outputs, and build caching Sep 26, 2026
@lagergren
lagergren force-pushed the lagergren/xtc-late-source-roots branch 2 times, most recently from 056369b to 4f3afc6 Compare September 26, 2026 22:05
Addresses P07 in #652. Splits the independently verified launcher-convention fix from faeacc119 for review.
Addresses P08 in #652. Retains the failing-before/passing-after CLI-selection regression from faeacc119.
Addresses P09 in #652. Retains the isolated task-configuration regression from faeacc119.
Addresses P10 in #652. The regression reproduced verify being replaced by run; both adapter outputs now preserve the selected method and arguments.
Addresses P12 in #652. Tests cover absent, empty, and snapshot versions in direct and forked request construction.
Addresses P13 in #652. Also preserves distinct identities for unconfigured DSL objects. Both regressions failed before the fix.
Addresses P17 in #652. A task-level failure regression verifies that the underlying exception remains available.
Addresses P16 in #652. Validate versioned launcher filenames against their own manifest and exclude versioned JIT bridge blobs from the execution classpath. Both regressions failed before the fix.
Addresses P14 in #652. Preserve lazy extension defaults while allowing isolated property mutation and explicit empty overrides. Four regressions cover precedence and late defaults.
Addresses P11 in #652. TestKit reproduced stale UP-TO-DATE results after changing the selected module. The regression covers DSL and CLI module, method and argument changes, followed by configuration-cache reuse.
Completes P10 in #652 for method and argument overrides without --module. Distinguish absent arguments from an explicit empty list and preserve the original DSL configuration. Twelve focused tests pass, including configuration-cache input changes.
Addresses P15 in #652. Follow source-set additions in task registration and existing launchers, and include custom source-set dependencies in compilation. Unit and TestKit regressions cover task execution and configuration-cache reuse.
Keep module discovery in XtcCompileTask and the isolated runtime adapters. Remove the unused duplicate source helpers and the source-set method that always throws. Configuration-cache behavior is checked by actual Gradle execution instead of phase heuristics based on system properties or logger access.
lagergren added a commit that referenced this pull request Nov 9, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 9, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 11, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 11, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 16, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 22, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 22, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
…ion's

A run or test task that names modules (moduleName, moduleNames, module { }) runs those instead of xtcRun's or
xtcTest's, and one that names none runs the extension's, as #651 made them, while a task's jvmArgs add to its
extension's. The README said neither; it now says so beside the runtime configuration, with what adds and what
replaces within the extension or a task.

Validated: ./gradlew spotlessCheck passes; documentation only.
lagergren added a commit that referenced this pull request Nov 25, 2026
…ion's

A run or test task that names modules (moduleName, moduleNames, module { }) runs those instead of xtcRun's or
xtcTest's, and one that names none runs the extension's, as #651 made them, while a task's jvmArgs add to its
extension's. The README said neither; it now says so beside the runtime configuration, with what adds and what
replaces within the extension or a task.

Validated: ./gradlew spotlessCheck passes; documentation only.
lagergren added a commit that referenced this pull request Nov 25, 2026
…ion's

A run or test task that names modules (moduleName, moduleNames, module { }) runs those instead of xtcRun's or
xtcTest's, and one that names none runs the extension's, as #651 made them, while a task's jvmArgs add to its
extension's. The README said neither; it now says so beside the runtime configuration, with what adds and what
replaces within the extension or a task.

Validated: ./gradlew spotlessCheck passes; documentation only.
lagergren added a commit that referenced this pull request Nov 25, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 25, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 26, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 26, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 26, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 26, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 27, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 27, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 28, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 28, 2026
The IntelliJ tour's run 11 (run-tour-4354703632780342353) failed
"Tests with Gradle": the Run window never showed, DeckTest with Gradle
had no results, and so "embedded and Gradle runs give each test the
same result" had nothing on Gradle's side. The plugin ran
`./gradlew -q testXtc --module=DeckTest --test-report=json`, which
ended in about 2.5 s with no events; the check of testXtc from the
Gradle window shows why, as its output reads "> Task :testXtc
FROM-CACHE". testXtc is a @CacheableTask, and xunit's report, which
--test-report=json adds, is the tests' output that the IDE's test
console reads as they run, which no cached or up-to-date result
prints. A run whose inputs had not changed since an earlier one, in
the container's Gradle cache from run 8b's same run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache,
as the run of 09:12 did, and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: isWatched() says whether a debugger or a
tool watches the run, and the task's up-to-date check and a second
doNotCacheIf ask it. A plain testXtc stays up to date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 29, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 29, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 30, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Nov 30, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
lagergren added a commit that referenced this pull request Dec 1, 2026
A run of the IntelliJ tour failed "Tests with Gradle": the Run window
never showed, DeckTest with Gradle had no results, and so "embedded and
Gradle runs give each test the same result" had nothing on Gradle's
side. The plugin ran `./gradlew -q testXtc --module=DeckTest
--test-report=json`, which ended in about 2.5 s with no events; the
check of testXtc from the Gradle window shows why, as its output reads
"> Task :testXtc FROM-CACHE". testXtc is a @CacheableTask, and xunit's
report, which --test-report=json adds, is the tests' output that the
IDE's test console reads as they run, which no cached or up-to-date
result prints. A run whose inputs had not changed since an earlier one,
in the container's Gradle cache from an earlier run, gave the IDE
nothing. VS Code's Gradle test runs, which pass the same options, have
the same gap.

Not a regression of the day: --test-report came with 2f18c13 (#757,
"Let testXtc run chosen tests, and report them for a tool"), on a task
that 5d88b64 (#651) had made cacheable; a run passes on a cold cache
and fails on a warm one.

testXtc with a test report is now never up to date and never cached, as
a debugged run already was: a static helper, watched(task), says whether
a debugger or a tool watches the run, and the task's up-to-date check
and a second doNotCacheIf ask it. It is no getter, which Gradle would
take for a property and fail, in the task's run and in validatePlugins,
for its missing input or output annotation. A plain testXtc stays up to
date and cacheable.

Test: XtcRunConfigurationTest.reportedAndDebuggedTestRunsAlwaysRun: a
plain testXtc is up to date and cacheable; with --test-report=json it is
neither; a debugged one is not up to date. It fails without the change,
on the reported run being up to date. Run with --rerun: the class's 13
tests, 0 skipped, 0 failures. :plugin:validatePlugins, which `check`
runs, passes; with the check as a getter it fails on that property,
which XtcRunConfigurationTest, building the task with ProjectBuilder,
cannot see.

Limits: the container's published plugin carries this only once the
playbook's build publishes it, as each container run does from its
export.
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