feat: add per-project native server and SSE command streaming
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good
build / jvm (push) Waiting to run
build / native (macos-15, macos-arm64) (push) Waiting to run
build / native (ubuntu-24.04, linux-x86_64) (push) Waiting to run
build / native (windows-2025, windows-x86_64) (push) Waiting to run
Test / Tests and coverage
Intrepid/AI Engineering/pipeline/head This commit looks good
Keep Spring in a persistent project server with lightweight clients, managed start/stop, bounded SSE subscriptions, cursor recovery and durable mutation outcomes. Preserve SQLite authority and transaction limits, and document reproducible native measurements. Validation: 269 tests, 11 pipeline scenarios, full native/SSE smoke, native package verification and 17 installer tests passed. Implements WRK-000E / DEC-0001 / DEC-0002.
This commit is contained in:
+22
-1
@@ -1,4 +1,5 @@
|
||||
import org.gradle.api.tasks.bundling.Compression
|
||||
import java.security.MessageDigest
|
||||
|
||||
plugins {
|
||||
java
|
||||
@@ -10,6 +11,24 @@ plugins {
|
||||
group = "net.intrepid"
|
||||
version = "0.1.0"
|
||||
|
||||
val serverIdentityDirectory = layout.buildDirectory.dir("generated/serverIdentity")
|
||||
val serverBuildIdentity = tasks.register("serverBuildIdentity") {
|
||||
val sources = fileTree("src/main") { include("**/*") }
|
||||
inputs.files(sources, file("build.gradle.kts"))
|
||||
outputs.file(serverIdentityDirectory.map { it.file("aie-build.txt") })
|
||||
doLast {
|
||||
val digest = MessageDigest.getInstance("SHA-256")
|
||||
(sources.files + file("build.gradle.kts")).sortedBy { it.path }.forEach {
|
||||
digest.update(it.relativeTo(projectDir).path.toByteArray())
|
||||
digest.update(it.readBytes())
|
||||
}
|
||||
val target = serverIdentityDirectory.get().file("aie-build.txt").asFile
|
||||
target.parentFile.mkdirs()
|
||||
target.writeText(digest.digest().joinToString("") { "%02x".format(it) } + "\n")
|
||||
}
|
||||
}
|
||||
tasks.processResources { dependsOn(serverBuildIdentity); from(serverIdentityDirectory) }
|
||||
|
||||
tasks.withType<Jar>().configureEach {
|
||||
from("LICENSE") { into("META-INF") }
|
||||
}
|
||||
@@ -67,6 +86,7 @@ val jenkinsPipelineTest = tasks.register("jenkinsPipelineTest") {
|
||||
}
|
||||
tasks.check { dependsOn(jenkinsPipelineTest) }
|
||||
springBoot { mainClass = "net.intrepid.aiengineering.AiEngineeringApplication" }
|
||||
tasks.bootJar { mainClass.set("net.intrepid.aiengineering.AieLauncher") }
|
||||
val sqliteProbe = sourceSets.create("sqliteProbe")
|
||||
sqliteProbe.compileClasspath += sourceSets.main.get().output
|
||||
sqliteProbe.runtimeClasspath += sourceSets.main.get().output
|
||||
@@ -84,12 +104,13 @@ tasks.register<JavaExec>("sqliteProbe") {
|
||||
}
|
||||
graalvmNative {
|
||||
binaries.named("main") {
|
||||
mainClass.set("net.intrepid.aiengineering.AieLauncher")
|
||||
imageName = "ai-engineering"
|
||||
javaLauncher.set(javaToolchains.launcherFor {
|
||||
languageVersion.set(JavaLanguageVersion.of(25))
|
||||
vendor.set(JvmVendorSpec.matching("GraalVM"))
|
||||
})
|
||||
buildArgs.addAll("--no-fallback", "-O1", "--enable-native-access=ALL-UNNAMED",
|
||||
buildArgs.addAll("--no-fallback", "-O1", "--enable-native-access=ALL-UNNAMED", "--enable-url-protocols=http",
|
||||
"-Dorg.sqlite.lib.exportPath=${layout.buildDirectory.dir("native/nativeCompile").get().asFile}")
|
||||
}
|
||||
binaries.create("sqliteProbe") {
|
||||
|
||||
Reference in New Issue
Block a user