-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparity-matrix.yaml
More file actions
2386 lines (2189 loc) · 130 KB
/
Copy pathparity-matrix.yaml
File metadata and controls
2386 lines (2189 loc) · 130 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# =============================================================================
# @devcontainers/cli — Parity Matrix TS ↔ Go
# Complementary source to cli-flags-inventory.yaml
# Goal: reduce iterations by separating parity by lanes and by small cases
# =============================================================================
meta:
generated_for_branch: go-rewrite
scope:
languages: [ts, go]
commands: [features-info, read-configuration, exec, run-user-commands, set-up, up, build]
lanes:
contract:
description: "Parsing, required args, enums, error formats, output shape"
docker_required: false
semantic:
description: "Logical behavior with fixtures or controlled metadata"
docker_required: mixed
runtime:
description: "Flows with real Docker, compose, lifecycle, buildx"
docker_required: true
statuses:
- missing
- mismatch
- match
- blocked-infra
- deferred-runtime
execution_order:
- phase: 1
lane: contract
commands: [features-info, read-configuration, exec, run-user-commands, set-up]
reason: "Highest return on cost; detects contract gaps without Docker noise"
- phase: 2
lane: contract
commands: [up, build]
reason: "Closes out validations and envelopes before runtime"
- phase: 3
lane: semantic
commands: [features-info, read-configuration, exec, run-user-commands]
reason: "Detects partially wired flags or divergent semantics"
- phase: 4
lane: runtime
commands: [set-up, up]
reason: "Minimal happy path and error path"
- phase: 5
lane: runtime
commands: [build]
reason: "Highest infrastructure noise; leave for last"
normalization:
stdout_json:
- sort_keys
- drop_nulls
- drop_absolute_paths
- drop_volatile_ids
stderr:
- redact_timestamps
- redact_host_paths
- redact_container_ids
- optionally_non_fatal
assertions:
- exit_code
- stdout_normalized
- stderr_normalized
initial_cases:
- id: features-info.invalid-mode
lane: contract
command: features-info
priority: p0
docker_required: false
ts_cmd: "features info invalid ghcr.io/devcontainers/features/go"
asserts: [exit_code, stderr_normalized]
class: mode-validation
current_status: match
notes: "Keep as a guardrail; previously missing in Go"
- id: features-info.manifest-json
lane: contract
command: features-info
priority: p0
docker_required: false
network_required: true
ts_cmd: "features info manifest ghcr.io/devcontainers/features/go --output-format json"
asserts: [exit_code, stdout_normalized]
class: output-shape
current_status: match
- id: features-info.tags-json
lane: contract
command: features-info
priority: p0
docker_required: false
network_required: true
ts_cmd: "features info tags ghcr.io/devcontainers/features/go --output-format json"
asserts: [exit_code, stdout_normalized]
class: output-shape
current_status: match
- id: features-info.dependencies-text
lane: semantic
command: features-info
priority: p0
docker_required: false
network_required: true
ts_cmd: "features info dependencies ghcr.io/devcontainers/features/go"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: dependency-graph
current_status: match
notes: "The normalized output now converges in the A/B comparison"
- id: features-info.invalid-output-format
lane: contract
command: features-info
priority: p1
docker_required: false
ts_cmd: "features info manifest ghcr.io/devcontainers/features/go --output-format yaml"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
- id: features-info.invalid-log-level
lane: contract
command: features-info
priority: p1
docker_required: false
ts_cmd: "features info manifest ghcr.io/devcontainers/features/go --log-level warning"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
- id: features-info.invalid-feature-id-text
lane: contract
command: features-info
priority: p1
docker_required: false
ts_cmd: "features info manifest not-a-feature-id"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
- id: features-info.invalid-feature-id-json
lane: contract
command: features-info
priority: p1
docker_required: false
ts_cmd: "features info manifest not-a-feature-id --output-format json"
asserts: [exit_code, stdout_normalized]
class: parse-validation
current_status: match
# --- Cases that pin down divergences uncovered by the coverage audit ---
- id: up.invalid-workspace-mount-consistency
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --workspace-mount-consistency bogus"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
notes: "TS validates the yargs enum [consistent,cached,delegated]; Go previously passed the raw value to docker."
- id: features-publish.invalid-log-level
lane: contract
command: features-publish
priority: p1
docker_required: false
ts_cmd: "features publish src/test/configs --namespace o/r --log-level bogus"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
notes: "TS rejects --log-level outside [info,debug,trace]; Go previously defaulted to Info and continued."
- id: features.resolve-dependencies-no-features
lane: contract
command: features
priority: p1
docker_required: false
ts_cmd: "features resolve-dependencies --workspace-folder src/test/configs/image"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "config with no features → TS errors to stderr exit 1; Go previously printed {installOrder:[]} exit 0."
# --- Wave A: new cases (some uncovered divergences, now fixed) ---
- id: features-publish.missing-required
lane: contract
command: features-publish
priority: p1
docker_required: false
ts_cmd: "features publish src/test/configs"
asserts: [exit_code, stderr_normalized]
class: required-args
current_status: match
notes: "TS: 'Missing required argument: namespace'. Go emitted the cobra phrasing (MarkFlagRequired); now publishCollection validates an empty namespace with the same message."
- id: templates.publish-missing-namespace
lane: contract
command: templates
priority: p1
docker_required: false
ts_cmd: "templates publish src/test/configs"
asserts: [exit_code, stderr_normalized]
class: required-args
current_status: match
notes: "Identical to features-publish.missing-required: message 'Missing required argument: namespace'."
- id: up.invalid-default-user-env-probe
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --default-user-env-probe bogus"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
notes: "TS rejects the yargs enum; Go validates the same enum before touching Docker."
- id: build.compose-output-not-supported
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/compose-image-with-features --output type=local"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: wired-flags
current_status: match
notes: "compose + --output → TS throws '--output not supported.'"
- id: features.test-reject-global-scenarios-and-features
lane: contract
command: features
priority: p1
docker_required: false
ts_cmd: "features test --global-scenarios-only --features x"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "Mutual exclusion. Go emitted different wording; now it uses the oracle's ('Cannot combine --global-scenarios-only and --features')."
- id: features.test-reject-skip-scenarios-and-global-scenarios
lane: contract
command: features
priority: p1
docker_required: false
ts_cmd: "features test --skip-scenarios --global-scenarios-only"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "Go aligned with the oracle's text+order ('Cannot combine --skip-scenarios and --global-scenarios-only')."
- id: templates.apply-invalid-template-args-exit1
lane: contract
command: templates
priority: p1
docker_required: false
ts_cmd: "templates apply --template-id ghcr.io/x/y:1 --template-args [1,2,3]"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "Go emitted the parser detail; now a fixed message 'Invalid template arguments provided.' like TS."
- id: set-up.invalid-remote-env
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --remote-env BROKEN"
asserts: [exit_code, stderr_normalized]
class: format-validation
current_status: match
notes: "set-up did not validate --remote-env; now it calls validateRemoteEnvs like its sibling commands."
# --- Wave A batch 2: new cases (6 more divergences fixed) ---
- id: upgrade.err-invalid-target-version-format
lane: contract
command: upgrade
priority: p1
docker_required: false
ts_cmd: "upgrade --workspace-folder src/test/configs/image-with-features --feature ghcr.io/devcontainers/features/node --target-version abc"
asserts: [exit_code, stderr_normalized]
class: version-validation
current_status: match
notes: "TS validates in yargs .check() before the handler: --target-version must be x / x.y / x.y.z. 'abc' => exit 1 'Invalid version 'abc'. Must be in the form of 'x', 'x.y', or 'x.y.z''. Go previously declared --feature/--target-version as hidden but never read them (normal upgrade, exit 0); now RunE validates the format with the same regex and text."
- id: upgrade.err-feature-without-target-version
lane: contract
command: upgrade
priority: p1
docker_required: false
ts_cmd: "upgrade --workspace-folder src/test/configs/image-with-features --feature ghcr.io/devcontainers/features/node"
asserts: [exit_code, stderr_normalized]
class: version-validation
current_status: match
notes: "XOR from yargs .check(): --feature and --target-version must be used together. Only --feature => exit 1 'The '--target-version' and '--feature' flag must be used together.'. Go ignored both flags; now RunE applies the XOR with the same message."
- id: outdated.image-with-features-text
lane: runtime
command: outdated
priority: p1
network_required: true
ts_cmd: "outdated --workspace-folder src/test/configs/image-with-features --output-format text"
asserts: [exit_code, stdout_normalized]
class: outdated-runtime
current_status: match
notes: "outdated --output-format text: the Feature column is the full userFeatureId without tag (getFeatureIdWithoutVersion), rows follow the config's insertion order, and the format is the npm text-table (minimum widths, 2-space separator, left-aligned, no trailing spaces). Go previously shortened to the last 2 segments with tag, sorted alphabetically (map), and padded to %-50s with trailing spaces."
- id: features.package-single-feature-success
lane: runtime
command: features-package
priority: p1
docker_required: false
ts_cmd: "features package reference/src/test/container-features/example-v2-features-sets/simple/src/color -o ${PKG_OUT} -f"
setup_cmd: "PKG_OUT=/tmp/parity-pkg-single-${PARITY_CASE_ID}-${PARITY_SIDE}; rm -rf ${PKG_OUT}; echo PKG_OUT=$PKG_OUT"
verify_cmd: "test -f ${PKG_OUT}/devcontainer-feature-color.tgz && test -f ${PKG_OUT}/devcontainer-collection.json && printf ok"
cleanup_cmd: "rm -rf ${PKG_OUT}"
asserts: [exit_code, stdout_normalized]
class: collection-packaging
current_status: match
notes: "--target points to a folder for a SINGLE feature (devcontainer-feature.json + install.sh directly). TS dispatches packageSingleFeature (exit 0: tgz + a 1-element collection); Go iterated only subdirectories → empty collection → 'Failed to package'. Fix: packageCollection detects the metadata in the root folder and packages it as single."
- id: features.test-missing-src-test-folders
lane: contract
command: features
priority: p1
docker_required: false
ts_cmd: "features test --project-folder src/test/configs/image"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "project-folder with neither src/ nor test/. TS prints the banner and then the error to STDOUT (chalk.red, prefix '[-]') and exits 1; Go wrote the error to STDERR via the logger and without a banner. Fix: banner before the check + error to STDOUT with the exact text ('does not contain the required ''src'' and ''test'' folders.'). Both sides leave STDERR empty, so extractErrorReason canonicalizes to '' on both and stderr_normalized matches. stdout_normalized is not asserted: the TS banner carries the literal version 'vX.Y.Z' that the normalizer does not scrub (it would need a version-scrub, wave B)."
- id: build.no-lockfile-frozen-lockfile-mutually-exclusive
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --no-lockfile --frozen-lockfile"
asserts: [exit_code, stderr_normalized]
class: parse-validation
current_status: match
notes: "TS registers --no-lockfile/--frozen-lockfile as public and rejects all 3 no-lockfile+frozen combinations ('--no-lockfile and --frozen-lockfile are mutually exclusive.'). Go previously registered only the hidden --experimental-* → 'unknown flag: --no-lockfile'."
- id: exec.workspace-image-nonzero-exit
lane: runtime
command: exec
priority: p1
docker_required: true
ts_cmd: "exec --workspace-folder src/test/configs/image --id-label parity.case=${PARITY_CASE_ID}-${PARITY_SIDE} sh -c \"exit 7\""
setup_cmd: "if [ \"${PARITY_SIDE}\" = \"ts\" ]; then ${PARITY_CLI_TS} up --workspace-folder src/test/configs/image --buildkit=never --skip-post-create --id-label parity.case=${PARITY_CASE_ID}-${PARITY_SIDE} --remove-existing-container >/dev/null; else ${PARITY_CLI_GO} up --workspace-folder src/test/configs/image --buildkit=never --skip-post-create --id-label parity.case=${PARITY_CASE_ID}-${PARITY_SIDE} --remove-existing-container >/dev/null; fi"
cleanup_cmd: "IDS=$(docker ps -aq --filter label=parity.case=${PARITY_CASE_ID}-${PARITY_SIDE}); [ -n \"$IDS\" ] && docker rm -f $IDS >/dev/null 2>&1 || true"
asserts: [exit_code]
class: container-runtime
current_status: match
notes: "exec propagates the remote command's exit code (sh -c 'exit 7' -> exit 7 on both CLIs). Only exit_code is asserted: stdout is empty on both; stderr differs (Go emits a banner + bash noise 'no job control', TS does not)."
- id: exec.container-not-found
lane: runtime
command: exec
priority: p1
docker_required: true
ts_cmd: "exec --workspace-folder src/test/configs/image --id-label parity.case=missing echo hi"
asserts: [exit_code, stderr_normalized]
class: container-runtime
current_status: match
notes: "With no container running: both CLIs fail with 'Dev container not found.' exit 1. extractErrorReason normalizes Go's banner and TS's stack trace to the same reason."
- id: templates.publish-collection-success
lane: runtime
command: templates
priority: p1
docker_required: true
setup_cmd: "REG_NAME=parity-reg-${PARITY_CASE_ID}-${PARITY_SIDE}; docker rm -f $REG_NAME >/dev/null 2>&1; docker run -d --name $REG_NAME -p 127.0.0.1::5000 registry:3 >/dev/null; PORT=$(docker port $REG_NAME 5000/tcp | head -1 | sed s/.*://); curl -s --retry 30 --retry-delay 1 --retry-connrefused http://localhost:$PORT/v2/ >/dev/null 2>&1; echo REGISTRY=localhost:$PORT"
cleanup_cmd: "docker rm -f parity-reg-${PARITY_CASE_ID}-${PARITY_SIDE} >/dev/null 2>&1 || true"
ts_cmd: "templates publish reference/src/test/container-templates/example-templates-sets/simple/src -r ${REGISTRY} -n octocat/templates"
asserts: [exit_code, stdout_normalized]
class: templates-runtime
current_status: match
notes: "publishes the template collection (alpine, cpp, mytemplate, node-mongo) to a LOCAL registry:3, one per side started in setup_cmd with host 'localhost' (not 127.0.0.1) so that the TS OCI client uses plain HTTP. The random host port is captured via echo REGISTRY=localhost:PORT (the harness reSetupEnv injects it into the ts_cmd env). stdout = result-map JSON { id: {publishedTags:[1,1.0,1.0.0,latest], digest, version} }; the tarball digest differs between sides (Go tar vs node-tar) but is scrubbed to sha256:<HASH>, and the keys are ordered by normalizeValue. Each side uses its own fresh registry -> deterministic publishedTags."
- id: upgrade.write-lockfile-to-disk-success
lane: runtime
command: upgrade
priority: p1
network_required: true
setup_cmd: "WORKSPACE=/tmp/parity-upgrade-${PARITY_CASE_ID}-${PARITY_SIDE}; rm -rf $WORKSPACE; mkdir -p $WORKSPACE; cp -R reference/src/test/configs/image-with-features/. $WORKSPACE/; echo WORKSPACE=$WORKSPACE"
verify_cmd: "cat ${WORKSPACE}/.devcontainer-lock.json"
cleanup_cmd: "rm -rf /tmp/parity-upgrade-${PARITY_CASE_ID}-${PARITY_SIDE}"
ts_cmd: "upgrade --workspace-folder ${WORKSPACE}"
asserts: [exit_code]
class: upgrade-runtime
current_status: match
compare_hashes: true
notes: "upgrade WITHOUT --dry-run persists the lockfile to disk (.devcontainer-lock.json next to .devcontainer.json, getLockfilePath) and does not emit JSON to stdout; the verify_cmd cats the produced lockfile. Each side works on an isolated tmp copy of the image-with-features fixture. Both resolve the features against ghcr.io to the same digests (sha256 scrubbed by normalization anyway)."
- id: read-configuration.missing-required
lane: contract
command: read-configuration
priority: p0
docker_required: false
ts_cmd: "read-configuration"
asserts: [exit_code, stderr_normalized]
class: required-args
current_status: match
- id: read-configuration.invalid-log-level
lane: contract
command: read-configuration
priority: p0
docker_required: false
ts_cmd: "read-configuration --workspace-folder src/test/configs/image --log-level warning"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
notes: "Aligned in Go with info|debug|trace"
- id: read-configuration.invalid-log-format
lane: contract
command: read-configuration
priority: p0
docker_required: false
ts_cmd: "read-configuration --workspace-folder src/test/configs/image --log-format yaml"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
- id: read-configuration.fixture-image
lane: semantic
command: read-configuration
priority: p0
docker_required: true
ts_cmd: "read-configuration --workspace-folder src/test/configs/image"
asserts: [exit_code, stdout_normalized]
class: baseline-fixture
current_status: match
- id: read-configuration.features-configuration
lane: semantic
command: read-configuration
priority: p0
docker_required: false
network_required: true
ts_cmd: "read-configuration --workspace-folder src/test/configs/image-with-features --include-features-configuration"
asserts: [exit_code, stdout_normalized]
class: feature-resolution
current_status: match
compare_hashes: true
compare_nulls: true
- id: read-configuration.host-variable-substitution
lane: semantic
command: read-configuration
priority: p1
docker_required: false
ts_cmd: "read-configuration --workspace-folder src/test/configs/varsub-host"
asserts: [exit_code, stdout_normalized]
class: variable-substitution
current_status: match
notes: "Host substitution cross-command (no command owns it): ${localEnv:X} present and absent, ${localWorkspaceFolderBasename}."
- id: read-configuration.compose-path-terminal
lane: semantic
command: read-configuration
priority: p1
docker_required: true
ts_cmd: "read-configuration --workspace-folder src/test/configs/compose-with-name --docker-compose-path docker-compose --terminal-columns 80 --terminal-rows 24"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: wired-flags
current_status: match
notes: "Verified with the Go matrix; requires an environment with operational Docker/compose for revalidations"
- id: read-configuration.subfolder-config
lane: semantic
command: read-configuration
priority: p1
docker_required: true
ts_cmd: "read-configuration --workspace-folder src/test/configs/dockerfile-without-features --config src/test/configs/dockerfile-without-features/.devcontainer/subfolder/devcontainer.json"
asserts: [exit_code, stdout_normalized]
class: baseline-fixture
current_status: match
- id: read-configuration.invalid-id-label
lane: contract
command: read-configuration
priority: p1
docker_required: false
ts_cmd: "read-configuration --id-label broken"
asserts: [exit_code, stderr_normalized]
class: format-validation
current_status: match
- id: read-configuration.terminal-columns-implies-rows
lane: contract
command: read-configuration
priority: p1
docker_required: false
ts_cmd: "read-configuration --workspace-folder src/test/configs/image --terminal-columns 80"
asserts: [exit_code, stderr_normalized]
class: implies-validation
current_status: match
- id: read-configuration.terminal-rows-implies-columns
lane: contract
command: read-configuration
priority: p1
docker_required: false
ts_cmd: "read-configuration --workspace-folder src/test/configs/image --terminal-rows 24"
asserts: [exit_code, stderr_normalized]
class: implies-validation
current_status: match
- id: exec.missing-required
lane: contract
command: exec
priority: p0
docker_required: false
ts_cmd: "exec echo hello"
asserts: [exit_code, stderr_normalized]
class: required-args
current_status: match
- id: exec.invalid-id-label
lane: contract
command: exec
priority: p0
docker_required: false
ts_cmd: "exec --id-label broken echo hello"
asserts: [exit_code, stderr_normalized]
class: format-validation
current_status: match
- id: exec.invalid-remote-env
lane: contract
command: exec
priority: p0
docker_required: false
ts_cmd: "exec --workspace-folder src/test/configs/image --remote-env broken echo hello"
asserts: [exit_code, stderr_normalized]
class: format-validation
current_status: match
- id: exec.invalid-log-format
lane: contract
command: exec
priority: p1
docker_required: false
ts_cmd: "exec --workspace-folder src/test/configs/image --log-format yaml echo hello"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
- id: exec.invalid-log-level
lane: contract
command: exec
priority: p1
docker_required: false
ts_cmd: "exec --workspace-folder src/test/configs/image --log-level warning echo hello"
asserts: [exit_code, stderr_normalized]
class: enum-validation
current_status: match
- id: exec.wired-flags
lane: semantic
command: exec
priority: p0
docker_required: true
ts_cmd: "exec --workspace-folder src/test/configs/image --docker-compose-path docker-compose --default-user-env-probe loginShell --terminal-columns 80 --terminal-rows 24 echo hello"
asserts: [exit_code]
class: wired-flags
current_status: match
notes: "The current A/B comparison shows no observable divergence for this contract"
- id: exec.terminal-columns-implies-rows
lane: contract
command: exec
priority: p1
docker_required: false
ts_cmd: "exec --workspace-folder src/test/configs/image --terminal-columns 80 echo hello"
asserts: [exit_code, stderr_normalized]
class: implies-validation
current_status: match
- id: exec.terminal-rows-implies-columns
lane: contract
command: exec
priority: p1
docker_required: false
ts_cmd: "exec --workspace-folder src/test/configs/image --terminal-rows 24 echo hello"
asserts: [exit_code, stderr_normalized]
class: implies-validation
current_status: match
- id: run-user-commands.missing-required
lane: contract
command: run-user-commands
priority: p0
docker_required: false
ts_cmd: "run-user-commands"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: required-args
current_status: match
- id: run-user-commands.invalid-remote-env
lane: contract
command: run-user-commands
priority: p0
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --remote-env broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: format-validation
current_status: match
- id: run-user-commands.invalid-default-user-env-probe
lane: contract
command: run-user-commands
priority: p0
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --default-user-env-probe broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: run-user-commands.stop-for-personalization
lane: semantic
command: run-user-commands
priority: p0
docker_required: true
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --container-id fake123 --stop-for-personalization"
asserts: [exit_code]
class: lifecycle-semantics
current_status: match
notes: "Both fail with container not found; flag is accepted without error"
- id: run-user-commands.invalid-id-label
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --id-label broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: format-validation
current_status: match
- id: run-user-commands.invalid-log-format
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --log-format yaml"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: run-user-commands.invalid-log-level
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --log-level warning"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: run-user-commands.terminal-columns-implies-rows
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --terminal-columns 80"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: run-user-commands.terminal-rows-implies-columns
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --workspace-folder src/test/configs/image --terminal-rows 24"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: run-user-commands.config-not-found
lane: contract
command: run-user-commands
priority: p1
docker_required: false
ts_cmd: "run-user-commands --workspace-folder path-that-does-not-exist"
asserts: [exit_code, stdout_normalized]
class: required-args
current_status: match
- id: set-up.missing-container-id
lane: contract
command: set-up
priority: p0
docker_required: false
ts_cmd: "set-up"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: required-args
current_status: match
- id: set-up.invalid-default-user-env-probe
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --default-user-env-probe broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: set-up.invalid-log-format
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --log-format yaml"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: set-up.invalid-log-level
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --log-level warning"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: set-up.terminal-columns-implies-rows
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --terminal-columns 80"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: set-up.terminal-rows-implies-columns
lane: contract
command: set-up
priority: p1
docker_required: false
ts_cmd: "set-up --container-id fake --terminal-rows 24"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: up.invalid-buildkit
lane: contract
command: up
priority: p0
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --buildkit broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: up.invalid-gpu-availability
lane: contract
command: up
priority: p0
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --gpu-availability broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: up.invalid-update-remote-user-uid-default
lane: contract
command: up
priority: p0
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --update-remote-user-uid-default broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: build.invalid-buildkit
lane: contract
command: build
priority: p0
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/image --buildkit broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: build.invalid-log-format
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/image --log-format yaml"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: build.invalid-log-level
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/image --log-level warning"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: build.missing-workspace-folder
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: required-args
current_status: match
- id: build.config-not-found
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder path-that-does-not-exist"
asserts: [exit_code, stdout_normalized]
class: required-args
current_status: match
- id: build.platform-without-dockerfile
lane: contract
command: build
priority: p0
docker_required: true
ts_cmd: "build --workspace-folder src/test/configs/image --platform linux/amd64"
asserts: [exit_code, stdout_normalized]
class: cross-flag-validation
current_status: match
- id: build.buildkit-never-platform-failure
lane: contract
command: build
priority: p1
docker_required: true
network_required: true
ts_cmd: "build --workspace-folder src/test/configs/dockerfile-with-target --buildkit=never --platform linux/amd64"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: wired-flags
current_status: match
notes: "TS attempts a docker pull before reaching the discriminating validation; it is not a hermetic contract case. It requires Docker/network and should be promoted to match only after an effective comparison."
- id: build.compose-platform-not-supported
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/compose-image-with-features --platform linux/amd64"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: wired-flags
current_status: match
- id: build.compose-cache-to-not-supported
lane: contract
command: build
priority: p1
docker_required: false
ts_cmd: "build --workspace-folder src/test/configs/compose-image-with-features --cache-to=type=local,dest=/tmp/test-build-cache"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: wired-flags
current_status: match
- id: up.invalid-log-format
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --log-format yaml"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: up.invalid-log-level
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --log-level warning"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: enum-validation
current_status: match
- id: up.missing-workspace-or-id-label
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: required-args
current_status: match
- id: up.missing-workspace-or-override-config
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --id-label test=value"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: required-args
current_status: match
- id: up.invalid-id-label
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --id-label broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: format-validation
current_status: match
- id: up.invalid-remote-env
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --remote-env broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: format-validation
current_status: match
- id: up.invalid-mount
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --mount broken"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: format-validation
current_status: match
- id: up.terminal-columns-implies-rows
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --terminal-columns 80"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: up.terminal-rows-implies-columns
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder src/test/configs/image --terminal-rows 24"
asserts: [exit_code, stdout_normalized, stderr_normalized]
class: implies-validation
current_status: match
- id: up.config-not-found
lane: contract
command: up
priority: p1
docker_required: false
ts_cmd: "up --workspace-folder path-that-does-not-exist"
asserts: [exit_code, stdout_normalized]
class: required-args
current_status: match
- id: read-configuration.container-config-success
lane: runtime
command: read-configuration
priority: p0
docker_required: true
ts_cmd: "read-configuration --container-id ${CONTAINER_ID} --config src/test/configs/set-up-with-config/devcontainer.json --include-merged-configuration"
setup_cmd: "CONTAINER_ID=$(docker run -d alpine:3.17 sleep inf); echo CONTAINER_ID=$CONTAINER_ID"
cleanup_cmd: "docker rm -f ${CONTAINER_ID} >/dev/null 2>&1 || true"
asserts: [exit_code, stdout_normalized]
class: container-runtime
current_status: match
- id: read-configuration.container-metadata-success
lane: runtime
command: read-configuration
priority: p0
docker_required: true
ts_cmd: "read-configuration --container-id ${CONTAINER_ID} --include-merged-configuration"
setup_cmd: "IMAGE_NAME=parity-${PARITY_CASE_ID}-${PARITY_SIDE}; docker build -q -t ${IMAGE_NAME} src/test/configs/set-up-with-metadata >/dev/null; CONTAINER_ID=$(docker run -d -e TEST_CE=TEST_VALUE2 ${IMAGE_NAME} sleep inf); echo IMAGE_NAME=$IMAGE_NAME; echo CONTAINER_ID=$CONTAINER_ID"
cleanup_cmd: "docker rm -f ${CONTAINER_ID} >/dev/null 2>&1 || true; docker rmi -f ${IMAGE_NAME} >/dev/null 2>&1 || true"
asserts: [exit_code, stdout_normalized]
class: container-runtime
current_status: match