Skip to content

Commit 0b0e199

Browse files
fix(labs): run failure lab against WorkIt 1.0 (#69)
1 parent 0847c5b commit 0b0e199

7 files changed

Lines changed: 25 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ not calibrated model scores or proof of factual truth. WorkIt exposes the
5353
decision boundary; application authorization and external side effects remain
5454
caller-owned.
5555

56-
Run the same tracked datasets through the published `@workit/core@0.6.1`
56+
Run the same tracked datasets through the published `@workit/core@1.0.0`
5757
package in Node.js:
5858

5959
```sh

‎examples/ai-failure-lab/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# WorkIt AI Failure Lab
22

33
This standalone Node.js project runs the same bounded incident datasets shown by
4-
the WorkIt examples site through the published `@workit/core@0.6.1` package.
4+
the WorkIt examples site through the published `@workit/core@1.0.0` package.
55

66
## Run locally
77

‎examples/ai-failure-lab/launch-targets.d.mts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
*/
77

88
export const LAB_DEVCONTAINER_PATH: "examples/ai-failure-lab/.devcontainer/devcontainer.json";
9-
export const WORKIT_RUNTIME_VERSION: "0.6.1";
9+
export const WORKIT_RUNTIME_VERSION: "1.0.0";
1010
export const REAL_WORKIT_LAUNCH_URL: string;

‎examples/ai-failure-lab/launch-targets.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
export const LAB_DEVCONTAINER_PATH = "examples/ai-failure-lab/.devcontainer/devcontainer.json";
9-
export const WORKIT_RUNTIME_VERSION = "0.6.1";
9+
export const WORKIT_RUNTIME_VERSION = "1.0.0";
1010

1111
const codespacesUrl = new URL("https://codespaces.new/WorkRuntime/workit");
1212
codespacesUrl.searchParams.set("devcontainer_path", LAB_DEVCONTAINER_PATH);

‎examples/ai-failure-lab/package-lock.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/ai-failure-lab/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "node --test test/*.test.mjs"
1414
},
1515
"dependencies": {
16-
"@workit/core": "0.6.1"
16+
"@workit/core": "1.0.0"
1717
},
1818
"engines": {
1919
"node": ">=20.11"

‎examples/ai-failure-lab/test/codespaces-contract.test.mjs‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,26 @@ import { fileURLToPath } from "node:url";
1212
import {
1313
LAB_DEVCONTAINER_PATH,
1414
REAL_WORKIT_LAUNCH_URL,
15+
WORKIT_RUNTIME_VERSION,
1516
} from "../launch-targets.mjs";
1617

1718
const EXPECTED_WORKSPACE = "/workspaces/${localWorkspaceFolderBasename}/examples/ai-failure-lab";
1819

20+
test("published runtime label matches the locked dependency", async () => {
21+
const manifest = JSON.parse(await readFile(
22+
fileURLToPath(new URL("../package.json", import.meta.url)),
23+
"utf8",
24+
));
25+
const lockfile = JSON.parse(await readFile(
26+
fileURLToPath(new URL("../package-lock.json", import.meta.url)),
27+
"utf8",
28+
));
29+
30+
assert.equal(manifest.dependencies["@workit/core"], WORKIT_RUNTIME_VERSION);
31+
assert.equal(lockfile.packages[""].dependencies["@workit/core"], WORKIT_RUNTIME_VERSION);
32+
assert.equal(lockfile.packages["node_modules/@workit/core"].version, WORKIT_RUNTIME_VERSION);
33+
});
34+
1935
test("real WorkIt launch target uses the bounded Codespaces dev container", async () => {
2036
const launchUrl = new URL(REAL_WORKIT_LAUNCH_URL);
2137
const devcontainer = JSON.parse(await readFile(

0 commit comments

Comments
 (0)