@colony2/c2j 0.0.3 → 0.0.5
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 +41 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ c2j init
|
|
|
21
21
|
c2j submit
|
|
22
22
|
c2j exec
|
|
23
23
|
c2j list
|
|
24
|
+
c2j test
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
Use `go run ./cmd/c2j --help` or `c2j --help` to see the full command tree.
|
|
@@ -245,6 +246,46 @@ Note:
|
|
|
245
246
|
|
|
246
247
|
- `--json` and `--run` are mutually exclusive
|
|
247
248
|
|
|
249
|
+
## Testing Recipes
|
|
250
|
+
|
|
251
|
+
`c2j test` compiles, validates, and runs recipe test suites locally. It does not call the old Colony2 API.
|
|
252
|
+
|
|
253
|
+
Compile a suite to canonical IR:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
c2j test compile \
|
|
257
|
+
--recipe-file ./recipes/my-recipe.yaml \
|
|
258
|
+
--file ./recipes/my-recipe.test.yaml \
|
|
259
|
+
--out ./tmp/compiled-test.json
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Run a local suite:
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
c2j test run \
|
|
266
|
+
--recipe-file ./recipes/my-recipe.yaml \
|
|
267
|
+
--file ./recipes/my-recipe.test.yaml \
|
|
268
|
+
--artifact-mode inline
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Run one case:
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
c2j test case run \
|
|
275
|
+
--recipe-file ./recipes/my-recipe.yaml \
|
|
276
|
+
--file ./recipes/my-recipe.test.yaml \
|
|
277
|
+
--case-id smoke
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
Useful flags:
|
|
281
|
+
|
|
282
|
+
- `--recipe <name-or-git-selector>` targets a current-cell recipe or explicit git selector
|
|
283
|
+
- `--recipe-file <path>` uses a local inline recipe file
|
|
284
|
+
- `--case <id>` filters suite mode to selected cases
|
|
285
|
+
- `--parallelism <n>` controls local case concurrency
|
|
286
|
+
- `--out-dir <dir>` defaults to `.c2j/test-results/<timestamp>/`
|
|
287
|
+
- passthrough cases use a disposable embedded runtime root automatically; use `--runtime-root` and `--keep-runtime` only for debugging
|
|
288
|
+
|
|
248
289
|
## Running Jobs
|
|
249
290
|
|
|
250
291
|
`c2j exec` executes or continues an existing job and prints live story progress to stdout.
|
|
@@ -450,4 +491,3 @@ c2j submit \
|
|
|
450
491
|
- command entrypoint: [main.go](main.go)
|
|
451
492
|
- embedded runtime notes: [embed-swf-mode-spec.md](embed-swf-mode-spec.md)
|
|
452
493
|
- recipe authoring docs: [RECIPE_AUTHORING_GUIDE.md](../../recipes/guides/RECIPE_AUTHORING_GUIDE.md)
|
|
453
|
-
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colony2/c2j",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"description": "c2j job system",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node install.js",
|
|
@@ -30,51 +30,51 @@
|
|
|
30
30
|
},
|
|
31
31
|
"archives": {
|
|
32
32
|
"darwin-arm64": {
|
|
33
|
-
"name": "c2j_0.0.
|
|
34
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
33
|
+
"name": "c2j_0.0.5_Darwin_arm64.tar.gz",
|
|
34
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.5/c2j_0.0.5_Darwin_arm64.tar.gz",
|
|
35
35
|
"bins": [
|
|
36
36
|
"c2j"
|
|
37
37
|
],
|
|
38
38
|
"format": "tar.gz",
|
|
39
39
|
"checksum": {
|
|
40
40
|
"algorithm": "sha256",
|
|
41
|
-
"digest": "
|
|
41
|
+
"digest": "f18a96d7b452641d4f382aecd2c5fe1e2bf916c2cfbc21bde885f0353ed1441c"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"darwin-x64": {
|
|
45
|
-
"name": "c2j_0.0.
|
|
46
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
45
|
+
"name": "c2j_0.0.5_Darwin_x86_64.tar.gz",
|
|
46
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.5/c2j_0.0.5_Darwin_x86_64.tar.gz",
|
|
47
47
|
"bins": [
|
|
48
48
|
"c2j"
|
|
49
49
|
],
|
|
50
50
|
"format": "tar.gz",
|
|
51
51
|
"checksum": {
|
|
52
52
|
"algorithm": "sha256",
|
|
53
|
-
"digest": "
|
|
53
|
+
"digest": "7f6f02d106e9f729270544970ca61106f1516f71ae578fda0e4819dd3729e043"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"linux-arm64": {
|
|
57
|
-
"name": "c2j_0.0.
|
|
58
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
57
|
+
"name": "c2j_0.0.5_Linux_arm64.tar.gz",
|
|
58
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.5/c2j_0.0.5_Linux_arm64.tar.gz",
|
|
59
59
|
"bins": [
|
|
60
60
|
"c2j"
|
|
61
61
|
],
|
|
62
62
|
"format": "tar.gz",
|
|
63
63
|
"checksum": {
|
|
64
64
|
"algorithm": "sha256",
|
|
65
|
-
"digest": "
|
|
65
|
+
"digest": "41c04d6a49c830c6f7d8d7e9df56c9791c2c10a2ca111e78732bbb3c4d494211"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"linux-x64": {
|
|
69
|
-
"name": "c2j_0.0.
|
|
70
|
-
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.
|
|
69
|
+
"name": "c2j_0.0.5_Linux_x86_64.tar.gz",
|
|
70
|
+
"url": "https://github.com/colony-2/c2j-release/releases/download/v0.0.5/c2j_0.0.5_Linux_x86_64.tar.gz",
|
|
71
71
|
"bins": [
|
|
72
72
|
"c2j"
|
|
73
73
|
],
|
|
74
74
|
"format": "tar.gz",
|
|
75
75
|
"checksum": {
|
|
76
76
|
"algorithm": "sha256",
|
|
77
|
-
"digest": "
|
|
77
|
+
"digest": "f63d4d0789dcffe5549b186a38acfd53b03d6c8e8698793538fd3859b564cf70"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
},
|