diff --git a/examples/business-id-runtime/java-app-console/pom.xml b/examples/business-id-runtime/java-app-console/pom.xml
index a8585374..d4cac2bc 100644
--- a/examples/business-id-runtime/java-app-console/pom.xml
+++ b/examples/business-id-runtime/java-app-console/pom.xml
@@ -15,7 +15,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/business-id-runtime/java-lib-core/lib/pom.xml b/examples/business-id-runtime/java-lib-core/lib/pom.xml
index 65dddd70..7582d4ed 100644
--- a/examples/business-id-runtime/java-lib-core/lib/pom.xml
+++ b/examples/business-id-runtime/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/business-id-runtime/pom.xml b/examples/business-id-runtime/pom.xml
index 322678f7..d35a9c8e 100644
--- a/examples/business-id-runtime/pom.xml
+++ b/examples/business-id-runtime/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../pom.xml
teaql-business-id-example
diff --git a/examples/committed-events/pom.xml b/examples/committed-events/pom.xml
index 0ddfeb2e..d049168b 100644
--- a/examples/committed-events/pom.xml
+++ b/examples/committed-events/pom.xml
@@ -4,7 +4,7 @@
4.0.0
io.teaqlteaql-java-parent
- 6.3.0../../pom.xml
+ 6.4.0../../pom.xml
teaql-committed-events-example
diff --git a/examples/conformance/context-derived/java-app-console/pom.xml b/examples/conformance/context-derived/java-app-console/pom.xml
index 92999c15..9242d74c 100644
--- a/examples/conformance/context-derived/java-app-console/pom.xml
+++ b/examples/conformance/context-derived/java-app-console/pom.xml
@@ -1 +1 @@
-4.0.0io.teaqlteaql-java-parent6.3.0../../../../pom.xmlio.teaql.examplescontext-fix-consumer6.3.0com.examplecontext-fix-service-core0.0.1-SNAPSHOTio.teaqlteaql-runtime6.3.0io.teaqlteaql-provider-jdbc6.3.0io.teaqlteaql-sqlite6.3.0io.teaqlteaql-dynamic-fields-jdbc6.3.0junitjunit4.13.2testshowcase-mainshowcase-testsorg.apache.maven.pluginsmaven-surefire-pluginfalse
+4.0.0io.teaqlteaql-java-parent6.4.0../../../../pom.xmlio.teaql.examplescontext-fix-consumercom.examplecontext-fix-service-core0.0.1-SNAPSHOTio.teaqlteaql-runtimeio.teaqlteaql-provider-jdbcio.teaqlteaql-sqliteio.teaqlteaql-dynamic-fields-jdbcjunitjunit4.13.2testshowcase-mainshowcase-testsorg.apache.maven.pluginsmaven-surefire-pluginfalse
diff --git a/examples/conformance/java-app-console/pom.xml b/examples/conformance/java-app-console/pom.xml
index f32c5cea..ddbcd53a 100644
--- a/examples/conformance/java-app-console/pom.xml
+++ b/examples/conformance/java-app-console/pom.xml
@@ -16,7 +16,7 @@
1.0.0
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/conformance/java-lib-core/lib/pom.xml b/examples/conformance/java-lib-core/lib/pom.xml
index a32db607..0b0074b1 100644
--- a/examples/conformance/java-lib-core/lib/pom.xml
+++ b/examples/conformance/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/conformance/natural-messages/java-app-console/pom.xml b/examples/conformance/natural-messages/java-app-console/pom.xml
index 785993c8..e315d551 100644
--- a/examples/conformance/natural-messages/java-app-console/pom.xml
+++ b/examples/conformance/natural-messages/java-app-console/pom.xml
@@ -1 +1 @@
-4.0.0io.teaqlteaql-java-parent6.3.0../../../../pom.xmlio.teaql.examplesnatural-checker-consumer6.3.0com.examplechecker-natural-message-service-core0.0.1-SNAPSHOTio.teaqlteaql-runtime6.3.0io.teaqlteaql-provider-jdbc6.3.0io.teaqlteaql-sqlite6.3.0junitjunit4.13.2testshowcase-mainshowcase-testsorg.apache.maven.pluginsmaven-surefire-pluginfalse
+4.0.0io.teaqlteaql-java-parent6.4.0../../../../pom.xmlio.teaql.examplesnatural-checker-consumercom.examplechecker-natural-message-service-core0.0.1-SNAPSHOTio.teaqlteaql-runtimeio.teaqlteaql-provider-jdbcio.teaqlteaql-sqlitejunitjunit4.13.2testshowcase-mainshowcase-testsorg.apache.maven.pluginsmaven-surefire-pluginfalse
diff --git a/examples/exact-decimal/README.md b/examples/exact-decimal/README.md
index ed5a6b6d..1d69afd0 100644
--- a/examples/exact-decimal/README.md
+++ b/examples/exact-decimal/README.md
@@ -10,8 +10,9 @@ bash examples/exact-decimal/verify.sh
```
The verifier copies this source checkout into an owned temporary build area
-and checks the recorded generated scopes. It builds the local runtime, generated
-library and plain console together in one Maven reactor. Both rounds use the same two
+and checks the recorded generated scopes. It binds the two copied Maven
+manifests to the local runtime version and retains both manifest hashes. It
+builds the local runtime, generated library and plain console in one Maven reactor. Both rounds use the same two
SQLite databases (one Q/E probe database and one console startup database):
- Generated Q equality, strong `BigDecimal` hydration and E evaluation.
diff --git a/examples/exact-decimal/verify-local.cjs b/examples/exact-decimal/verify-local.cjs
index 73aaa4d5..3534db47 100644
--- a/examples/exact-decimal/verify-local.cjs
+++ b/examples/exact-decimal/verify-local.cjs
@@ -77,10 +77,16 @@ try {
const version = fs.readFileSync(path.join(runtime, "pom.xml"), "utf8").match(/([^<]+)<\/version>/)[1];
const evaluatedVersion = fs.readFileSync(path.join(app, 'pom.xml'), 'utf8')
.match(/([^<]+)<\/teaql.version>/)[1];
- assert.equal(version, evaluatedVersion, 'Maven reactor must match the evaluated example runtime');
const scopes = JSON.parse(fs.readFileSync(path.join(example, 'generated-scope-hashes.json')));
+ const libraryPom = 'lib/pom.xml', applicationPom = 'pom.xml';
+ const readVersion = file => fs.readFileSync(file, 'utf8').match(/([^<]+)<\/teaql.version>/)[1];
+ const libraryPomPath = path.join(library, libraryPom), applicationPomPath = path.join(app, applicationPom);
+ assert.equal(readVersion(libraryPomPath), evaluatedVersion, 'Generated scopes must record the same evaluated runtime');
+ let bindings;
function verifyScopes() {
- assert.deepEqual(generatedHashes(library), scopes['java-lib-core']);
+ const expectedLibrary = {...scopes['java-lib-core']};
+ if (bindings) expectedLibrary[libraryPom] = bindings.library.consumerPomSha256;
+ assert.deepEqual(generatedHashes(library), expectedLibrary);
const observed = generatedHashes(app);
assert.equal(spec.workspace.useSiblingMavenLibrary, true);
assert(!fs.existsSync(path.join(app, 'lib')), 'Workspace must consume the sibling library');
@@ -96,11 +102,23 @@ try {
assert.equal(sha(installed.replaceAll(sibling, 'mvn -f lib/pom.xml')), digest, name);
continue;
}
- assert.equal(observed[name], digest, 'generated workspace file changed: ' + name);
+ const expected = bindings && name === applicationPom ? bindings.application.consumerPomSha256 : digest;
+ assert.equal(observed[name], expected, 'generated workspace file changed: ' + name);
}
}
verifyScopes();
- generated = {modelSha256, producer: spec.producer, files: scopes, workspaceUsesSiblingMavenLibrary: true};
+ const {pin} = require('../../scripts/pin-local-example-pom.cjs');
+ bindings = {
+ library: pin(libraryPomPath, runtimeRoot, scratch),
+ application: pin(applicationPomPath, runtimeRoot, scratch),
+ };
+ assert.equal(bindings.library.originalPomSha256, scopes['java-lib-core'][libraryPom]);
+ assert.equal(bindings.application.originalPomSha256, scopes['java-app-console'][applicationPom]);
+ for (const file of [libraryPomPath, applicationPomPath])
+ assert.equal(readVersion(file), version, 'Owned Maven scope must match the paired reactor');
+ verifyScopes();
+ generated = {modelSha256, producer: spec.producer, files: scopes, workspaceUsesSiblingMavenLibrary: true,
+ evaluatedRuntimeVersion: evaluatedVersion, pairedRuntimeVersion: version, disposableMavenBindings: bindings};
fs.writeFileSync(path.join(evidence, "generated-manifest.json"), JSON.stringify(generated, null, 2) + "\n");
const reactor = path.join(scratch, "pom.xml");
fs.writeFileSync(reactor, '4.0.0io.teaql.testexact-decimal-source-reactor0.0.0pomruntimeruntime/examples/exact-decimal/java-lib-core/libruntime/examples/exact-decimal/java-app-console\n');
@@ -145,6 +163,8 @@ finally {
}
fs.writeFileSync(path.join(evidence, "receipt.json"), JSON.stringify({schema: "teaql.java-exact-source-example/v1", passed,
before, commands, failure, modelSha256: generated?.modelSha256, artifactSha256, localClasses, databases,
+ evaluatedRuntimeVersion: generated?.evaluatedRuntimeVersion, pairedRuntimeVersion: generated?.pairedRuntimeVersion,
+ disposableMavenBindings: generated?.disposableMavenBindings,
rounds: passed ? 2 : undefined, sameDatabase: true, generatedLibraryUnchanged: passed,
disposedOwnedBytes: ownedBytes, scratchRemoved: !fs.existsSync(scratch), sharedCacheInstall: false,
publicPublication: false, internalRegistryAcceptance: false}, null, 2) + "\n");
diff --git a/examples/fix-e-alignment/java-app-console/pom.xml b/examples/fix-e-alignment/java-app-console/pom.xml
index 301f948b..0e174e12 100644
--- a/examples/fix-e-alignment/java-app-console/pom.xml
+++ b/examples/fix-e-alignment/java-app-console/pom.xml
@@ -1,12 +1,12 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0../../../pom.xml
- io.teaql.examplesteaql-fix-e-example6.3.0
+ io.teaqlteaql-java-parent6.4.0../../../pom.xml
+ io.teaql.examplesteaql-fix-e-example
com.teaqlchecker-fix-advanced-core0.0.1-SNAPSHOT
- io.teaqlteaql-runtime6.3.0
- io.teaqlteaql-sqlite6.3.0
- io.teaqlteaql-jackson6.3.0
- io.teaqlteaql-tfp-endpoint6.3.0
+ io.teaqlteaql-runtime
+ io.teaqlteaql-sqlite
+ io.teaqlteaql-jackson
+ io.teaqlteaql-tfp-endpoint${project.parent.version}
com.fasterxml.jackson.datatypejackson-datatype-jsr310test
junitjunit4.13.2test
showcase-mainshowcase-testsorg.apache.maven.pluginsmaven-surefire-pluginfalse
diff --git a/examples/http-resilience/java-app-console/pom.xml b/examples/http-resilience/java-app-console/pom.xml
index 2605f875..57a009d9 100644
--- a/examples/http-resilience/java-app-console/pom.xml
+++ b/examples/http-resilience/java-app-console/pom.xml
@@ -8,7 +8,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../../pom.xml
com.teaql
diff --git a/examples/http-resilience/pom.xml b/examples/http-resilience/pom.xml
index 268d843a..8bfd9cd0 100644
--- a/examples/http-resilience/pom.xml
+++ b/examples/http-resilience/pom.xml
@@ -1,6 +1,6 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0../../pom.xml
+ io.teaqlteaql-java-parent6.4.0../../pom.xml
teaql-http-resilience-example
io.teaqlteaql-runtime
diff --git a/examples/http-resilience/verify-sync.sh b/examples/http-resilience/verify-sync.sh
index 33216c17..c9711df7 100644
--- a/examples/http-resilience/verify-sync.sh
+++ b/examples/http-resilience/verify-sync.sh
@@ -2,6 +2,12 @@
set -euo pipefail
example="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo="$(cd "$example/../.." && pwd)"
+runtime_version="$(python3 -B - "$repo/pom.xml" <<'PYTHON'
+import sys
+from xml.etree.ElementTree import parse
+print(parse(sys.argv[1]).getroot().findtext('{*}version'))
+PYTHON
+)"
scratch="$(mktemp -d -t teaql-java-supplier-sync.XXXXXXXX)"
trap 'status=$?; trap - EXIT; rm -rf -- "$scratch"; exit "$status"' EXIT
evidence="${TEAQL_SUPPLIER_SYNC_EVIDENCE_DIR:-$scratch/evidence}"
@@ -27,7 +33,7 @@ ElementTree(project).write(file, encoding='utf-8', xml_declaration=True)
PY
for round in 1 2; do
TEAQL_SHOWCASE_ROUND="$round" mvn -q -f "$scratch/pom.xml" -pl :supplier-order-sync-service -am \
- -Dtest=SupplierOrderSyncTest -Dsurefire.failIfNoSpecifiedTests=false test >"$evidence/round-$round.log" 2>&1 || {
+ "-Dteaql.version=$runtime_version" -Dtest=SupplierOrderSyncTest -Dsurefire.failIfNoSpecifiedTests=false test >"$evidence/round-$round.log" 2>&1 || {
tail -80 "$evidence/round-$round.log" >&2
exit 1
}
diff --git a/examples/inheritance-save/java-app-console/pom.xml b/examples/inheritance-save/java-app-console/pom.xml
index bab7d256..be02efc7 100644
--- a/examples/inheritance-save/java-app-console/pom.xml
+++ b/examples/inheritance-save/java-app-console/pom.xml
@@ -1,6 +1,6 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0../../../pom.xml
+ io.teaqlteaql-java-parent6.4.0../../../pom.xml
io.teaql.examplesinherited-save-example
io.teaqlteaql-provider-jdbc${teaql.version}
diff --git a/examples/object-storage/java-app-console/pom.xml b/examples/object-storage/java-app-console/pom.xml
index ed5911da..2f99fae7 100644
--- a/examples/object-storage/java-app-console/pom.xml
+++ b/examples/object-storage/java-app-console/pom.xml
@@ -8,7 +8,7 @@
21
UTF-8
- 6.3.0
+ 6.4.0
diff --git a/examples/object-storage/java-lib-core/lib/pom.xml b/examples/object-storage/java-lib-core/lib/pom.xml
index 7b35f6be..6be2b7c6 100644
--- a/examples/object-storage/java-lib-core/lib/pom.xml
+++ b/examples/object-storage/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/object-storage/pom.xml b/examples/object-storage/pom.xml
index 57c1768a..b8737f7e 100644
--- a/examples/object-storage/pom.xml
+++ b/examples/object-storage/pom.xml
@@ -1,6 +1,6 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0../../pom.xml
+ io.teaqlteaql-java-parent6.4.0../../pom.xml
teaql-object-storage-example
io.teaqlteaql-runtime
diff --git a/examples/order-management/java-app-console/pom.xml b/examples/order-management/java-app-console/pom.xml
index cc4d8221..8ab7869a 100644
--- a/examples/order-management/java-app-console/pom.xml
+++ b/examples/order-management/java-app-console/pom.xml
@@ -11,7 +11,7 @@
21
UTF-8
- 6.3.0
+ 6.4.0
diff --git a/examples/order-management/java-lib-core/lib/pom.xml b/examples/order-management/java-lib-core/lib/pom.xml
index 6fd5fd30..c29da7e9 100644
--- a/examples/order-management/java-lib-core/lib/pom.xml
+++ b/examples/order-management/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/round-trip-reference-runtime/java-app-console/pom.xml b/examples/round-trip-reference-runtime/java-app-console/pom.xml
index b4dc2498..6d85835d 100644
--- a/examples/round-trip-reference-runtime/java-app-console/pom.xml
+++ b/examples/round-trip-reference-runtime/java-app-console/pom.xml
@@ -8,7 +8,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../../pom.xml
com.teaql
@@ -20,7 +20,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/round-trip-reference-runtime/java-lib-core/lib/pom.xml b/examples/round-trip-reference-runtime/java-lib-core/lib/pom.xml
index 80a85941..12853de5 100644
--- a/examples/round-trip-reference-runtime/java-lib-core/lib/pom.xml
+++ b/examples/round-trip-reference-runtime/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/round-trip-reference-runtime/pom.xml b/examples/round-trip-reference-runtime/pom.xml
index 69dde59e..a89a53e9 100644
--- a/examples/round-trip-reference-runtime/pom.xml
+++ b/examples/round-trip-reference-runtime/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../pom.xml
teaql-round-trip-reference-example
diff --git a/examples/school-management/java-app-console/pom.xml b/examples/school-management/java-app-console/pom.xml
index 45e61b18..1ab10dc2 100644
--- a/examples/school-management/java-app-console/pom.xml
+++ b/examples/school-management/java-app-console/pom.xml
@@ -16,7 +16,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/school-management/java-lib-core/lib/pom.xml b/examples/school-management/java-lib-core/lib/pom.xml
index ce38f19d..57647e35 100644
--- a/examples/school-management/java-lib-core/lib/pom.xml
+++ b/examples/school-management/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/secret-provider/pom.xml b/examples/secret-provider/pom.xml
index 86867de4..57cf09ed 100644
--- a/examples/secret-provider/pom.xml
+++ b/examples/secret-provider/pom.xml
@@ -1,6 +1,6 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0../../pom.xml
+ io.teaqlteaql-java-parent6.4.0../../pom.xml
teaql-secret-provider-example
io.teaqlteaql-runtime
diff --git a/examples/security-foundations/java-app-console/pom.xml b/examples/security-foundations/java-app-console/pom.xml
index e5c5e3db..084e086a 100644
--- a/examples/security-foundations/java-app-console/pom.xml
+++ b/examples/security-foundations/java-app-console/pom.xml
@@ -8,7 +8,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../../pom.xml
com.teaql
@@ -20,7 +20,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/security-foundations/java-lib-core/lib/pom.xml b/examples/security-foundations/java-lib-core/lib/pom.xml
index bd2c4cc5..d46d4f19 100644
--- a/examples/security-foundations/java-lib-core/lib/pom.xml
+++ b/examples/security-foundations/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/security-foundations/pom.xml b/examples/security-foundations/pom.xml
index 043dfb5c..d003b703 100644
--- a/examples/security-foundations/pom.xml
+++ b/examples/security-foundations/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../pom.xml
teaql-security-foundations-example
diff --git a/examples/shared-load-state/java-app-console/pom.xml b/examples/shared-load-state/java-app-console/pom.xml
index 069ea736..f5dc3519 100644
--- a/examples/shared-load-state/java-app-console/pom.xml
+++ b/examples/shared-load-state/java-app-console/pom.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- io.teaqlteaql-java-parent6.3.0
+ io.teaqlteaql-java-parent6.4.0
../../../pom.xml
school-record-projection-workspace
diff --git a/examples/shared-load-state/java-lib-core/lib/pom.xml b/examples/shared-load-state/java-lib-core/lib/pom.xml
index ca269438..0779a371 100644
--- a/examples/shared-load-state/java-lib-core/lib/pom.xml
+++ b/examples/shared-load-state/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/shared-load-state/pom.xml b/examples/shared-load-state/pom.xml
index 89287c85..571a7fef 100644
--- a/examples/shared-load-state/pom.xml
+++ b/examples/shared-load-state/pom.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- io.teaqlteaql-java-parent6.3.0
+ io.teaqlteaql-java-parent6.4.0
../../pom.xml
shared-load-state-example
diff --git a/examples/standard-order/java-app-console/pom.xml b/examples/standard-order/java-app-console/pom.xml
index c4d583c4..7af0e525 100644
--- a/examples/standard-order/java-app-console/pom.xml
+++ b/examples/standard-order/java-app-console/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../../pom.xml
@@ -19,7 +19,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/standard-order/java-lib-core/lib/pom.xml b/examples/standard-order/java-lib-core/lib/pom.xml
index d6ba11e4..deb56a2c 100644
--- a/examples/standard-order/java-lib-core/lib/pom.xml
+++ b/examples/standard-order/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/supplier-onboarding-i18n/java-app-console/pom.xml b/examples/supplier-onboarding-i18n/java-app-console/pom.xml
index 8824a16a..5f164bc1 100644
--- a/examples/supplier-onboarding-i18n/java-app-console/pom.xml
+++ b/examples/supplier-onboarding-i18n/java-app-console/pom.xml
@@ -15,7 +15,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml b/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
index 1247c8fb..31970845 100644
--- a/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
+++ b/examples/supplier-onboarding-i18n/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/examples/trace-chain/java-app-console/pom.xml b/examples/trace-chain/java-app-console/pom.xml
index bf3f045c..0de8783c 100644
--- a/examples/trace-chain/java-app-console/pom.xml
+++ b/examples/trace-chain/java-app-console/pom.xml
@@ -8,7 +8,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../../../pom.xml
teaql-trace-chain-example
@@ -19,7 +19,7 @@
0.0.1-SNAPSHOT
UTF-8
true
- 6.3.0
+ 6.4.0
diff --git a/examples/trace-chain/java-lib-core/lib/pom.xml b/examples/trace-chain/java-lib-core/lib/pom.xml
index a1d24f4b..4d1777ef 100644
--- a/examples/trace-chain/java-lib-core/lib/pom.xml
+++ b/examples/trace-chain/java-lib-core/lib/pom.xml
@@ -12,7 +12,7 @@
21
4.1.1
- 6.3.0
+ 6.4.0
UTF-8
true
diff --git a/pom.xml b/pom.xml
index c1c51417..92e5db83 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
pom
teaql-java-parent
diff --git a/scripts/verify-examples.sh b/scripts/verify-examples.sh
index a42d49a0..76ccfb53 100755
--- a/scripts/verify-examples.sh
+++ b/scripts/verify-examples.sh
@@ -17,7 +17,17 @@ trap cleanup EXIT
: "${TEAQL_CODEGEN_DIR:?Set TEAQL_CODEGEN_DIR to the local generator checkout}"
node "$repo/scripts/prepare-example-isolation.cjs" "$build_dir" "$TEAQL_CODEGEN_DIR" "$evidence_dir"
runtime_version="$(node -e 'const fs=require("fs");process.stdout.write(fs.readFileSync(process.argv[1],"utf8").match(/([^<]+)<\/version>/)[1])' "$repo/pom.xml")"
-export MAVEN_OPTS="${MAVEN_OPTS:-} -Dmaven.repo.local=$build_dir/maven -Dteaql.version=$runtime_version"
+export MAVEN_OPTS="${MAVEN_OPTS:-} -Dmaven.repo.local=$build_dir/maven"
+# Use an explicit Maven user property so the binding also works with older Maven launchers.
+export TEAQL_EXAMPLE_MAVEN="$(command -v mvn)"
+export TEAQL_EXAMPLE_RUNTIME_VERSION="$runtime_version"
+mkdir "$build_dir/bin"
+cat > "$build_dir/bin/mvn" <<'MAVEN'
+#!/usr/bin/env bash
+exec "$TEAQL_EXAMPLE_MAVEN" "-Dteaql.version=$TEAQL_EXAMPLE_RUNTIME_VERSION" "$@"
+MAVEN
+chmod +x "$build_dir/bin/mvn"
+export PATH="$build_dir/bin:$PATH"
export TEAQL_MAVEN_DEPENDENCY_CACHE="$build_dir/maven"
echo "Native example artifacts use an isolated disposable Maven repository; compact evidence: $evidence_dir"
expected=(business-id-runtime committed-events conformance exact-decimal fix-e-alignment http-resilience inheritance-save object-storage order-management round-trip-reference-runtime scalar-type-probe school-management secret-provider security-foundations shared-load-state standard-order supplier-onboarding-i18n trace-chain)
diff --git a/teaql-android/pom.xml b/teaql-android/pom.xml
index 6f5fd806..139dc43c 100644
--- a/teaql-android/pom.xml
+++ b/teaql-android/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-android
diff --git a/teaql-business-id-jdbc/pom.xml b/teaql-business-id-jdbc/pom.xml
index 1049b672..97f4d87c 100644
--- a/teaql-business-id-jdbc/pom.xml
+++ b/teaql-business-id-jdbc/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-cloud/pom.xml b/teaql-cloud/pom.xml
index c8801360..87122092 100644
--- a/teaql-cloud/pom.xml
+++ b/teaql-cloud/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-cloud
teaql-cloud
diff --git a/teaql-context-runtime-tools/pom.xml b/teaql-context-runtime-tools/pom.xml
index e8ead8b1..4d7c63f4 100644
--- a/teaql-context-runtime-tools/pom.xml
+++ b/teaql-context-runtime-tools/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-context-runtime-tools
diff --git a/teaql-core/pom.xml b/teaql-core/pom.xml
index 258126dc..8a382934 100644
--- a/teaql-core/pom.xml
+++ b/teaql-core/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-data-service-sql/pom.xml b/teaql-data-service-sql/pom.xml
index 5f4179b0..ff3cef82 100644
--- a/teaql-data-service-sql/pom.xml
+++ b/teaql-data-service-sql/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-db2/pom.xml b/teaql-db2/pom.xml
index f4d07fd6..dfaff960 100644
--- a/teaql-db2/pom.xml
+++ b/teaql-db2/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-db2
teaql-db2
diff --git a/teaql-dm8/pom.xml b/teaql-dm8/pom.xml
index 95abd08b..bb35e836 100644
--- a/teaql-dm8/pom.xml
+++ b/teaql-dm8/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-dm8
teaql-dm8
diff --git a/teaql-duckdb/pom.xml b/teaql-duckdb/pom.xml
index a2fff712..ef94805b 100644
--- a/teaql-duckdb/pom.xml
+++ b/teaql-duckdb/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-duckdb
teaql-duckdb
diff --git a/teaql-dynamic-fields-api/pom.xml b/teaql-dynamic-fields-api/pom.xml
index e13a83f0..7fc68853 100644
--- a/teaql-dynamic-fields-api/pom.xml
+++ b/teaql-dynamic-fields-api/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-dynamic-fields-jdbc/pom.xml b/teaql-dynamic-fields-jdbc/pom.xml
index a50e1e70..238e7ac2 100644
--- a/teaql-dynamic-fields-jdbc/pom.xml
+++ b/teaql-dynamic-fields-jdbc/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-hana/pom.xml b/teaql-hana/pom.xml
index 4fdc8a78..9e5716ec 100644
--- a/teaql-hana/pom.xml
+++ b/teaql-hana/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-hana
teaql-hana
diff --git a/teaql-jackson/pom.xml b/teaql-jackson/pom.xml
index 8c1f255f..41c1ca3e 100644
--- a/teaql-jackson/pom.xml
+++ b/teaql-jackson/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-jackson
diff --git a/teaql-mssql/pom.xml b/teaql-mssql/pom.xml
index 14ec8818..1d323665 100644
--- a/teaql-mssql/pom.xml
+++ b/teaql-mssql/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-mssql
teaql-mssql
diff --git a/teaql-mysql/pom.xml b/teaql-mysql/pom.xml
index 3d5cdbdd..99057854 100644
--- a/teaql-mysql/pom.xml
+++ b/teaql-mysql/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-mysql
diff --git a/teaql-object-storage-s3/pom.xml b/teaql-object-storage-s3/pom.xml
index dd6acd62..365b27a8 100644
--- a/teaql-object-storage-s3/pom.xml
+++ b/teaql-object-storage-s3/pom.xml
@@ -1,6 +1,6 @@
4.0.0
- io.teaqlteaql-java-parent6.3.0
+ io.teaqlteaql-java-parent6.4.0
teaql-object-storage-s3
S3-compatible provider for context-owned TeaQL binary object storage
2.55.16
diff --git a/teaql-opentelemetry/pom.xml b/teaql-opentelemetry/pom.xml
index 27c59cd4..d29c7995 100644
--- a/teaql-opentelemetry/pom.xml
+++ b/teaql-opentelemetry/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-opentelemetry
diff --git a/teaql-oracle/pom.xml b/teaql-oracle/pom.xml
index 97a7a056..721fff74 100644
--- a/teaql-oracle/pom.xml
+++ b/teaql-oracle/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-oracle
teaql-oracle
diff --git a/teaql-postgres/pom.xml b/teaql-postgres/pom.xml
index 4180cb3a..37bdfa7a 100644
--- a/teaql-postgres/pom.xml
+++ b/teaql-postgres/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-postgres
teaql-postgres
diff --git a/teaql-provider-jdbc/pom.xml b/teaql-provider-jdbc/pom.xml
index 998f0a79..79e3d4a6 100644
--- a/teaql-provider-jdbc/pom.xml
+++ b/teaql-provider-jdbc/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-provider-spring-jdbc/pom.xml b/teaql-provider-spring-jdbc/pom.xml
index 18efad68..f4f9c5d8 100644
--- a/teaql-provider-spring-jdbc/pom.xml
+++ b/teaql-provider-spring-jdbc/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-query-json/pom.xml b/teaql-query-json/pom.xml
index 2874d62a..f9e9befc 100644
--- a/teaql-query-json/pom.xml
+++ b/teaql-query-json/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-query-json
diff --git a/teaql-redis/pom.xml b/teaql-redis/pom.xml
index f345b29e..1eb59ea7 100644
--- a/teaql-redis/pom.xml
+++ b/teaql-redis/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-runtime-log/pom.xml b/teaql-runtime-log/pom.xml
index dd6e304f..28955385 100644
--- a/teaql-runtime-log/pom.xml
+++ b/teaql-runtime-log/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-runtime-log
diff --git a/teaql-runtime/pom.xml b/teaql-runtime/pom.xml
index 7a14f643..a35e5799 100644
--- a/teaql-runtime/pom.xml
+++ b/teaql-runtime/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-runtime
diff --git a/teaql-snowflake/pom.xml b/teaql-snowflake/pom.xml
index 5e5199b3..8e07dddc 100644
--- a/teaql-snowflake/pom.xml
+++ b/teaql-snowflake/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-snowflake
teaql-snowflake
diff --git a/teaql-sql-portable/pom.xml b/teaql-sql-portable/pom.xml
index fb1452f6..fd1f9236 100644
--- a/teaql-sql-portable/pom.xml
+++ b/teaql-sql-portable/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-sql-portable
diff --git a/teaql-sqlite/pom.xml b/teaql-sqlite/pom.xml
index d10b16e9..8c6b45e5 100644
--- a/teaql-sqlite/pom.xml
+++ b/teaql-sqlite/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-sqlite
teaql-sqlite
diff --git a/teaql-tfp-endpoint/pom.xml b/teaql-tfp-endpoint/pom.xml
index 76c297c2..ce989394 100644
--- a/teaql-tfp-endpoint/pom.xml
+++ b/teaql-tfp-endpoint/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-tool-http/pom.xml b/teaql-tool-http/pom.xml
index 2adaf8bd..fa461ed4 100644
--- a/teaql-tool-http/pom.xml
+++ b/teaql-tool-http/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-tool-http
diff --git a/teaql-tool-http/src/test/java/io/teaql/tools/http/HttpResilienceTest.java b/teaql-tool-http/src/test/java/io/teaql/tools/http/HttpResilienceTest.java
index ba0468d0..5d3679ae 100644
--- a/teaql-tool-http/src/test/java/io/teaql/tools/http/HttpResilienceTest.java
+++ b/teaql-tool-http/src/test/java/io/teaql/tools/http/HttpResilienceTest.java
@@ -7,9 +7,9 @@
import io.teaql.core.http.HttpRequestFailure;
import io.teaql.core.http.HttpRequestService;
import io.teaql.tools.http.impl.JdkHttpTool;
-import java.io.BufferedReader;
+import java.io.BufferedInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
-import java.io.InputStreamReader;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.net.InetAddress;
@@ -218,11 +218,13 @@ private static HttpRequestService.Call call(HttpRequestService.Method method, St
assertEquals(200, get.status());
assertEquals("okay", get.text());
assertEquals(1, get.attempts());
+ String requestBody = "PRIVATE-BODY-CANARY-é茶";
HttpRequestService.Response post = service.execute(context,
- HttpRequestService.Call.postText("orders", "ok", "PRIVATE-BODY-CANARY",
+ HttpRequestService.Call.postText("orders", "ok", requestBody,
"submit order", "send order"));
assertEquals(200, post.status());
assertEquals(1, post.attempts());
+ assertEquals("Fixture must consume the complete UTF-8 request body", requestBody, server.okPostBody.get());
HttpRequestService.Response redirect = service.execute(context, get("redirect"));
assertEquals(302, redirect.status());
assertEquals(3, server.requests.get());
@@ -806,6 +808,7 @@ private static final class Fixture implements AutoCloseable {
private final AtomicInteger retryPost = new AtomicInteger();
private final ConcurrentLinkedQueue traceparents = new ConcurrentLinkedQueue<>();
private final ConcurrentLinkedQueue retryBodies = new ConcurrentLinkedQueue<>();
+ private final AtomicReference okPostBody = new AtomicReference<>();
private final CountDownLatch overflowReleased = new CountDownLatch(1);
private final CountDownLatch gatedEntered = new CountDownLatch(2);
private final CountDownLatch releaseGated = new CountDownLatch(1);
@@ -833,35 +836,39 @@ private void serve() {
}
}
}
+ private static String readLine(BufferedInputStream input) throws IOException {
+ var line = new ByteArrayOutputStream();
+ int next;
+ while ((next = input.read()) != -1 && next != '\n') {
+ if (next != '\r') line.write(next);
+ }
+ return next == -1 && line.size() == 0 ? null : line.toString(StandardCharsets.US_ASCII);
+ }
+
private void handle(Socket socket) {
try (Socket client = socket) {
client.setSoTimeout(1000);
- BufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream(), StandardCharsets.UTF_8));
- String line = reader.readLine();
+ var reader = new BufferedInputStream(client.getInputStream());
+ String line = readLine(reader);
if (line == null) return;
requests.incrementAndGet();
String target = line.split(" ")[1];
int contentLength = 0;
- while ((line = reader.readLine()) != null && !line.isEmpty()) {
+ while ((line = readLine(reader)) != null && !line.isEmpty()) {
if (line.toLowerCase(java.util.Locale.ROOT).startsWith("traceparent:"))
traceparents.add(line.substring(line.indexOf(':') + 1).trim());
if (line.toLowerCase(java.util.Locale.ROOT).startsWith("content-length:"))
contentLength = Integer.parseInt(line.substring(line.indexOf(':') + 1).trim());
}
- // Drain the request before replying. Closing a socket with unread POST bytes
- // can reset an otherwise valid response on Windows TCP stacks.
- if (target.contains("/retry-post") || target.contains("/private-response")
- || target.endsWith("/stalled-post")) {
- char[] body = new char[contentLength];
- int offset = 0;
- while (offset < body.length) {
- int count = reader.read(body, offset, body.length - offset);
- if (count < 0) return;
- offset += count;
- }
- if (target.contains("/retry-post")) retryBodies.add(new String(body));
- }
if (target.contains("/close")) return;
+ // Consume Content-Length bytes before closing the response connection.
+ // An unread request body can turn the close into a TCP reset on Windows.
+ byte[] requestBody = reader.readNBytes(contentLength);
+ if (requestBody.length != contentLength) return;
+ if (target.contains("/retry-post"))
+ retryBodies.add(new String(requestBody, StandardCharsets.UTF_8));
+ if (target.endsWith("/ok") && contentLength != 0)
+ okPostBody.set(new String(requestBody, StandardCharsets.UTF_8));
if (target.endsWith("/overflow-open")) {
client.setSoTimeout(3000);
client.getOutputStream().write(("HTTP/1.1 200 OK\r\nContent-Length: 4096\r\n"
diff --git a/teaql-utils-json/pom.xml b/teaql-utils-json/pom.xml
index 4604dc6c..b232c2d6 100644
--- a/teaql-utils-json/pom.xml
+++ b/teaql-utils-json/pom.xml
@@ -6,7 +6,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
teaql-utils-json
diff --git a/teaql-utils-reflection/pom.xml b/teaql-utils-reflection/pom.xml
index 03eeaf06..3d7ec439 100644
--- a/teaql-utils-reflection/pom.xml
+++ b/teaql-utils-reflection/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-utils-spring/pom.xml b/teaql-utils-spring/pom.xml
index b181e423..67f56c34 100644
--- a/teaql-utils-spring/pom.xml
+++ b/teaql-utils-spring/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml
diff --git a/teaql-utils/pom.xml b/teaql-utils/pom.xml
index 837a1c43..442a2ccc 100644
--- a/teaql-utils/pom.xml
+++ b/teaql-utils/pom.xml
@@ -7,7 +7,7 @@
io.teaql
teaql-java-parent
- 6.3.0
+ 6.4.0
../pom.xml