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 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`. CED tests its actual coordinator and
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
- await promisify(execFile)('mvn', ['-q', '-f', fileURLToPath(new URL('pom.xml', import.meta.url)),
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();
@@ -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.32-SNAPSHOT</version></dependency>
10
- <dependency><groupId>org.metadatacenter</groupId><artifactId>cedar-artifact-library</artifactId><version>2.9.32-SNAPSHOT</version></dependency>
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>