feat(studio): ship JavaFX 2 Play and delegate integration tooling
Test / Tests and coverage occurred while executing withChecks step.
Intrepid/Prometeu/Studio/pipeline/head There was a failure building this commit

Launch the JavaFX 2 project shell on Java 25 with an interactive viewport,
managed Play lifecycle and project mutation guards. Preserve headless/MCP and
save compatibility, and qualify exact runtime executable bundles.
Separate unit JaCoCo gates from opt-in integration suites and use the internal
Pong fixture for the headless visual pilot.
Move maintenance and native conformance tools into tooling; retain the VS Code
extension and update current navigation links.

Validation: tooling make verify passed, including 1064 Studio unit tests,
JaCoCo thresholds and 22 headless integration tests.
This commit is contained in:
2026-11-19 17:32:03 +00:00
parent 1e17fc4d67
commit 71fb80efc3
163 changed files with 5929 additions and 4950 deletions
+50 -3
View File
@@ -3,6 +3,9 @@ plugins {
alias(libs.plugins.javafx)
}
// Configure the application-capable UI module before lazy classpath queries configure it.
evaluationDependsOn(":prometeu-studio-ui-javafx-2")
dependencies {
implementation(libs.tomlj)
implementation(project(":prometeu-infra"))
@@ -17,6 +20,7 @@ dependencies {
implementation(project(":prometeu-studio-api"))
implementation(project(":prometeu-studio-core"))
implementation(project(":prometeu-studio-ui-javafx"))
implementation(project(":prometeu-studio-ui-javafx-2"))
implementation(libs.spring.boot)
implementation(libs.lsp4j)
implementation(libs.javafx.controls)
@@ -25,9 +29,10 @@ dependencies {
application {
mainClass = "p.studio.app.StudioLauncher"
applicationDefaultJvmArgs = listOf("--enable-native-access=ALL-UNNAMED")
}
val studioJava = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(21) }
val studioJava = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(25) }
val studioRuntime = layout.buildDirectory.dir("studio-runtime")
val assembleStudioRuntime by tasks.registering(Exec::class) {
val jdk = studioJava.get().metadata.installationPath.asFile
@@ -40,11 +45,16 @@ val assembleStudioRuntime by tasks.registering(Exec::class) {
check(it.setWritable(true, true)) { "Cannot normalize staged runtime permissions" }
}
}
commandLine(jdk.resolve("bin/jlink"), "--add-modules", "ALL-MODULE-PATH", "--strip-debug", "--no-header-files",
commandLine(jdk.resolve("bin/jlink"), "--module-path", jdk.resolve("jmods"), "--add-modules", "ALL-MODULE-PATH", "--strip-debug", "--no-header-files",
"--no-man-pages", "--output", studioRuntime.get().asFile)
}
distributions {
main { contents { from(assembleStudioRuntime) { into("runtime") } } }
main { contents {
from(assembleStudioRuntime) { into("runtime") }
from(project(":prometeu-studio-ui-javafx-2").file("src/main/resources/p/studio/ui/javafx2/fonts")) {
include("*-LICENSE.txt");into("licenses")
}
} }
}
tasks.register<JavaExec>("stageStudioInstallation") {
group = "application"
@@ -121,6 +131,7 @@ tasks.register<Test>("headlessProcessTest") {
project(":prometeu-compiler:prometeu-build-pipeline").layout.buildDirectory.dir("registry-conformance").get().asFile.absolutePath)
include("**/HeadlessTaskIntegrationTest.class")
systemProperty("studio.test.runtimeInstall", providers.gradleProperty("studioRuntimeInstall").getOrElse(""))
systemProperty("studio.test.pong", rootProject.file("test-projects/pong").absolutePath)
}
tasks.register<Test>("memcardProcessTest") {
@@ -149,8 +160,41 @@ tasks.register<Test>("headlessMcpDesktopTest") {
// Subprocess tests exercise the actual Studio main and OS ownership boundaries.
tasks.withType<Test>().configureEach {
systemProperty("studio.test.classpath", sourceSets["test"].runtimeClasspath.asPath)
systemProperty("studio.test.protocolFixtures", rootProject.file("../runtime/devtools/studio-protocol/fixtures").absolutePath)
systemProperty("studio.test.studioHost", providers.gradleProperty("studioPlayHost").getOrElse(
rootProject.file("../runtime/target/debug/prometeu-host-desktop-winit" + if (System.getProperty("os.name").startsWith("Windows")) ".exe" else "").absolutePath))
systemProperty("studio.test.studioCartridge", rootProject.file("../runtime/test-cartridges/dummy-boy").absolutePath)
}
tasks.named<Test>("test") { exclude("**/StudioPlayProcessTest.class") }
tasks.named<Test>("test") { exclude("**/StudioPlayDesktopTest.class") }
tasks.register<Test>("studioPlayDesktopTest") {
group = "verification"
description = "Qualifies the default Play frontend with an installed native runtime and a desktop."
testClassesDirs = sourceSets["test"].output.classesDirs
classpath = sourceSets["test"].runtimeClasspath
useJUnitPlatform()
include("**/StudioPlayDesktopTest.class")
systemProperty("studio.test.runtimeInstall", providers.gradleProperty("studioRuntimeInstall").getOrElse(""))
systemProperty("studio.test.pong", rootProject.file("test-projects/pong").absolutePath)
systemProperty("studio.test.playStress", providers.gradleProperty("studioPlayStress").getOrElse("false"))
systemProperty("java.awt.headless", "false")
outputs.upToDateWhen { false }
testLogging.showStandardStreams = true
}
tasks.register<Test>("studioPlayProcessTest") {
group = "verification"
description = "Qualifies real interactive binary IPC (requires the Studio host binary, no display)."
testClassesDirs = sourceSets["test"].output.classesDirs
classpath = sourceSets["test"].runtimeClasspath
useJUnitPlatform()
include("**/StudioPlayProcessTest.class")
include("**/StudioPlayInstalledRuntimeTest.class")
systemProperty("studio.test.runtimeInstall", providers.gradleProperty("studioRuntimeInstall").getOrElse(""))
outputs.upToDateWhen { false }
}
tasks.named<Test>("test") { exclude("**/StudioPlayInstalledRuntimeTest.class") }
tasks.named<Test>("test") { exclude("**/InstalledConnectorTest.class") }
tasks.register<Test>("installedConnectorTest") {
group = "verification"
@@ -191,6 +235,9 @@ tasks.named<Test>("test") { exclude("**/AssetCapacityInstalledRuntimeTest.class"
tasks.register<Test>("assetCapacityProcessTest") {
group = "verification"
description = "Qualifies glyph/scene 16/17 boundaries against the exact installed runtime."
// The selected installation is external and can be rebuilt at the same path.
outputs.upToDateWhen { false }
outputs.doNotCacheIf("Qualification must observe the currently installed native binaries") { true }
testClassesDirs = sourceSets["test"].output.classesDirs
classpath = sourceSets["test"].runtimeClasspath
useJUnitPlatform()