Repository navigation
[LSP-PREREQUISITE] Require a compiler consumer in language-tooling CI - #679
Conversation
21e8d6b to
fc41345
Compare
Design rationale: make the producer/consumer boundary executableBuilding Modules are Gradle inputsThe test consumes the composite build's compiled
Keep the core lane usableRequiring a compiler consumer should not make every core language-tooling lifecycle run package both IDE plugins. The new attachment flags keep those packaging lifecycles opt-in, while explicit IDE tasks remain callable. This is a task-lifecycle boundary, not a claim that Gradle never configures or resolves anything associated with an included IDE project. Root inclusion switches and the existing IDE-specific CI lanes retain their roles. Invalidation and the success markerThe shared CI classifier now includes compiler, utility, bootstrap/native bridge, library, XDK, and plugin inputs in the core fingerprint. Relevant version-catalog references also invalidate the consumer. Shared build/workflow changes retain broad invalidation; existing documentation and IDE-specific classification remain selective. This is integrated into the current classifier rather than adding a second path-filter implementation. The existing Ubuntu core job runs The normal Gradle and CI caching policies still apply. Valid cached test outputs may be reused; an XML check alone is not evidence of a newly launched test JVM. The local acceptance below deliberately forced actual test execution. Future required suites need corresponding coverage in the gate; the initial single-suite gate does not promise that every possible compiler interaction is tested. Validation performedThe following invocation ran twice at the pinned commit. Each run executed the consumer with one test, zero failures/errors/skips; the first stored the configuration cache and the second reused it. Both formatting checks passed. ./gradlew :lang:lsp-server:test \
--tests org.xvm.lsp.adapter.CompilerConsumerTest \
--rerun-tasks --no-build-cache \
spotlessCheck :lang:lsp-server:spotlessCheck \
-PincludeBuildLang=true -PincludeBuildAttachLang=true \
--console=plain --infoEleven local synthetic-repository controls checked classification and fingerprint changes, including compiler inputs, shared build logic, the workflow, version catalog, IDE-only edits, and a documentation-only edit. Six result-gate controls accepted valid XML and rejected missing, empty, skipped, failing, and errored results. This foundation uses the existing embedding/listener API and is independent of I1 and I2. The later breaking API work remains planned for 0.5.0. Review and validation boundaryTested commit: Foundation PRs: I1: diagnostic identity, I2: ambient-pool fallback, and this I3 compiler-consumer gate. All three target |
Resolve compiled module variants for an embedding smoke test, detach optional IDE packaging from language-tooling lifecycle tasks, and include compiler inputs in the shared core-check fingerprint. Reject missing, empty, skipped, or failing consumer results before recording a successful CI marker. Re-extracted on master f442ace. The consumer passes with configuration-cache storage and reuse, formatting checks pass, 11 classifier/fingerprint controls and six result-gate controls pass, and actionlint adds no findings against the base.
fc41345 to
0dab6b6
Compare
Summary
Why?
How?
flowchart LR C[Java compiler API] --> T[CompilerConsumerTest] M[Gradle compiled module variants] --> T T --> X[JUnit XML result] X --> G[Required-result gate] G --> S[Core checks success marker]Implications
includeBuildAttachIntellijPluginandincludeBuildAttachVsCodeExtensiondefault to false for language-tooling lifecycle attachment. Explicit IDE tasks remain available,cleanstill covers the included projects, and root composite-inclusion defaults are unchanged. The compiler dependency is test-only; this PR does not ship a compiler-backed language server.Changes
CompilerConsumerTest.ktandCompilerTestSupport.kt: an embedding smoke test with mandatory bootstrap/system modules.lang/lsp-server/build.gradle.kts: variant-based module inputs and a configuration-cache-compatible JVM argument provider.lang/build.gradle.ktsand the LSP README: optional IDE lifecycle attachment and its usage..github/scripts/ci-changes.pyand.github/workflows/commit.yml: compiler-aware core invalidation and the required-result gate.Known follow-ups
This initial gate requires one smoke-test suite in the existing Ubuntu core lane. Later compiler-consumer suites must extend the required coverage; this is not an IDE acceptance suite or a new cross-platform test matrix.