cedar-model-typescript-library 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/conformance/java-oracle.mjs +4 -1
- package/conformance/pom.xml +9 -3
- package/esm/org/metadatacenter/model/cedar/validation/generated/artifact-schemas.js +2 -2
- package/esm/org/metadatacenter/model/cedar/validation/generated/artifact-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema.esm.js +1 -1
- package/schema.esm.js.map +1 -1
- package/schema.js +1 -1
- package/schema.js.map +1 -1
- package/schema.umd.js +1 -1
- package/schema.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -349,6 +349,8 @@ The package also carries `conformance/java-oracle.mjs` for consumer test gates.
|
|
|
349
349
|
`createJavaOracle(SchemaArtifactValidator.schemaDigests, JsonSourcePolicy.stringify.bind(JsonSourcePolicy))`
|
|
350
350
|
starts the real Java validator and mandatory artifact reader, rejects a schema-hash mismatch, and
|
|
351
351
|
returns `validate(artifact, kind)` and `close()`. This is test tooling, never a browser dependency.
|
|
352
|
-
The Java dependency versions live in `tools/conformance/pom.xml`.
|
|
352
|
+
The Java dependency versions live in `tools/conformance/pom.xml`. Maven checks Nexus for a newer
|
|
353
|
+
CEDAR snapshot on every run, so a cached jar cannot stand in for the Java libraries on `develop`; a
|
|
354
|
+
local install newer than the latest published build still takes precedence. CED tests its actual coordinator and
|
|
353
355
|
serialized outputs with this oracle; the Designer host tests its final outgoing bodies with it.
|
|
354
356
|
The deployed server remains authoritative, including its checks after write-time normalization.
|
|
@@ -13,7 +13,10 @@ export async function createJavaOracle(schemaDigests, stringify = JSON.stringify
|
|
|
13
13
|
let child;
|
|
14
14
|
try {
|
|
15
15
|
const classpathFile = join(directory, 'classpath');
|
|
16
|
-
|
|
16
|
+
// The POM checks CEDAR snapshots on every run. When Nexus cannot be reached, a short connect
|
|
17
|
+
// timeout lets resolution fall back to the cached jars in seconds rather than most of a minute.
|
|
18
|
+
await promisify(execFile)('mvn', ['-q', '-Daether.connector.connectTimeout=3000',
|
|
19
|
+
'-f', fileURLToPath(new URL('pom.xml', import.meta.url)),
|
|
17
20
|
'org.apache.maven.plugins:maven-dependency-plugin:3.8.1:build-classpath', `-Dmdep.outputFile=${classpathFile}`],
|
|
18
21
|
{timeout: 300000, maxBuffer: 4 * 1024 * 1024});
|
|
19
22
|
const classpath = (await readFile(classpathFile, 'utf8')).trim();
|
package/conformance/pom.xml
CHANGED
|
@@ -6,17 +6,23 @@
|
|
|
6
6
|
<version>1.0.0</version>
|
|
7
7
|
<!-- The oracle uses the same validator and mandatory reader as an artifact-server write. -->
|
|
8
8
|
<dependencies>
|
|
9
|
-
<dependency><groupId>org.metadatacenter</groupId><artifactId>cedar-model-validation-library</artifactId><version>2.9.
|
|
10
|
-
<dependency><groupId>org.metadatacenter</groupId><artifactId>cedar-artifact-library</artifactId><version>2.9.
|
|
9
|
+
<dependency><groupId>org.metadatacenter</groupId><artifactId>cedar-model-validation-library</artifactId><version>2.9.35-SNAPSHOT</version></dependency>
|
|
10
|
+
<dependency><groupId>org.metadatacenter</groupId><artifactId>cedar-artifact-library</artifactId><version>2.9.35-SNAPSHOT</version></dependency>
|
|
11
11
|
</dependencies>
|
|
12
12
|
<!--
|
|
13
13
|
The Nexus repositories the Java builds read, which answer anonymous reads. Central comes first, as
|
|
14
14
|
in their settings: a third-party artifact asked of Nexus first costs two misses against its daily
|
|
15
15
|
request limit.
|
|
16
|
+
|
|
17
|
+
CEDAR snapshots are checked on every run rather than once a day. The gate compares the browser
|
|
18
|
+
meta-schemas with the Java libraries on develop, and a cached snapshot up to a day old, or one a
|
|
19
|
+
failed check left in place, makes it fail or pass against the wrong Java. A check costs a few
|
|
20
|
+
small metadata requests, and a jar is fetched only after a new build. A local install newer than
|
|
21
|
+
the latest build is still used.
|
|
16
22
|
-->
|
|
17
23
|
<repositories>
|
|
18
24
|
<repository><id>central</id><url>https://repo.maven.apache.org/maven2</url><snapshots><enabled>false</enabled></snapshots></repository>
|
|
19
|
-
<repository><id>cedar-snapshots</id><url>https://nexus.bmir.stanford.edu/repository/snapshots/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository>
|
|
25
|
+
<repository><id>cedar-snapshots</id><url>https://nexus.bmir.stanford.edu/repository/snapshots/</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots></repository>
|
|
20
26
|
<repository><id>cedar-releases</id><url>https://nexus.bmir.stanford.edu/repository/releases/</url><snapshots><enabled>false</enabled></snapshots></repository>
|
|
21
27
|
</repositories>
|
|
22
28
|
</project>
|