nukadoko 0.5.0 → 0.7.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +553 -3
- data/README.ja.md +22 -6
- data/README.md +13 -7
- data/docs/ci.ja.md +542 -0
- data/docs/ci.md +635 -0
- data/docs/commands.ja.md +1524 -0
- data/docs/commands.md +1281 -0
- data/docs/engines.json +19 -0
- data/docs/execution-events.ja.md +336 -0
- data/docs/execution-events.md +423 -0
- data/docs/glossary.json +1348 -0
- data/docs/guide.ja.md +733 -0
- data/docs/guide.md +815 -0
- data/docs/intent.ja.md +133 -0
- data/docs/intent.md +156 -0
- data/docs/layout.ja.md +442 -0
- data/docs/layout.md +399 -0
- data/docs/releasing.ja.md +186 -0
- data/docs/releasing.md +237 -0
- data/docs/ruby/reference.ja.md +302 -0
- data/docs/ruby/reference.md +368 -0
- data/docs/spec.ja.md +8916 -0
- data/docs/spec.md +11250 -0
- data/docs/tutorial.ja.md +451 -0
- data/docs/tutorial.md +458 -0
- data/docs/typescript/adopting.ja.md +231 -0
- data/docs/typescript/adopting.md +251 -0
- data/docs/typescript/doors.ja.md +301 -0
- data/docs/typescript/doors.md +329 -0
- data/docs/typescript/migration-playwright-test.ja.md +189 -0
- data/docs/typescript/migration-playwright-test.md +212 -0
- data/docs/typescript/migration.ja.md +391 -0
- data/docs/typescript/migration.md +505 -0
- data/docs/typescript/reference.ja.md +176 -0
- data/docs/typescript/reference.md +197 -0
- data/docs/typescript/upgrading.ja.md +1774 -0
- data/docs/typescript/upgrading.md +2224 -0
- data/docs/web-app.ja.md +627 -0
- data/docs/web-app.md +659 -0
- data/docs/writing-scenarios.ja.md +544 -0
- data/docs/writing-scenarios.md +563 -0
- data/lib/nukadoko/base.rb +12 -5
- data/lib/nukadoko/changed_files.rb +95 -0
- data/lib/nukadoko/check.rb +459 -51
- data/lib/nukadoko/claim_drops.rb +271 -0
- data/lib/nukadoko/claim_line.rb +24 -4
- data/lib/nukadoko/claim_rules.rb +143 -1
- data/lib/nukadoko/claim_sides.rb +157 -9
- data/lib/nukadoko/cli.rb +403 -50
- data/lib/nukadoko/codes.json +246 -21
- data/lib/nukadoko/codes.rb +21 -4
- data/lib/nukadoko/command.rb +120 -13
- data/lib/nukadoko/command_help.rb +128 -0
- data/lib/nukadoko/compat.rb +469 -0
- data/lib/nukadoko/criteria.rb +1 -1
- data/lib/nukadoko/definition.rb +157 -7
- data/lib/nukadoko/error_frames.rb +6 -3
- data/lib/nukadoko/events/count.rb +146 -0
- data/lib/nukadoko/events/counted.rb +114 -0
- data/lib/nukadoko/events/format.rb +257 -0
- data/lib/nukadoko/events/lists.rb +154 -0
- data/lib/nukadoko/events/path.rb +285 -0
- data/lib/nukadoko/events/read.rb +284 -0
- data/lib/nukadoko/events/reader.rb +490 -0
- data/lib/nukadoko/events/selection.rb +252 -0
- data/lib/nukadoko/events/tally.rb +438 -0
- data/lib/nukadoko/features.rb +2 -2
- data/lib/nukadoko/fixtures.rb +160 -35
- data/lib/nukadoko/http_recording.rb +6 -2
- data/lib/nukadoko/intent.rb +364 -0
- data/lib/nukadoko/intent_file.rb +81 -0
- data/lib/nukadoko/intent_view.rb +190 -0
- data/lib/nukadoko/js_json.rb +2 -1
- data/lib/nukadoko/judge.rb +2 -2
- data/lib/nukadoko/judgment_file.rb +22 -1
- data/lib/nukadoko/judgments.rb +33 -3
- data/lib/nukadoko/measure_mcp.rb +202 -0
- data/lib/nukadoko/parts.rb +8 -2
- data/lib/nukadoko/path_view.rb +252 -0
- data/lib/nukadoko/place_rows.rb +161 -0
- data/lib/nukadoko/program.rb +1265 -51
- data/lib/nukadoko/program_log.rb +122 -0
- data/lib/nukadoko/program_shape.rb +385 -0
- data/lib/nukadoko/project_fixtures.rb +43 -10
- data/lib/nukadoko/project_program.rb +5 -4
- data/lib/nukadoko/repeated_prefix.rb +310 -0
- data/lib/nukadoko/report_run.rb +3 -3
- data/lib/nukadoko/run.rb +1156 -159
- data/lib/nukadoko/run_record.rb +70 -46
- data/lib/nukadoko/scaffold.rb +24 -6
- data/lib/nukadoko/schema.rb +15 -2
- data/lib/nukadoko/secrets.rb +55 -5
- data/lib/nukadoko/states.rb +478 -0
- data/lib/nukadoko/step.rb +71 -2
- data/lib/nukadoko/step_fixtures.rb +52 -3
- data/lib/nukadoko/summary.rb +803 -30
- data/lib/nukadoko/table.rb +4 -2
- data/lib/nukadoko/text_fit.rb +20 -7
- data/lib/nukadoko/trace.rb +152 -45
- data/lib/nukadoko/tree_passes.rb +95 -33
- data/lib/nukadoko/underneath.rb +311 -0
- data/lib/nukadoko/verdict.rb +18 -1
- data/lib/nukadoko/version.rb +1 -1
- data/lib/nukadoko/vocabulary.rb +166 -23
- data/lib/nukadoko/walk.rb +2 -2
- data/lib/nukadoko/walk_step.rb +1 -1
- data/lib/nukadoko.rb +23 -0
- data/llms.txt +42 -35
- data/sig/generated/nukadoko/base.rbs +4 -4
- data/sig/generated/nukadoko/changed_files.rbs +42 -0
- data/sig/generated/nukadoko/check.rbs +147 -10
- data/sig/generated/nukadoko/claim_drops.rbs +135 -0
- data/sig/generated/nukadoko/claim_line.rbs +11 -0
- data/sig/generated/nukadoko/claim_rules.rbs +49 -4
- data/sig/generated/nukadoko/claim_sides.rbs +63 -12
- data/sig/generated/nukadoko/cli.rbs +80 -7
- data/sig/generated/nukadoko/codes.rbs +19 -4
- data/sig/generated/nukadoko/command.rbs +68 -1
- data/sig/generated/nukadoko/command_help.rbs +18 -0
- data/sig/generated/nukadoko/compat.rbs +392 -0
- data/sig/generated/nukadoko/criteria.rbs +1 -1
- data/sig/generated/nukadoko/definition.rbs +50 -0
- data/sig/generated/nukadoko/error_frames.rbs +1 -1
- data/sig/generated/nukadoko/events/count.rbs +69 -0
- data/sig/generated/nukadoko/events/counted.rbs +70 -0
- data/sig/generated/nukadoko/events/format.rbs +163 -0
- data/sig/generated/nukadoko/events/lists.rbs +47 -0
- data/sig/generated/nukadoko/events/path.rbs +161 -0
- data/sig/generated/nukadoko/events/read.rbs +109 -0
- data/sig/generated/nukadoko/events/reader.rbs +226 -0
- data/sig/generated/nukadoko/events/selection.rbs +100 -0
- data/sig/generated/nukadoko/events/tally.rbs +227 -0
- data/sig/generated/nukadoko/features.rbs +6 -4
- data/sig/generated/nukadoko/fixtures.rbs +67 -11
- data/sig/generated/nukadoko/http_recording.rbs +1 -1
- data/sig/generated/nukadoko/intent.rbs +132 -0
- data/sig/generated/nukadoko/intent_file.rbs +46 -0
- data/sig/generated/nukadoko/intent_view.rbs +69 -0
- data/sig/generated/nukadoko/judgment_file.rbs +7 -1
- data/sig/generated/nukadoko/judgments.rbs +10 -0
- data/sig/generated/nukadoko/measure_mcp.rbs +104 -0
- data/sig/generated/nukadoko/parts.rbs +2 -2
- data/sig/generated/nukadoko/path_view.rbs +105 -0
- data/sig/generated/nukadoko/place_rows.rbs +43 -0
- data/sig/generated/nukadoko/program.rbs +627 -23
- data/sig/generated/nukadoko/program_log.rbs +67 -0
- data/sig/generated/nukadoko/program_shape.rbs +147 -0
- data/sig/generated/nukadoko/project_fixtures.rbs +16 -3
- data/sig/generated/nukadoko/project_program.rbs +2 -1
- data/sig/generated/nukadoko/repeated_prefix.rbs +172 -0
- data/sig/generated/nukadoko/report_run.rbs +1 -1
- data/sig/generated/nukadoko/run.rbs +286 -41
- data/sig/generated/nukadoko/run_record.rbs +20 -12
- data/sig/generated/nukadoko/scaffold.rbs +3 -0
- data/sig/generated/nukadoko/schema.rbs +5 -0
- data/sig/generated/nukadoko/secrets.rbs +26 -3
- data/sig/generated/nukadoko/states.rbs +214 -0
- data/sig/generated/nukadoko/step.rbs +58 -1
- data/sig/generated/nukadoko/step_fixtures.rbs +39 -0
- data/sig/generated/nukadoko/summary.rbs +256 -2
- data/sig/generated/nukadoko/table.rbs +3 -2
- data/sig/generated/nukadoko/trace.rbs +108 -33
- data/sig/generated/nukadoko/tree_passes.rbs +36 -8
- data/sig/generated/nukadoko/underneath.rbs +141 -0
- data/sig/generated/nukadoko/verdict.rbs +8 -0
- data/sig/generated/nukadoko/vocabulary.rbs +45 -6
- data/skills/nukadoko/SKILL.md +18 -18
- data/skills/nukadoko/references/checking-steps.md +16 -83
- data/skills/nukadoko/references/diagnosing.md +6 -6
- data/skills/nukadoko/references/done.md +22 -0
- data/skills/nukadoko/references/evidence.md +19 -6
- data/skills/nukadoko/references/exploring.md +22 -7
- data/skills/nukadoko/references/fixtures.md +12 -32
- data/skills/nukadoko/references/judgments.md +18 -0
- data/skills/nukadoko/references/maintenance.md +1 -1
- data/skills/nukadoko/references/merge-risk.md +1 -1
- data/skills/nukadoko/references/parts.md +46 -23
- data/skills/nukadoko/references/{perturbed-worlds.md → perturbed-systems.md} +30 -12
- data/skills/nukadoko/references/program.md +168 -169
- data/skills/nukadoko/references/reviewing.md +20 -20
- data/skills/nukadoko/references/ruby/checking-steps.md +106 -0
- data/skills/nukadoko/references/ruby/examples/cli.md +212 -0
- data/skills/nukadoko/references/ruby/fixtures.md +34 -0
- data/skills/nukadoko/references/ruby/program.md +112 -0
- data/skills/nukadoko/references/ruby/step-files.md +115 -0
- data/skills/nukadoko/references/running.md +34 -34
- data/skills/nukadoko/references/scenario-rules.md +7 -6
- data/skills/nukadoko/references/states.md +7 -1
- data/skills/nukadoko/references/step-files.md +41 -120
- data/skills/nukadoko/references/typescript/checking-steps.md +129 -0
- data/skills/nukadoko/references/{examples → typescript/examples}/cli.md +1 -1
- data/skills/nukadoko/references/{examples → typescript/examples}/http-api.md +6 -6
- data/skills/nukadoko/references/{examples → typescript/examples}/workflow.md +1 -1
- data/skills/nukadoko/references/typescript/fixtures.md +56 -0
- data/skills/nukadoko/references/typescript/program.md +111 -0
- data/skills/nukadoko/references/typescript/step-files.md +104 -0
- data/skills/nukadoko/references/verdicts.md +10 -10
- data/skills/nukadoko/references/writing-steps.md +67 -67
- data/skills/nukadoko/references/writing-the-feature.md +1 -1
- data/skills/nukadoko-verification/SKILL.md +13 -8
- metadata +103 -7
- data/skills/nukadoko/references/ruby.md +0 -80
data/lib/nukadoko/codes.json
CHANGED
|
@@ -1,946 +1,1171 @@
|
|
|
1
1
|
{
|
|
2
2
|
"additional-feature-dir-missing": {
|
|
3
3
|
"severity": "error",
|
|
4
|
+
"source": "check",
|
|
4
5
|
"description": "An entry in additionalFeatureDirs does not exist on disk.",
|
|
5
6
|
"fix": "Create the directory, or remove the entry from additionalFeatureDirs in the config file."
|
|
6
7
|
},
|
|
7
8
|
"alias-key-mismatch": {
|
|
8
9
|
"severity": "error",
|
|
10
|
+
"source": "check",
|
|
9
11
|
"description": "A step has more than one pattern, and the patterns bind different sets of keys.",
|
|
10
12
|
"fix": "Edit the step's patterns so that each one captures the same set of keys."
|
|
11
13
|
},
|
|
12
14
|
"ambiguous-step": {
|
|
13
15
|
"severity": "error",
|
|
16
|
+
"source": "check",
|
|
14
17
|
"description": "A line in a feature file matches more than one step definition.",
|
|
15
18
|
"fix": "Reword the feature line, or edit one of the matching patterns, so that exactly one step matches. nuka steps lists each pattern."
|
|
16
19
|
},
|
|
17
20
|
"args-not-object": {
|
|
18
21
|
"severity": "error",
|
|
22
|
+
"source": "check",
|
|
19
23
|
"description": "A step has a pattern, but its args schema is not a z.object, so there is no key to check that pattern's captures against.",
|
|
20
24
|
"fix": "Declare the step's args as a z.object whose keys the pattern captures fill."
|
|
21
25
|
},
|
|
22
26
|
"base-feature-unparsed": {
|
|
23
27
|
"severity": "warning",
|
|
28
|
+
"source": "run",
|
|
24
29
|
"description": "Under nuka run --base, the base's copy of a feature file does not parse, so its criteria were not compared with head's and each counts as new.",
|
|
25
30
|
"fix": "Nothing needs changing at head. Each criterion of the file is judged as new, so its base cell has to show a Then failing; to compare them with the base, name a base whose copy of the file parses."
|
|
26
31
|
},
|
|
27
32
|
"base-features-at-root": {
|
|
28
33
|
"severity": "refused",
|
|
34
|
+
"source": "refusal",
|
|
29
35
|
"description": "nuka run --base needs the scenarios and their steps in a directory of their own, and featuresDir is the project root, where the program's code is too.",
|
|
30
36
|
"fix": "Move the feature files and the step files into a directory of their own, such as features/, and set featuresDir to it."
|
|
31
37
|
},
|
|
32
38
|
"base-git-failed": {
|
|
33
39
|
"severity": "refused",
|
|
40
|
+
"source": "refusal",
|
|
34
41
|
"description": "nuka run --base could not ask git what it needs, or could not check the base out into the run's directory: git is missing, or a git command failed.",
|
|
35
42
|
"fix": "Run the git command the message names to see its error, or install git."
|
|
36
43
|
},
|
|
37
44
|
"base-outside-git": {
|
|
38
45
|
"severity": "refused",
|
|
46
|
+
"source": "refusal",
|
|
39
47
|
"description": "nuka run --base compares with a git commit, and the project is not inside a git repository.",
|
|
40
48
|
"fix": "Run nuka run --base inside the git repository that holds the project, or run without --base."
|
|
41
49
|
},
|
|
42
50
|
"base-ref-unknown": {
|
|
43
51
|
"severity": "refused",
|
|
52
|
+
"source": "refusal",
|
|
44
53
|
"description": "nuka run --base names a ref that is no commit in the project's repository.",
|
|
45
54
|
"fix": "Name a branch, tag, or commit the repository holds, such as the pull request's base."
|
|
46
55
|
},
|
|
47
56
|
"base-shallow": {
|
|
48
57
|
"severity": "refused",
|
|
58
|
+
"source": "refusal",
|
|
49
59
|
"description": "nuka run --base names a ref that this shallow clone does not hold, because it holds only part of the history.",
|
|
50
60
|
"fix": "Fetch the base first with the command the refusal names, or fetch-depth: 0 on actions/checkout."
|
|
51
61
|
},
|
|
52
62
|
"capture-type-mismatch": {
|
|
53
63
|
"severity": "error",
|
|
64
|
+
"source": "check",
|
|
54
65
|
"description": "A pattern captures a key with a built-in type whose JS value is a number, string, or bigint, but the args schema declares that key as a different primitive (number, string, boolean, or bigint) and does not coerce the captured value.",
|
|
55
66
|
"fix": "Make the capture type and the args field type agree: change the {key:type} in the pattern, or declare the field with z.coerce."
|
|
56
67
|
},
|
|
57
68
|
"check-errors": {
|
|
58
69
|
"severity": "refused",
|
|
70
|
+
"source": "refusal",
|
|
59
71
|
"description": "nuka run did not start, because nuka check reports errors for the selected scenarios.",
|
|
60
72
|
"fix": "Correct each error the findings name, or pass --no-check to run anyway."
|
|
61
73
|
},
|
|
62
74
|
"claim-args-dropped": {
|
|
63
75
|
"severity": "error",
|
|
76
|
+
"source": "check",
|
|
64
77
|
"description": "A claim reads a path into a value an earlier step returned, that step's returns schema may hold the path, and the claim step's own args schema declares the value through an object schema that does not declare a key on the path and keeps no key it does not declare: a z.object drops the key when it parses the args, and a z.strictObject refuses it. The run leaves a claim unjudged when its args schema changed the value it reads, and breaks one whose value is undefined, so the claim never holds, whatever the behaviour is. Also reported for a lacks-field claim, or a where claim that selects by one, whose field the args object drops: that claim never breaks, and that where never leaves an item out. Only a key under the from key is checked; an args schema that may keep the key (z.looseObject, a catchall, a union, a transform, or a default or a catch on the path) is taken to keep it.",
|
|
65
78
|
"fix": "Declare the value in the claim step's args with the producing step's own schema (such as user: signUp.returns.shape.user), or with z.looseObject, so args keeps the key the claim reads."
|
|
66
79
|
},
|
|
67
80
|
"claim-aria-snapshot-names-nothing": {
|
|
68
81
|
"severity": "error",
|
|
82
|
+
"source": "check",
|
|
69
83
|
"description": "A fits-aria-snapshot claim's expected value is a sentence key the line fills, through its docstring or a {word}, {string}, or anonymous capture, with an ARIA snapshot that names no node: only comments, an empty text, a /children line, or nothing at all. Every page holds such a tree, so it states nothing, and nuka run breaks the claim on every page, --no-check included.",
|
|
70
84
|
"fix": "State in the expected ARIA snapshot (the docstring or the capture) at least one node the page must show: a role with its name in double quotes, a text, or a /url, as the browser's ARIA snapshot prints it."
|
|
71
85
|
},
|
|
72
86
|
"claim-aria-snapshot-unreadable": {
|
|
73
87
|
"severity": "error",
|
|
88
|
+
"source": "check",
|
|
74
89
|
"description": "A fits-aria-snapshot claim's expected value is a sentence key the line fills, through its docstring or a {word}, {string}, or anonymous capture, with a text that does not read as an ARIA snapshot, or that states what nukadoko does not judge: a name or a text between slashes, the [active] state, a prop that would describe no node, or a plain text that YAML reads as a number, a boolean, or null. The claim would break whatever the page shows, so the finding names the line of the expected snapshot and how to write it.",
|
|
75
90
|
"fix": "Write the line of the expected ARIA snapshot the finding names as the browser's ARIA snapshot prints it: a YAML list, each item starting with \"- \", a name in double quotes, and a text that YAML reads as something else in quotes."
|
|
76
91
|
},
|
|
77
92
|
"claim-compares-itself": {
|
|
78
93
|
"severity": "error",
|
|
94
|
+
"source": "check",
|
|
79
95
|
"description": "A claim's actual value and its expected value resolve to the same place: the same path of the same earlier line's result, or the same observe path, with a view and an at counted as steps of the path. Such a claim holds whatever the behaviour is. Also reported for a claim step whose observe receives a from value that an expected from reads, or one that holds it or that it holds, so observe could return the expected value as the actual one, and for one whose observe receives another from key that holds, or sits inside, the from value an actual reads when that claim's expected value is { observe }, so observe could return the actual value as the expected one. observe never receives the expected key itself, nor the actual from key of a claim whose expected value is { observe }. nuka run and nuka do break such a claim at run time too, so --no-check does not let it hold.",
|
|
80
96
|
"fix": "Take the expected value from the sentence (a capture, the docstring, or the table), or from another step's result, so the two sides can differ. For observe, take the key the finding names out of from, so observe does not receive it, or fill it from another step's result."
|
|
81
97
|
},
|
|
82
98
|
"claim-expected-transformed": {
|
|
83
99
|
"severity": "error",
|
|
100
|
+
"source": "check",
|
|
84
101
|
"description": "A claim step names an args key as its expected value, and a pattern fills that key with a parameter type that config.parameterTypes or a compat defineParameterType registered with a transformer. The transformer rewrites the line's text before the claim reads it, so code would decide what the claim compares while the record labels the value as the sentence's. Under --no-check, nuka run leaves a claim that compares with such a key unjudged, so the run agrees with the check.",
|
|
85
102
|
"fix": "Capture the key with a type that has no transformer, such as {key:string}, and declare expected_view (text, lines, json, or comma-list) on the claim if the text needs one."
|
|
86
103
|
},
|
|
87
104
|
"claim-field-stripped": {
|
|
88
105
|
"severity": "error",
|
|
106
|
+
"source": "check",
|
|
89
107
|
"description": "A lacks-field claim reads a value an earlier step returned, and that step's returns schema declares the value as an object that does not declare the field and keeps no key it does not declare: a z.object, which drops such a key when it parses the result, or a z.strictObject, which refuses it. The field is never there, so the claim never breaks, whatever the behaviour is. Also reported for a where claim that selects the items lacking such a field, which then never leaves an item out. Only a field the claim names as a literal, or that the line fills through a {word}, {string}, or anonymous capture, is checked; a schema that may keep the key (z.looseObject, a catchall, a union, a transform, or a default or a catch anywhere on the path, whose own value skips the schema at every depth below it) is taken to keep it. Under --no-check, nuka run and nuka do judge such a claim on what the step returned, as the producing step's record names the keys its returns dropped (returns_dropped): unjudged when the step returned the field, and held when it did not. Through a z.strictObject, the producing step fails when its result holds the field.",
|
|
90
108
|
"fix": "Declare the field in the producing step's returns as optional (such as password: z.unknown().optional()), so a result that holds it keeps it and one without it still parses, or declare that object with z.looseObject, which keeps the keys it does not declare."
|
|
91
109
|
},
|
|
92
110
|
"claim-judged-early": {
|
|
93
111
|
"severity": "failed",
|
|
94
|
-
"
|
|
112
|
+
"source": "run",
|
|
113
|
+
"description": "A claim on a count of execution events was judged before every line it counts had arrived: the system's stop counted every line of the producer's trace, and the whole count judges the claim otherwise, so its cell is broke and proves nothing.",
|
|
95
114
|
"fix": "Have the program write a request's line after the work inside it, and run work that outlives the request as a job, which a reading waits for (docs/execution-events.md \"Inside first\")."
|
|
96
115
|
},
|
|
97
116
|
"claim-kind-unknown": {
|
|
98
117
|
"severity": "error",
|
|
118
|
+
"source": "check",
|
|
99
119
|
"description": "An is-a claim's expected value is a plain string args key, read as it is or with expected_view text, and the line fills it through a {word}, {string}, or anonymous capture with a name that is none of the kinds is-a names, so the claim always breaks on that line. defineStep refuses a literal that names no kind; only the line says what a capture holds, so this half is the check's.",
|
|
100
120
|
"fix": "Write one of the kinds is-a names in the line (string, text, number, integer, boolean, list, array, object, null, uuid, date, timestamp, or url), or compare with another claim if the line states something else."
|
|
101
121
|
},
|
|
102
122
|
"claim-not-an-array": {
|
|
103
123
|
"severity": "error",
|
|
124
|
+
"source": "check",
|
|
104
125
|
"description": "A claim counts the items of a value an earlier step returned, or an each claim reads each of its items, and that step's returns schema parses the value as something that is never an array: a string, a number, a boolean, an object, or a union, literal, or enum of only such values. count and each read an array alone, so the claim never holds, whatever the behaviour is. Only a value read with no view is checked, through the parsing wrappers (optional, nullable, readonly); a schema that may parse to an array (z.unknown, a transform, a default or a catch, whose own value skips the schema) is taken to be one.",
|
|
105
126
|
"fix": "Read the value through a view that makes an array (lines, comma-list, or json), point the claim at the array the step returns, or return the value as an array from the producing step."
|
|
106
127
|
},
|
|
107
128
|
"claim-path-unknown": {
|
|
108
129
|
"severity": "error",
|
|
130
|
+
"source": "check",
|
|
109
131
|
"description": "A claim reads a path into a value an earlier step returned, and that step's returns schema has nothing at the path, so the value is undefined and the claim always breaks.",
|
|
110
132
|
"fix": "Correct the path to one the producing step's returns declares, or add the key to that step's returns."
|
|
111
133
|
},
|
|
112
134
|
"claim-poll-unstated": {
|
|
113
135
|
"severity": "error",
|
|
136
|
+
"source": "check",
|
|
114
137
|
"description": "A claim step's observe reaches a browser page and the step does not state poll. A page between two renders can show any state for one frame, so the step has to say whether it reads once or until the claims hold.",
|
|
115
138
|
"fix": "Add poll: { timeout_ms } to read until every claim holds on two consecutive readings, or poll: false to read once."
|
|
116
139
|
},
|
|
117
140
|
"claim-sentence-unread": {
|
|
118
141
|
"severity": "error",
|
|
142
|
+
"source": "check",
|
|
119
143
|
"description": "A claim step with no observe is bound to a line whose docstring or table fills an args key, and no claim reads that key (as an actual, an expected value, or in where), so nothing checks the value the line states. defineStep refuses a pattern capture no claim reads; only the line says whether a docstring or a table fills a key, so this half is the check's, and nuka run breaks the step's claims for it too.",
|
|
120
144
|
"fix": "Compare a claim with the key (expected: \"<key>\"), or take the docstring or table off the line."
|
|
121
145
|
},
|
|
122
146
|
"claims-outside-then": {
|
|
123
147
|
"severity": "error",
|
|
148
|
+
"source": "check",
|
|
124
149
|
"description": "A claim step is bound in Given or When position, or on a * line, which Gherkin gives no position. Only a Then judges, so a broken claim there would read as a setup that broke instead of a criterion that failed.",
|
|
125
150
|
"fix": "Move the line to Then position, or bind a step that runs (defineStep with run) at this line."
|
|
126
151
|
},
|
|
152
|
+
"command-refused": {
|
|
153
|
+
"severity": "failed",
|
|
154
|
+
"source": "run",
|
|
155
|
+
"description": "A step, a fixture, or a hook of a system whose program declares stepsReach: \"url\" called runCommand, which starts a process: there, a service URL is the only way the code that runs with the scenarios reaches the program, so nothing was started. The cell is broke, whatever the execution came to, so a step that caught the refusal proves nothing.",
|
|
156
|
+
"fix": "Send the request to the service's URL instead (baseURL, or services.<name>.url), such as its test API, and create and read the state the scenario needs through that API. A system whose steps are meant to run the program's command line declares stepsReach: \"any\", the default."
|
|
157
|
+
},
|
|
127
158
|
"compat-step-not-runnable": {
|
|
128
159
|
"severity": "refused",
|
|
160
|
+
"source": "refusal",
|
|
129
161
|
"description": "nuka do names a compat step, which has no typed contract to run alone.",
|
|
130
162
|
"fix": "Promote the step to defineStep to run it with nuka do."
|
|
131
163
|
},
|
|
132
164
|
"condition-tag-malformed": {
|
|
133
165
|
"severity": "error",
|
|
166
|
+
"source": "check",
|
|
134
167
|
"description": "A tag starts with @with: or @without: but does not read as @with:<condition>, @with:<condition>=<value>, or @without:<condition>, so it names no condition. @with:<condition>=true and =false are malformed too: a value written as text is not the boolean the program declares.",
|
|
135
168
|
"fix": "Rewrite the tag as @with:<condition>, @with:<condition>=<value>, or @without:<condition>; a condition name holds letters, digits, \"_\", \".\", or \"-\", a value holds no whitespace and no \"@\", and a boolean is @with:<condition> or @without:<condition>."
|
|
136
169
|
},
|
|
137
170
|
"condition-unknown": {
|
|
138
171
|
"severity": "error",
|
|
172
|
+
"source": "check",
|
|
139
173
|
"description": "A condition tag names a condition that no environment in the program in nukadoko.config.ts declares under conditions, so no environment sets it up.",
|
|
140
174
|
"fix": "Declare the condition under the conditions of the environments that set it up in the program in nukadoko.config.ts, or remove the tag."
|
|
141
175
|
},
|
|
142
176
|
"condition-unmet": {
|
|
143
177
|
"severity": "error",
|
|
178
|
+
"source": "check",
|
|
144
179
|
"description": "No environment the run selects meets every condition a scenario's tags name, so the scenario has no required cell and nothing shows that it holds.",
|
|
145
180
|
"fix": "Add an environment whose conditions meet the scenario's tags, name one with --env, or correct the tags."
|
|
146
181
|
},
|
|
147
182
|
"config-exists": {
|
|
148
183
|
"severity": "refused",
|
|
184
|
+
"source": "refusal",
|
|
149
185
|
"description": "nuka init found a config file, and writes nothing over it.",
|
|
150
186
|
"fix": "Edit the config file that exists, or delete it to start again."
|
|
151
187
|
},
|
|
152
188
|
"config-in-parent": {
|
|
153
189
|
"severity": "refused",
|
|
190
|
+
"source": "refusal",
|
|
154
191
|
"description": "There is no config file here, and one exists in a parent directory, so a file written here is not one that config reads.",
|
|
155
192
|
"fix": "Run the command from the directory that holds the config file."
|
|
156
193
|
},
|
|
157
194
|
"config-invalid": {
|
|
158
195
|
"severity": "refused",
|
|
196
|
+
"source": "refusal",
|
|
159
197
|
"description": "The config file did not load: it does not import, it has no default export, or a field is wrong.",
|
|
160
198
|
"fix": "Correct the config file as the message says."
|
|
161
199
|
},
|
|
162
200
|
"config-key-removed": {
|
|
163
201
|
"severity": "refused",
|
|
202
|
+
"source": "refusal",
|
|
164
203
|
"description": "The config file sets a key that an earlier release removed.",
|
|
165
204
|
"fix": "Remove the key from the config file, and do what the message names in its place."
|
|
166
205
|
},
|
|
167
206
|
"config-missing": {
|
|
168
207
|
"severity": "warning",
|
|
208
|
+
"source": "refusal",
|
|
169
209
|
"description": "There is no config file in the directory nuka runs in, so the defaults apply.",
|
|
170
210
|
"fix": "Run nuka from the directory that holds the config file, or run nuka init to write one."
|
|
171
211
|
},
|
|
172
212
|
"contract-unreadable": {
|
|
173
213
|
"severity": "failed",
|
|
214
|
+
"source": "run",
|
|
174
215
|
"description": "nuka steps --json or nuka describe could not read part of a step's contract: its needs, a from entry, or an args or returns schema that JSON Schema cannot represent. The rest is printed, and the command exits 1.",
|
|
175
216
|
"fix": "Correct what the message names in the step file; a schema JSON Schema cannot represent, such as z.date(), still runs, and only its published contract is missing."
|
|
176
217
|
},
|
|
177
218
|
"criteria-unchanged": {
|
|
178
219
|
"severity": "note",
|
|
220
|
+
"source": "run",
|
|
179
221
|
"description": "nuka verdict found that, under --base, no criterion of the newest run is new or changed: the run shows the criteria that were there still hold, and says nothing of what the change was for.",
|
|
180
222
|
"fix": "No change is necessary for a change that needs no criterion of its own, such as a refactor. A change of behaviour gets a scenario that says what it does."
|
|
181
223
|
},
|
|
182
224
|
"criterion-moved": {
|
|
183
225
|
"severity": "failed",
|
|
184
|
-
"
|
|
185
|
-
"
|
|
226
|
+
"source": "run",
|
|
227
|
+
"description": "Under nuka run --base, an unchanged criterion passes at head, its mapping or its tags changed since the base, and the old system, head's code under the base's feature files and mapping, did not pass it or could not run it: the approved sentence no longer holds under the steps it was approved with.",
|
|
228
|
+
"fix": "Restore what the changed step, helper, or tag did, so the base's steps still pass on head's code, or correct what kept the old system from running, which the message names; a sentence that should now mean something else is edited, which makes it a changed criterion to prove."
|
|
186
229
|
},
|
|
187
230
|
"criterion-unproven": {
|
|
188
231
|
"severity": "failed",
|
|
232
|
+
"source": "run",
|
|
189
233
|
"description": "Under nuka run --base, a new or changed criterion passes at head, and nothing shows a Then failing where its behaviour is absent: its base cells passed, broke, were flaky, failed in fewer than --proof-runs runs, or did not run, and no control proves it.",
|
|
190
234
|
"fix": "Make a Then claim what the change added, so that it fails on the base's code; tag the scenario @held when the base already has the behaviour; or correct what kept its base cell from running, which the message names."
|
|
191
235
|
},
|
|
192
236
|
"criterion-without-required-cell": {
|
|
193
237
|
"severity": "failed",
|
|
238
|
+
"source": "run",
|
|
194
239
|
"description": "A row of the verdict table has no required cell: no environment the run started meets every condition its scenario's tags name, so the row is failed and nothing ran that shows it holds. Only a run under --no-check reaches it; nuka check reports the scenario as condition-unmet.",
|
|
195
240
|
"fix": "Add an environment whose conditions meet the scenario's tags, run one that does with --env, or correct the tags."
|
|
196
241
|
},
|
|
197
242
|
"done-callback-arity": {
|
|
198
243
|
"severity": "error",
|
|
244
|
+
"source": "check",
|
|
199
245
|
"description": "A compat hook or a matched compat step declares more parameters than nukadoko passes, which cucumber-js reads as a done() callback.",
|
|
200
246
|
"fix": "Remove the done callback parameter, and return a promise from the function instead."
|
|
201
247
|
},
|
|
202
248
|
"duplicate-capture-key": {
|
|
203
249
|
"severity": "error",
|
|
250
|
+
"source": "check",
|
|
204
251
|
"description": "A pattern captures the same key more than once. One args field holds one value, so the pattern is refused instead of dropping a value.",
|
|
205
252
|
"fix": "Rename one of the captures, so that each key occurs once in the pattern."
|
|
206
253
|
},
|
|
207
254
|
"duplicate-pattern": {
|
|
208
255
|
"severity": "error",
|
|
256
|
+
"source": "check",
|
|
209
257
|
"description": "Two or more patterns, once capture names are stripped, normalize to the same text, so one step text could match more than one step.",
|
|
210
258
|
"fix": "Reword one of the patterns, so that the two texts differ when the capture names are removed."
|
|
211
259
|
},
|
|
212
260
|
"duplicate-step": {
|
|
213
261
|
"severity": "refused",
|
|
262
|
+
"source": "refusal",
|
|
214
263
|
"description": "Two step files register the same typed step name, or two registrations have the same compat pattern.",
|
|
215
264
|
"fix": "Rename or remove one of the two definitions the message names."
|
|
216
265
|
},
|
|
217
266
|
"duplicate-world": {
|
|
218
267
|
"severity": "refused",
|
|
268
|
+
"source": "refusal",
|
|
219
269
|
"description": "defineWorld is called more than once in the step files.",
|
|
220
270
|
"fix": "Keep one defineWorld call, and remove the others."
|
|
221
271
|
},
|
|
222
272
|
"env-file-missing": {
|
|
223
273
|
"severity": "warning",
|
|
274
|
+
"source": "check",
|
|
224
275
|
"description": "A configured envFile does not exist on disk, so nothing in it is ever loaded.",
|
|
225
276
|
"fix": "Create the file, or remove it from envFiles in the config file."
|
|
226
277
|
},
|
|
227
278
|
"env-file-skipped-line": {
|
|
228
279
|
"severity": "warning",
|
|
280
|
+
"source": "check",
|
|
229
281
|
"description": "A line in a configured envFile is not a blank line, a comment, or a binding, so nothing on it was loaded.",
|
|
230
282
|
"fix": "Rewrite the line as KEY=value, or start it with # to make it a comment."
|
|
231
283
|
},
|
|
232
284
|
"env-file-unreadable": {
|
|
233
285
|
"severity": "refused",
|
|
286
|
+
"source": "refusal",
|
|
234
287
|
"description": "A configured envFiles path is on disk and could not be read: a directory, or a file without read permission. The run stops before any step runs.",
|
|
235
288
|
"fix": "Make the file readable, replace the directory with a file, or remove the path from envFiles."
|
|
236
289
|
},
|
|
237
290
|
"environment-env-file-missing": {
|
|
238
291
|
"severity": "warning",
|
|
292
|
+
"source": "check",
|
|
239
293
|
"description": "An entry in one environment's own envFiles does not exist on disk.",
|
|
240
294
|
"fix": "Create the file, or remove it from that environment's envFiles in the program in nukadoko.config.ts."
|
|
241
295
|
},
|
|
242
296
|
"events-inlet-missing": {
|
|
243
297
|
"severity": "error",
|
|
244
|
-
"
|
|
298
|
+
"source": "check",
|
|
299
|
+
"description": "A step's events counts execution events, and a system the run would serve names no {events} in its program, so the program has no file to write them to and each claim on the count is unjudged there (inlet-unnamed).",
|
|
245
300
|
"fix": "Set the variable the program reads to {events} under env in the program, such as EXECUTION_EVENTS: \"{events}\", and have the program append its execution events to that file."
|
|
246
301
|
},
|
|
247
302
|
"events-late": {
|
|
248
303
|
"severity": "note",
|
|
249
|
-
"
|
|
304
|
+
"source": "run",
|
|
305
|
+
"description": "nuka do found lines of the program's execution events that carry the step's trace id and arrived after the step ended, when the system stopped. They are in events-late.<service>.jsonl beside the step record, under the name of the service that wrote them, and are not in its observed.events.",
|
|
250
306
|
"fix": "No change is necessary. A job the step enqueued that performed after the step ended writes its lines then; observed.events.open names a job that had not performed."
|
|
251
307
|
},
|
|
252
308
|
"events-producer-ambiguous": {
|
|
253
309
|
"severity": "error",
|
|
310
|
+
"source": "check",
|
|
254
311
|
"description": "A step's events names more than one candidate step in of, and more than one of them runs earlier in the scenario, so the run cannot choose whose execution events to count and each claim on the count is unjudged.",
|
|
255
312
|
"fix": "Remove or move lines so that exactly one of the candidate steps runs before the line that counts their events."
|
|
256
313
|
},
|
|
257
314
|
"events-producer-missing": {
|
|
258
315
|
"severity": "error",
|
|
316
|
+
"source": "check",
|
|
259
317
|
"description": "A step's events counts the execution events of a step that no earlier line in the scenario runs, so each claim on the count is unjudged (producer-not-run).",
|
|
260
318
|
"fix": "Put a line that runs the step earlier in the scenario, or list the step an earlier line runs in that key's of."
|
|
261
319
|
},
|
|
320
|
+
"events-service-unknown": {
|
|
321
|
+
"severity": "error",
|
|
322
|
+
"source": "check",
|
|
323
|
+
"description": "A step's events names a service in service, and a system the run would start has no service of that name, so the count counts the lines of nothing and each claim on it reads 0.",
|
|
324
|
+
"fix": "Name one of the program's own services in that key's service, or leave service out to count every service's lines."
|
|
325
|
+
},
|
|
262
326
|
"events-unread": {
|
|
263
327
|
"severity": "warning",
|
|
264
|
-
"
|
|
265
|
-
"
|
|
328
|
+
"source": "check",
|
|
329
|
+
"description": "A step's events counts execution events, and a system the run would start is one nukadoko does not serve (a url, or a project whose config has no program), so it reads no execution events there and each claim on the count is unjudged (system-unread).",
|
|
330
|
+
"fix": "Run those scenarios in a system nukadoko serves, with {events} in env, or select one with --env."
|
|
266
331
|
},
|
|
267
332
|
"expects-tag-malformed": {
|
|
268
333
|
"severity": "error",
|
|
334
|
+
"source": "check",
|
|
269
335
|
"description": "A tag starts with @expects: but does not read as @expects:status=<500-599>, @expects:error=<class>, or @expects:page-error=<name>: an unknown kind, no value, a status outside 500 to 599, or a value with whitespace or \"@\". It accepts nothing, so under nuka run --no-check the failure it meant stays unexpected and its cell is broke.",
|
|
270
336
|
"fix": "Rewrite the tag as @expects:status=<500-599>, @expects:error=<class>, or @expects:page-error=<name>, one status, class, or name per tag; the unexpected-failure finding of a run spells the tag for what it saw."
|
|
271
337
|
},
|
|
272
338
|
"expects-unread": {
|
|
273
339
|
"severity": "warning",
|
|
274
|
-
"
|
|
275
|
-
"
|
|
340
|
+
"source": "check",
|
|
341
|
+
"description": "An @expects:error= tag accepts an unhandled error the program reports in its execution events, and no system the run would start reads them (the program names no {events}, the system runs at a url, or there is no program), so the tag can never match.",
|
|
342
|
+
"fix": "Name {events} in env of the program in nukadoko.config.ts for a system the run starts, such as env: { EXECUTION_EVENTS: \"{events}\" }, and have the program append its execution events there, or remove the tag."
|
|
276
343
|
},
|
|
277
344
|
"expects-unseen": {
|
|
278
345
|
"severity": "note",
|
|
346
|
+
"source": "run",
|
|
279
347
|
"description": "A scenario whose every execution passed carries an @expects: tag that matched nothing: the run saw every response, page error, or execution event of that kind in each execution, and none was the failure the tag accepts. A tag left in place accepts that failure in every later run.",
|
|
280
348
|
"fix": "Remove the tag when the failure it accepts no longer happens. When the failure is meant to happen, make the scenario cause it, so the tag names what the scenario does."
|
|
281
349
|
},
|
|
282
350
|
"fail-on-note-with-targets": {
|
|
283
351
|
"severity": "refused",
|
|
352
|
+
"source": "refusal",
|
|
284
353
|
"description": "nuka check with targets was given a --fail-on note code, and a check with targets computes no notes, so the gate could never fire.",
|
|
285
354
|
"fix": "Run nuka check without targets to gate on a note, or leave the note out of --fail-on."
|
|
286
355
|
},
|
|
287
356
|
"fail-on-unknown-code": {
|
|
288
357
|
"severity": "refused",
|
|
358
|
+
"source": "refusal",
|
|
289
359
|
"description": "--fail-on names a code that a nuka check report never contains.",
|
|
290
360
|
"fix": "Name an error, warning, or note code that nuka check --codes lists."
|
|
291
361
|
},
|
|
292
362
|
"feature-parse-error": {
|
|
293
363
|
"severity": "error",
|
|
364
|
+
"source": "check",
|
|
294
365
|
"description": "A .feature file could not be parsed, so nothing in it was checked.",
|
|
295
366
|
"fix": "Correct the Gherkin at the line that the message names, then run nuka check on the file again."
|
|
296
367
|
},
|
|
297
368
|
"features-dir-missing": {
|
|
298
369
|
"severity": "error",
|
|
370
|
+
"source": "check",
|
|
299
371
|
"description": "The configured featuresDir does not exist on disk, so no feature or step file under it can load.",
|
|
300
372
|
"fix": "Create the featuresDir directory, or correct featuresDir in the config file."
|
|
301
373
|
},
|
|
302
374
|
"file-edited": {
|
|
303
375
|
"severity": "refused",
|
|
376
|
+
"source": "refusal",
|
|
304
377
|
"description": "The file nuka scaffold would replace is not what scaffold wrote, so --replace leaves it.",
|
|
305
378
|
"fix": "Edit the file by hand, or delete it and run nuka scaffold again."
|
|
306
379
|
},
|
|
307
380
|
"file-exists": {
|
|
308
381
|
"severity": "refused",
|
|
382
|
+
"source": "refusal",
|
|
309
383
|
"description": "The file nuka scaffold would write exists.",
|
|
310
384
|
"fix": "Pass --replace if scaffold wrote the file and nobody edited it, or delete the file."
|
|
311
385
|
},
|
|
312
386
|
"files-producer-ambiguous": {
|
|
313
387
|
"severity": "error",
|
|
388
|
+
"source": "check",
|
|
314
389
|
"description": "A step's files names more than one candidate step in of, and more than one of them runs earlier in the scenario, so the run cannot choose whose files to read and each claim on the list is unjudged.",
|
|
315
390
|
"fix": "Remove or move lines so that exactly one of the candidate steps runs before the line that reads their files."
|
|
316
391
|
},
|
|
317
392
|
"files-producer-missing": {
|
|
318
393
|
"severity": "error",
|
|
394
|
+
"source": "check",
|
|
319
395
|
"description": "A step's files reads the files the commands of a step changed, and no earlier line in the scenario runs that step, so each claim on the list is unjudged.",
|
|
320
396
|
"fix": "Put a line that runs the step earlier in the scenario, or list the step an earlier line runs in that key's of."
|
|
321
397
|
},
|
|
322
398
|
"fixture-cycle": {
|
|
323
399
|
"severity": "error",
|
|
400
|
+
"source": "check",
|
|
324
401
|
"description": "config.fixtures definitions depend on each other in a cycle, so none of them can ever resolve.",
|
|
325
402
|
"fix": "Remove one dependency from the cycle in config.fixtures."
|
|
326
403
|
},
|
|
327
404
|
"fixture-scope-violation": {
|
|
328
405
|
"severity": "error",
|
|
406
|
+
"source": "check",
|
|
329
407
|
"description": "A config.fixtures definition scoped to run once per process depends on one scoped to run once per scenario.",
|
|
330
408
|
"fix": "Scope the dependent fixture per scenario, or scope the fixture that it depends on per process."
|
|
331
409
|
},
|
|
332
410
|
"fixture-structural-violation": {
|
|
333
411
|
"severity": "error",
|
|
412
|
+
"source": "check",
|
|
334
413
|
"description": "A step's run(), or a config.fixtures definition's own function, is not a plain object-destructuring parameter, or destructures a fixture name nukadoko does not know. A fixture that destructures call is the same finding: call is only available inside a step's run().",
|
|
335
414
|
"fix": "Give the function one object-destructuring parameter that names only known fixtures. The message names the name that is not known."
|
|
336
415
|
},
|
|
337
416
|
"fixture-teardown-failed": {
|
|
338
417
|
"severity": "warning",
|
|
418
|
+
"source": "run",
|
|
339
419
|
"description": "A fixture's teardown threw after its scenario or the run finished.",
|
|
340
420
|
"fix": "Correct the teardown code of the fixture the message names."
|
|
341
421
|
},
|
|
342
422
|
"fixture-unused": {
|
|
343
423
|
"severity": "note",
|
|
424
|
+
"source": "check",
|
|
344
425
|
"description": "No typed step requires a config.fixtures definition, directly or through another fixture.",
|
|
345
426
|
"fix": "Remove the fixture from config.fixtures, or keep it for nuka do."
|
|
346
427
|
},
|
|
347
428
|
"from-order-check-suppressed": {
|
|
348
429
|
"severity": "warning",
|
|
430
|
+
"source": "check",
|
|
349
431
|
"description": "A step's from names a producer that no earlier line runs, but a line before it matches no step and may be meant to run that producer, so the from-order-violation findings that line could explain are held back until it matches a step.",
|
|
350
432
|
"fix": "Reword the undefined line to match the producer's pattern if it is meant to run that producer. Otherwise fix the undefined-step finding first, then run nuka check again."
|
|
351
433
|
},
|
|
352
434
|
"from-order-violation": {
|
|
353
435
|
"severity": "error",
|
|
436
|
+
"source": "check",
|
|
354
437
|
"description": "A step declares from for a key, and the step or steps it names have not run earlier in the same scenario, or (when the key names more than one candidate) more than one candidate has.",
|
|
355
438
|
"fix": "Put a line that runs one producer step earlier in the scenario, or list the step an earlier line runs as another candidate for the key in from. When more than one candidate ran earlier, keep only one."
|
|
356
439
|
},
|
|
357
440
|
"from-structural-violation": {
|
|
358
441
|
"severity": "error",
|
|
442
|
+
"source": "check",
|
|
359
443
|
"description": "A step's from names a value that is not a registered step, or is otherwise structurally malformed.",
|
|
360
444
|
"fix": "Make each from entry name a step that a step file registers, and a key that step's returns declares."
|
|
361
445
|
},
|
|
362
446
|
"from-unused": {
|
|
363
447
|
"severity": "note",
|
|
448
|
+
"source": "check",
|
|
364
449
|
"description": "A step's from declaration never supplies a value, because every feature line that binds the step fills that key with a pattern capture.",
|
|
365
450
|
"fix": "Remove the from entry for the key, or keep it for nuka do --use."
|
|
366
451
|
},
|
|
367
452
|
"hook-failed": {
|
|
368
453
|
"severity": "failed",
|
|
454
|
+
"source": "run",
|
|
369
455
|
"description": "A BeforeAll or AfterAll hook threw, so the run is red.",
|
|
370
456
|
"fix": "Correct the hook the message names."
|
|
371
457
|
},
|
|
372
458
|
"intent-not-happening": {
|
|
373
459
|
"severity": "failed",
|
|
460
|
+
"source": "run",
|
|
374
461
|
"description": "Under nuka run --base, a row of the change's INTENT.md aimed at a compared criterion, by its target, and that criterion did not do what the row says: a count did not go from before to after, a value did not, or what the row says does not change did. docs/intent.md is the format.",
|
|
375
462
|
"fix": "Make the change do what the row says there, or narrow the row's target if the row means less."
|
|
376
463
|
},
|
|
377
464
|
"intent-unintended": {
|
|
378
465
|
"severity": "failed",
|
|
466
|
+
"source": "run",
|
|
379
467
|
"description": "Under nuka run --base, the change declares its intent in INTENT.md, and an unchanged criterion did something at head that it did not do at the base, which no row of the intent declares. The summary's \"base → head\" lists the difference.",
|
|
380
468
|
"fix": "Declare the difference with a row in INTENT.md if the change means it, or change the code back if it does not."
|
|
381
469
|
},
|
|
382
470
|
"intent-unread": {
|
|
383
471
|
"severity": "failed",
|
|
472
|
+
"source": "run",
|
|
384
473
|
"description": "Under nuka run --base, the change's INTENT.md holds a row, or a table, that cannot be read as an intent, or git did not answer what the run asked of the file. A row that cannot be read declares nothing, so the run fails rather than judge less than the file says.",
|
|
385
474
|
"fix": "Write the row as docs/intent.md describes, so each difference the change means is declared."
|
|
386
475
|
},
|
|
387
476
|
"invalid-arguments": {
|
|
388
477
|
"severity": "refused",
|
|
478
|
+
"source": "refusal",
|
|
389
479
|
"description": "The command line names an unknown command or flag, or leaves out a required one.",
|
|
390
480
|
"fix": "Correct the command line; the command's --help lists its flags."
|
|
391
481
|
},
|
|
392
482
|
"invalid-capture-key": {
|
|
393
483
|
"severity": "error",
|
|
484
|
+
"source": "check",
|
|
394
485
|
"description": "A pattern capture's name is not a valid identifier: a capture key must start with a letter or underscore and contain only letters, digits, and underscores.",
|
|
395
486
|
"fix": "Rename the capture: a letter or an underscore first, then only letters, digits, and underscores."
|
|
396
487
|
},
|
|
397
488
|
"invalid-step-definition": {
|
|
398
489
|
"severity": "refused",
|
|
490
|
+
"source": "refusal",
|
|
399
491
|
"description": "A step file calls defineStep with a definition nukadoko cannot register.",
|
|
400
492
|
"fix": "Correct the defineStep call the message names."
|
|
401
493
|
},
|
|
402
494
|
"invalid-value": {
|
|
403
495
|
"severity": "refused",
|
|
496
|
+
"source": "refusal",
|
|
404
497
|
"description": "A flag has a value the command cannot use.",
|
|
405
498
|
"fix": "Correct the flag's value as the message says."
|
|
406
499
|
},
|
|
407
500
|
"judgment-misses": {
|
|
408
501
|
"severity": "failed",
|
|
502
|
+
"source": "run",
|
|
409
503
|
"description": "A criterion's Then asks for a judgment, and the committed judgment that cites the value this run read says the value does not meet the sentence. The criterion fails until the value changes, and the judgment of the new value says it meets.",
|
|
410
504
|
"fix": "Change the program until the value meets the sentence, run the criterion again, and have a judge who did not write the change judge the new value with nuka judge."
|
|
411
505
|
},
|
|
412
506
|
"judgment-pending": {
|
|
413
507
|
"severity": "failed",
|
|
508
|
+
"source": "run",
|
|
414
509
|
"description": "A criterion's Then asks for a judgment (a judged-as claim), the run read the value, and no committed judgment cites that claim yet. nukadoko compares nothing for such a claim, so nothing shows the criterion holds until a reader judges the value.",
|
|
415
510
|
"fix": "Have a judge who did not write the change read the value with nuka judge <file>:<line> --run <run>, then record it with --meets or --misses, --by, and --because, commit the judgment file, and run again."
|
|
416
511
|
},
|
|
417
512
|
"judgment-refused": {
|
|
418
513
|
"severity": "refused",
|
|
514
|
+
"source": "refusal",
|
|
419
515
|
"description": "nuka judge cannot record the judgment: the target names no criterion of the run, the criterion did not pass or asks for no judgment, a value is in no recorded channel, the step record and run.json disagree about a value, or the flags do not say meets or misses, by whom, and why.",
|
|
420
516
|
"fix": "Run the criterion, read what nuka judge <file>:<line> prints, and record with exactly one of --meets and --misses, and with --by and --because."
|
|
421
517
|
},
|
|
422
518
|
"judgment-stale": {
|
|
423
519
|
"severity": "failed",
|
|
520
|
+
"source": "run",
|
|
424
521
|
"description": "A criterion's Then asks for a judgment, and the committed judgments of its claim cite other values than the one this run read: the value changed since it was judged, so no judgment covers what ran.",
|
|
425
522
|
"fix": "Have a judge who did not write the change read the new value with nuka judge <file>:<line> --run <run> and record a judgment of it; a value that changes on every run (a time, an id) means the claim reads too much, so narrow it with at."
|
|
426
523
|
},
|
|
427
524
|
"judgment-uncitable": {
|
|
428
525
|
"severity": "failed",
|
|
526
|
+
"source": "run",
|
|
429
527
|
"description": "A criterion's Then asks for a judgment of a value that no channel nukadoko recorded holds (measured: none): a value step code wrote or worked out. A judgment cites only a value the tool measured, so none can cite this one.",
|
|
430
528
|
"fix": "Read the value whole from a channel the step record holds (a response body, a process's output, a file) and narrow it with view and at, or return the locator or page from observe so nukadoko takes its ARIA snapshot."
|
|
431
529
|
},
|
|
432
530
|
"judgments-not-compared": {
|
|
433
531
|
"severity": "warning",
|
|
532
|
+
"source": "run",
|
|
434
533
|
"description": "Under nuka run --base, git did not answer when the run compared the judgment files with the base, so the summary lists no changed judgment.",
|
|
435
534
|
"fix": "Run the git command the message names to see its error; the verdicts and the judgments themselves are not affected."
|
|
436
535
|
},
|
|
437
536
|
"judgments-unread": {
|
|
438
537
|
"severity": "failed",
|
|
538
|
+
"source": "run",
|
|
439
539
|
"description": "A judgment file under judgments/ does not parse or lacks a field, so the criteria of its feature file read as judged by nothing.",
|
|
440
540
|
"fix": "Repair the file the message names by hand, or remove it and judge its criteria again with nuka judge."
|
|
441
541
|
},
|
|
442
542
|
"line-not-supported": {
|
|
443
543
|
"severity": "refused",
|
|
544
|
+
"source": "refusal",
|
|
444
545
|
"description": "A target has a :line suffix, and the command reads whole files: nuka check analyzes every scenario in a file.",
|
|
445
546
|
"fix": "Remove the :line suffix from the target."
|
|
446
547
|
},
|
|
447
548
|
"line-on-directory": {
|
|
448
549
|
"severity": "refused",
|
|
550
|
+
"source": "refusal",
|
|
449
551
|
"description": "A target names a directory with a :line suffix, and a line selects a scenario in one file only.",
|
|
450
552
|
"fix": "Remove the :line suffix from the directory, or name a feature file."
|
|
451
553
|
},
|
|
452
554
|
"markdown-target": {
|
|
453
555
|
"severity": "refused",
|
|
556
|
+
"source": "refusal",
|
|
454
557
|
"description": "A target names a Markdown file: Markdown oaths were removed, and scenarios live in .feature files only.",
|
|
455
558
|
"fix": "Write the scenarios of the file as Gherkin in a .feature file, and name that file."
|
|
456
559
|
},
|
|
457
560
|
"mcp-transport-unmeasured": {
|
|
458
561
|
"severity": "note",
|
|
562
|
+
"source": "check",
|
|
459
563
|
"description": "A config fixture or a typed step connects an MCP client to a transport it builds inside the connect call, so measureMcp never wraps it and the client's calls reach no step record.",
|
|
460
564
|
"fix": "Pass the transport through measureMcp (from nukadoko): client.connect(measureMcp(new StdioClientTransport(...)))."
|
|
461
565
|
},
|
|
462
566
|
"no-feature-files": {
|
|
463
567
|
"severity": "refused",
|
|
568
|
+
"source": "refusal",
|
|
464
569
|
"description": "A target directory holds no feature file, so nothing can run.",
|
|
465
570
|
"fix": "Add a feature file under the directory, or name another target."
|
|
466
571
|
},
|
|
467
572
|
"no-scenario-at-line": {
|
|
468
573
|
"severity": "refused",
|
|
574
|
+
"source": "refusal",
|
|
469
575
|
"description": "A target's :line is not the line a scenario or an Examples row starts on.",
|
|
470
576
|
"fix": "Name the line that a scenario or an Examples row starts on."
|
|
471
577
|
},
|
|
472
578
|
"no-step-files-found": {
|
|
473
579
|
"severity": "error",
|
|
580
|
+
"source": "check",
|
|
474
581
|
"description": "featuresDir exists, but no .ts/.mts/.js/.mjs step file was found while scanning it, so no step can ever be registered.",
|
|
475
582
|
"fix": "Add a step file under featuresDir. nuka scaffold writes one."
|
|
476
583
|
},
|
|
477
584
|
"nothing-selected": {
|
|
478
585
|
"severity": "failed",
|
|
586
|
+
"source": "run",
|
|
479
587
|
"description": "nuka run selected no scenario: its targets hold none, or --env leaves out every one they hold, so nothing ran and nothing was checked. The run writes no run directory.",
|
|
480
588
|
"fix": "Name a target that holds a scenario, or run in an environment that meets the scenarios' tags."
|
|
481
589
|
},
|
|
482
590
|
"outline-does-not-run": {
|
|
483
591
|
"severity": "error",
|
|
592
|
+
"source": "check",
|
|
484
593
|
"description": "A scenario outline has no Examples row that will run, so the boundary the feature names is absent from the run.",
|
|
485
594
|
"fix": "Add an Examples row for each case that must run, or remove the empty Examples table."
|
|
486
595
|
},
|
|
487
596
|
"outline-rows-share-name": {
|
|
488
597
|
"severity": "warning",
|
|
598
|
+
"source": "check",
|
|
489
599
|
"description": "A scenario outline has more than one Examples row, and its name holds no <column> of its Examples, so every row is reported under the same name.",
|
|
490
600
|
"fix": "Add an Examples column to the outline's name, such as <column>, so that each row has its own name."
|
|
491
601
|
},
|
|
492
602
|
"package-type-missing": {
|
|
493
603
|
"severity": "note",
|
|
604
|
+
"source": "check",
|
|
494
605
|
"description": "A package.json with no \"type\" field governs a .ts or .js file nukadoko loads, so Node parses the file twice and prints a MODULE_TYPELESS_PACKAGE_JSON warning on every load.",
|
|
495
606
|
"fix": "Add \"type\": \"module\" to the package.json, or rename the files to .mts if the project's own .js files are CommonJS."
|
|
496
607
|
},
|
|
497
608
|
"page-override-unowned": {
|
|
498
609
|
"severity": "error",
|
|
610
|
+
"source": "check",
|
|
499
611
|
"description": "A config.fixtures definition overrides page, but owns none of page, context, and pageAs.",
|
|
500
612
|
"fix": "Make the fixture that overrides page own page, context, or pageAs, or remove the override."
|
|
501
613
|
},
|
|
502
614
|
"parameter-type-collision": {
|
|
503
615
|
"severity": "refused",
|
|
616
|
+
"source": "refusal",
|
|
504
617
|
"description": "A parameter type has the name of a built-in type or of another registered type.",
|
|
505
618
|
"fix": "Rename the parameter type, or remove one of the two registrations."
|
|
506
619
|
},
|
|
507
620
|
"parameter-type-invalid": {
|
|
508
621
|
"severity": "error",
|
|
622
|
+
"source": "check",
|
|
509
623
|
"description": "A custom parameter type takes the name of a built-in type, two parameter types share the same name (from config.parameterTypes or a compat defineParameterType call), or a type sets preferForRegexpMatch on a regexp that another type, built-in or custom, already prefers.",
|
|
510
624
|
"fix": "Rename the parameter type, or remove the second registration or the second preferForRegexpMatch."
|
|
511
625
|
},
|
|
512
626
|
"parameter-type-unused": {
|
|
513
627
|
"severity": "note",
|
|
628
|
+
"source": "check",
|
|
514
629
|
"description": "No typed or compat pattern names a config.parameterTypes entry.",
|
|
515
630
|
"fix": "Remove the entry from config.parameterTypes, or use it in a pattern."
|
|
516
631
|
},
|
|
517
632
|
"part-cycle": {
|
|
518
633
|
"severity": "error",
|
|
634
|
+
"source": "check",
|
|
519
635
|
"description": "A step's parts form a cycle: the step reaches itself, directly or through other steps' own parts.",
|
|
520
636
|
"fix": "Remove one part from the chain, so that no step reaches itself."
|
|
521
637
|
},
|
|
522
638
|
"part-mutates-contradiction": {
|
|
523
639
|
"severity": "error",
|
|
640
|
+
"source": "check",
|
|
524
641
|
"description": "A step declares mutates: false, but declares a part that declares mutates: true.",
|
|
525
642
|
"fix": "Declare mutates: true on the step, or remove the part that declares mutates: true."
|
|
526
643
|
},
|
|
527
644
|
"part-structural-violation": {
|
|
528
645
|
"severity": "error",
|
|
646
|
+
"source": "check",
|
|
529
647
|
"description": "A step's parts names a value that is not a registered step, or is otherwise structurally malformed.",
|
|
530
648
|
"fix": "Make each parts entry a step that a step file registers."
|
|
531
649
|
},
|
|
532
650
|
"pattern-error": {
|
|
533
651
|
"severity": "error",
|
|
652
|
+
"source": "check",
|
|
534
653
|
"description": "A step's pattern could not be parsed, for a reason other than an unnamed, invalid, or unterminated capture.",
|
|
535
654
|
"fix": "Correct the pattern at the position that the message names."
|
|
536
655
|
},
|
|
537
656
|
"pattern-syntax-error": {
|
|
538
657
|
"severity": "error",
|
|
658
|
+
"source": "check",
|
|
539
659
|
"description": "A pattern failed to build into a cucumber expression, for a reason cucumber-expressions itself reports (not an unknown parameter type).",
|
|
540
660
|
"fix": "Correct the pattern at the position that the message names. Escape a literal ( ) or / as \\( \\) or \\/."
|
|
541
661
|
},
|
|
542
662
|
"pattern-unbound": {
|
|
543
663
|
"severity": "note",
|
|
664
|
+
"source": "check",
|
|
544
665
|
"description": "A typed step has a pattern, and no feature line resolves to that step alone.",
|
|
545
666
|
"fix": "Write a feature line that matches the pattern, or remove the pattern if only nuka do runs the step."
|
|
546
667
|
},
|
|
547
668
|
"pause-answered": {
|
|
548
669
|
"severity": "refused",
|
|
670
|
+
"source": "refusal",
|
|
549
671
|
"description": "nuka step names a pause that was already answered the other way, so this answer changes nothing.",
|
|
550
672
|
"fix": "Run nuka step wait --walk <n> to see where the walk stands, and answer the pause it shows."
|
|
551
673
|
},
|
|
552
674
|
"pause-not-current": {
|
|
553
675
|
"severity": "refused",
|
|
676
|
+
"source": "refusal",
|
|
554
677
|
"description": "nuka step answers a pause that is not the one the walk waits at: the walk has not reached it yet, has moved past it without that answer, or ended without reaching it.",
|
|
555
678
|
"fix": "Run nuka step wait --walk <n> to see the pause the walk waits at, and answer that pause."
|
|
556
679
|
},
|
|
557
680
|
"playwright-missing": {
|
|
558
681
|
"severity": "error",
|
|
682
|
+
"source": "check",
|
|
559
683
|
"description": "A feature line binds a step whose fixtures build page, context, pageAs, or request, and playwright does not resolve from the installed nukadoko, so the step would fail when it runs; or a step file imports playwright, playwright-core, or @playwright/test, itself or through another project file that the message names, which the project has not installed, so the file does not import. A step is reported once, at the first line that binds it.",
|
|
560
684
|
"fix": "Install the package that the message names in the project, at the version that the message names."
|
|
561
685
|
},
|
|
562
686
|
"program-exited": {
|
|
563
687
|
"severity": "warning",
|
|
564
|
-
"
|
|
565
|
-
"
|
|
688
|
+
"source": "run",
|
|
689
|
+
"description": "The program a system served exited while the scenarios still ran, so the requests after that found nothing listening.",
|
|
690
|
+
"fix": "Read the system's program.log, which the message names, for why the program exited."
|
|
566
691
|
},
|
|
567
692
|
"program-file-moved": {
|
|
568
693
|
"severity": "refused",
|
|
694
|
+
"source": "refusal",
|
|
569
695
|
"description": "The project root holds a program file (nukadoko.program.ts, .mts, or .rb), which an earlier release read and this one does not: the program is part of the config now.",
|
|
570
696
|
"fix": "Move what the program file describes into the config as its program (program: () => ({ ... }) in nukadoko.config.ts, program: -> { { ... } } in nukadoko.config.rb), and delete the program file; CHANGELOG.md, under \"The program moves into the config\", shows the move."
|
|
571
697
|
},
|
|
572
698
|
"program-list-unread": {
|
|
573
699
|
"severity": "warning",
|
|
574
|
-
"
|
|
575
|
-
"
|
|
700
|
+
"source": "run",
|
|
701
|
+
"description": "A command under lists in the program in nukadoko.config.ts failed, passed its limit, or printed a line that is not one entry of its list, so that system's list was not read and nothing of it counts.",
|
|
702
|
+
"fix": "Correct the command the message names, or what it prints: one JSON object per line, in the shape docs/spec.md \"Lists\" gives for its kind. Its stderr is in the system's program.log."
|
|
576
703
|
},
|
|
577
704
|
"program-log-late": {
|
|
578
705
|
"severity": "note",
|
|
579
|
-
"
|
|
706
|
+
"source": "run",
|
|
707
|
+
"description": "nuka do found lines of the program's log that carry the step's trace id and arrived after the step ended, when the system stopped. They are in program-log-late.<service>.txt beside the step record, and are not in its observed.program_log.",
|
|
580
708
|
"fix": "No change is necessary. When it happens on every call, the program may buffer its output on a pipe; if so, set STDOUT.sync = true in Ruby, or PYTHONUNBUFFERED=1 for Python."
|
|
581
709
|
},
|
|
710
|
+
"program-placeholder-renamed": {
|
|
711
|
+
"severity": "error",
|
|
712
|
+
"source": "check",
|
|
713
|
+
"description": "A command or an env value in the program in nukadoko.config.ts names {world}, the placeholder that is {system} now. Nothing fills a name nukadoko does not know, so the program would be handed those characters as they stand.",
|
|
714
|
+
"fix": "Write {system} in the field the message names, in place of {world}."
|
|
715
|
+
},
|
|
582
716
|
"program-placeholder-unfilled": {
|
|
583
717
|
"severity": "error",
|
|
584
|
-
"
|
|
585
|
-
"
|
|
718
|
+
"source": "check",
|
|
719
|
+
"description": "A command or an env value in the program in nukadoko.config.ts names a placeholder a system that nuka run with the same --env flags would start has no value for: {port} or {url} in a system with neither serve nor url, {condition.<name>} in one whose environment does not declare that condition, or anything but {root} in a build command.",
|
|
720
|
+
"fix": "Remove the placeholder from the field the message names, or give the system what fills it: serve or url for {port} or {url}, the condition under its environment's conditions for {condition.<name>}; in a build command, write only {root}, or move the command to prepare."
|
|
721
|
+
},
|
|
722
|
+
"program-service-root-missing": {
|
|
723
|
+
"severity": "error",
|
|
724
|
+
"source": "check",
|
|
725
|
+
"description": "A service of the program in nukadoko.config.ts names a root, the directory its commands run in, that is no directory, in a system that nuka run with the same --env flags would start: a checkout of another repository that is not there, or a path with a mistake. nuka run and nuka do refuse such a system before anything builds.",
|
|
726
|
+
"fix": "Check out the service's code at the root that the message names, or point the service's root in nukadoko.config.ts at the directory that holds it."
|
|
586
727
|
},
|
|
587
728
|
"program-start-failed": {
|
|
588
729
|
"severity": "failed",
|
|
589
|
-
"
|
|
590
|
-
"
|
|
730
|
+
"source": "run",
|
|
731
|
+
"description": "The program in nukadoko.config.ts did not start for a system: a build or prepare command failed or did not finish within its timeout_ms, the server did not answer its ready path in time, or setup or the url function threw or did not finish within its timeout_ms. The system's scenarios did not run.",
|
|
732
|
+
"fix": "Correct what the message names; the end of the system's program.log is in the message, and the whole file is in the system's directory."
|
|
591
733
|
},
|
|
592
734
|
"proof-run-incomplete": {
|
|
593
735
|
"severity": "warning",
|
|
594
|
-
"
|
|
736
|
+
"source": "run",
|
|
737
|
+
"description": "Under --concurrency, a proof round could not record a control's run: a BeforeAll or AfterAll hook failed in the worker the round started, or the worker exited without a record. Each control cell the round was given reads broke with the reason and proves nothing, so its row reads as one no control proves: held without --base, and under --base the base system runs for it.",
|
|
595
738
|
"fix": "Correct what the message names, such as the hook; the control proves on the next run."
|
|
596
739
|
},
|
|
597
740
|
"read-only-environment": {
|
|
598
741
|
"severity": "refused",
|
|
742
|
+
"source": "refusal",
|
|
599
743
|
"description": "A step that declares mutates: true targets an environment whose policy is read-only.",
|
|
600
744
|
"fix": "Run the step against an environment that allows writes, or declare mutates: false if it only reads."
|
|
601
745
|
},
|
|
602
746
|
"record-unmatched": {
|
|
603
747
|
"severity": "warning",
|
|
748
|
+
"source": "run",
|
|
604
749
|
"description": "A worker reported a record that matches no selected scenario, so nuka report cannot render it.",
|
|
605
750
|
"fix": "Run again without changing feature files while the run is in progress."
|
|
606
751
|
},
|
|
607
752
|
"removed-command": {
|
|
608
753
|
"severity": "refused",
|
|
754
|
+
"source": "refusal",
|
|
609
755
|
"description": "The command line names a command that an earlier release removed.",
|
|
610
756
|
"fix": "Use what the message names in its place."
|
|
611
757
|
},
|
|
612
758
|
"removed-flag": {
|
|
613
759
|
"severity": "refused",
|
|
760
|
+
"source": "refusal",
|
|
614
761
|
"description": "The command line names a flag that an earlier release removed.",
|
|
615
762
|
"fix": "Use what the message names in its place."
|
|
616
763
|
},
|
|
617
764
|
"repeated-scenario-prefix": {
|
|
618
765
|
"severity": "note",
|
|
766
|
+
"source": "run",
|
|
619
767
|
"description": "Scenarios in this run open with the same steps, before the first When, with the same docstrings and tables. The note reports the measured repetition, and names a process-scope fixture only when every shared step declares mutates: false.",
|
|
620
768
|
"fix": "No change is necessary. A Background can hold the shared steps. A process-scope fixture fits only an opening whose steps all declare mutates: false."
|
|
621
769
|
},
|
|
622
770
|
"report-incomplete": {
|
|
623
771
|
"severity": "failed",
|
|
772
|
+
"source": "run",
|
|
624
773
|
"description": "nuka report left out part of the run it renders: a scenario, a step record, or an attachment it could not read or map. The rest is written, and the report exits 1.",
|
|
625
774
|
"fix": "Correct what the message names, such as a step record removed from the run directory, and run nuka report again."
|
|
626
775
|
},
|
|
627
776
|
"report-out-invalid": {
|
|
628
777
|
"severity": "refused",
|
|
778
|
+
"source": "refusal",
|
|
629
779
|
"description": "nuka report --out names a place the render cannot write: a directory where a file goes, a file where a directory goes, a FIFO or another special file, a dangling symbolic link, a path under a regular file, the Allure history file, or a markdown or messages file the file system refuses to write.",
|
|
630
780
|
"fix": "Name a regular file for markdown and messages, or a directory for allure, under a directory that exists or can be created."
|
|
631
781
|
},
|
|
632
782
|
"retention-failed": {
|
|
633
783
|
"severity": "warning",
|
|
784
|
+
"source": "run",
|
|
634
785
|
"description": "The run finished, and removing old run directories under retention failed.",
|
|
635
786
|
"fix": "Correct what the message names, such as a directory's permissions; the next run tries again."
|
|
636
787
|
},
|
|
637
788
|
"run-failed": {
|
|
638
789
|
"severity": "failed",
|
|
790
|
+
"source": "run",
|
|
639
791
|
"description": "nuka verdict found that the newest run failed, and its run.json holds no failed finding that says why.",
|
|
640
792
|
"fix": "Read the run summary that the do line renders for why the run failed."
|
|
641
793
|
},
|
|
642
794
|
"run-incomplete": {
|
|
643
795
|
"severity": "failed",
|
|
796
|
+
"source": "run",
|
|
644
797
|
"description": "A signal or a worker that exited early stopped the run before every scenario had a record.",
|
|
645
798
|
"fix": "Run the scenarios again; the message names what stopped the run."
|
|
646
799
|
},
|
|
647
800
|
"run-invalid": {
|
|
648
801
|
"severity": "refused",
|
|
802
|
+
"source": "refusal",
|
|
649
803
|
"description": "The run directory's run.json does not parse, has another schema version, or lacks a field nuka report reads.",
|
|
650
804
|
"fix": "Render a run directory that nuka run of this release wrote, unedited; the message names what is wrong."
|
|
651
805
|
},
|
|
652
806
|
"run-missing": {
|
|
653
807
|
"severity": "failed",
|
|
808
|
+
"source": "run",
|
|
654
809
|
"description": "nuka verdict found no run that ended in this project, so nothing judged the working tree.",
|
|
655
810
|
"fix": "Run the criteria the change touches with nuka run, under --base with the commit the change started from, and read the verdict table before nuka verdict."
|
|
656
811
|
},
|
|
657
812
|
"run-not-found": {
|
|
658
813
|
"severity": "refused",
|
|
814
|
+
"source": "refusal",
|
|
659
815
|
"description": "nuka report found no run to render: the directory it names holds no run.json, or the state directory holds no run that ended.",
|
|
660
816
|
"fix": "Name a run directory that holds a run.json, or run nuka run first."
|
|
661
817
|
},
|
|
662
818
|
"run-partial": {
|
|
663
819
|
"severity": "failed",
|
|
664
|
-
"
|
|
820
|
+
"source": "run",
|
|
821
|
+
"description": "nuka verdict found that the newest run left out scenarios of the files it named, with a :line target or --tag, or was a walk (nuka run --step), whose system was open to anything between steps. Such a run is for debugging or exploring, and does not judge the criteria.",
|
|
665
822
|
"fix": "Run the feature files again without :line, --tag, or --step."
|
|
666
823
|
},
|
|
667
824
|
"run-result-not-written": {
|
|
668
825
|
"severity": "failed",
|
|
826
|
+
"source": "run",
|
|
669
827
|
"description": "The run finished, and run.json could not be written, so the run fails: it has no record for a later command to read.",
|
|
670
828
|
"fix": "Correct what the message names, such as the state directory's permissions."
|
|
671
829
|
},
|
|
672
830
|
"run-sources-invalid": {
|
|
673
831
|
"severity": "refused",
|
|
832
|
+
"source": "refusal",
|
|
674
833
|
"description": "The run directory's sources.json does not parse, lacks a field, or has another schema version.",
|
|
675
834
|
"fix": "Render a run directory that nuka run of this release wrote, unedited; the message names what is wrong."
|
|
676
835
|
},
|
|
677
836
|
"run-sources-missing": {
|
|
678
837
|
"severity": "refused",
|
|
838
|
+
"source": "refusal",
|
|
679
839
|
"description": "The run directory holds no sources.json, the feature text nuka report --format allure and messages parse the run's scenarios from. A run an earlier release wrote has none.",
|
|
680
840
|
"fix": "Run the scenarios again with this release, and render that run."
|
|
681
841
|
},
|
|
682
842
|
"run-sources-not-written": {
|
|
683
843
|
"severity": "failed",
|
|
844
|
+
"source": "run",
|
|
684
845
|
"description": "The run finished, and sources.json, the feature text nuka report renders the run from, could not be written, so the run fails.",
|
|
685
846
|
"fix": "Correct what the message names, such as the state directory's permissions, and run again."
|
|
686
847
|
},
|
|
687
848
|
"run-stale": {
|
|
688
849
|
"severity": "failed",
|
|
850
|
+
"source": "run",
|
|
689
851
|
"description": "nuka verdict found that the newest run judged another working tree than the one there is now: a tracked file, or an untracked file .gitignore does not leave out, changed after it started, or it recorded no working tree id. Its verdicts say nothing about the change since.",
|
|
690
852
|
"fix": "Run the criteria again on the tree as it is. When every run leaves the tree changed, a step or the program writes a file git counts: add that file to .gitignore."
|
|
691
853
|
},
|
|
692
854
|
"run-without-base": {
|
|
693
855
|
"severity": "note",
|
|
856
|
+
"source": "run",
|
|
694
857
|
"description": "nuka verdict found that the newest run had no --base, so no row of its table says which criteria are new or changed, and a new criterion that passes without the change was not caught as unproven.",
|
|
695
858
|
"fix": "No change is necessary. Run with --base and the commit the change started from to have new and changed criteria proven against it."
|
|
696
859
|
},
|
|
697
860
|
"scenario-failed": {
|
|
698
861
|
"severity": "failed",
|
|
862
|
+
"source": "run",
|
|
699
863
|
"description": "A scenario ran and failed; its step lines and its record say which step and why.",
|
|
700
864
|
"fix": "Correct the step or the code under test that the error names."
|
|
701
865
|
},
|
|
702
866
|
"scenario-without-then": {
|
|
703
867
|
"severity": "warning",
|
|
868
|
+
"source": "check",
|
|
704
869
|
"description": "A scenario judges no claim, so it passes whenever its steps run without an error: it has steps of its own and no Then step, in it or in its Background (a scenario of only * lines included, since a * line has no position), or each of its Then lines binds a step that is not a claim step, such as a compat step.",
|
|
705
870
|
"fix": "Add a Then line that binds a claim step (defineStep with claims) and checks the outcome the scenario is for."
|
|
706
871
|
},
|
|
707
872
|
"schema-field-undescribed": {
|
|
708
873
|
"severity": "note",
|
|
874
|
+
"source": "check",
|
|
709
875
|
"description": "A field of a typed step's args or returns schema has no .describe(), so an agent choosing a step cannot read what it means.",
|
|
710
876
|
"fix": "Add a .describe() that says what the field means to each field that the message names."
|
|
711
877
|
},
|
|
712
878
|
"secrets-public-key-unknown": {
|
|
713
879
|
"severity": "warning",
|
|
880
|
+
"source": "check",
|
|
714
881
|
"description": "A secrets.public entry names a key that no envFile defines.",
|
|
715
882
|
"fix": "Define the key in an envFile, or remove it from secrets.public."
|
|
716
883
|
},
|
|
717
884
|
"secrets-redact-key-too-short": {
|
|
718
885
|
"severity": "warning",
|
|
886
|
+
"source": "check",
|
|
719
887
|
"description": "A secrets.redact key's value is shorter than the minimum length build-secret-set.ts will actually redact, so it never gets redacted.",
|
|
720
888
|
"fix": "Use a longer value for the key, or remove the key from secrets.redact."
|
|
721
889
|
},
|
|
722
890
|
"secrets-redact-key-unknown": {
|
|
723
891
|
"severity": "warning",
|
|
892
|
+
"source": "check",
|
|
724
893
|
"description": "A secrets.redact entry names a key that no envFile defines.",
|
|
725
894
|
"fix": "Define the key in an envFile, or remove it from secrets.redact."
|
|
726
895
|
},
|
|
727
896
|
"serial-tag-on-scenario": {
|
|
728
897
|
"severity": "error",
|
|
898
|
+
"source": "check",
|
|
729
899
|
"description": "A @nukadoko:serial tag is on a Scenario/Scenario Outline line; nuka run --concurrency only reads it from the Feature line, so it has no effect there.",
|
|
730
900
|
"fix": "Move @nukadoko:serial to the Feature line."
|
|
731
901
|
},
|
|
902
|
+
"setup-result-missing": {
|
|
903
|
+
"severity": "error",
|
|
904
|
+
"source": "check",
|
|
905
|
+
"description": "A step the run would run, or a fixture it needs, destructures setupResult, and a system the run starts declares no setup, so nothing makes a value for it. Reading it throws there, every time.",
|
|
906
|
+
"fix": "Write setup in the program in nukadoko.config.ts for the system the finding names, and return what the steps read, such as { tenant }; or stop the step and its fixtures destructuring setupResult."
|
|
907
|
+
},
|
|
732
908
|
"show-requests-failed": {
|
|
733
909
|
"severity": "warning",
|
|
910
|
+
"source": "run",
|
|
734
911
|
"description": "showRequests could not draw a request on its page, so no requests trace was written. http.jsonl still has every request.",
|
|
735
912
|
"fix": "Correct what the message names, such as a browser that is not installed (npx playwright install chromium), or turn showRequests off."
|
|
736
913
|
},
|
|
737
914
|
"state-missing": {
|
|
738
915
|
"severity": "error",
|
|
916
|
+
"source": "check",
|
|
739
917
|
"description": "A step requires a state, and by what the steps of the earlier lines declare, the line can only be reached with that state not held: no step gives it, no earlier line gives it to that holder, or the last line that touched it ends it. nuka run refuses the scenario before any of its steps runs, --no-check included.",
|
|
740
918
|
"fix": "Put a line that runs a step whose gives names the state before the line that requires it, or move the line that ends it below that line. When the step of an earlier line gives the state without saying so, add the state to that step's gives."
|
|
741
919
|
},
|
|
742
920
|
"state-shape-mismatch": {
|
|
743
921
|
"severity": "error",
|
|
922
|
+
"source": "check",
|
|
744
923
|
"description": "Steps name one state in two shapes, some with the args key that tells its holders apart ([state, key]) and some with the name alone, so no line that requires it is judged.",
|
|
745
924
|
"fix": "Write the state the same way in every step: with a key in each requires, gives, and ends entry, or with the name alone in all of them."
|
|
746
925
|
},
|
|
747
926
|
"step-args-invalid": {
|
|
748
927
|
"severity": "refused",
|
|
928
|
+
"source": "refusal",
|
|
749
929
|
"description": "nuka do has no --args, or --args is not valid JSON.",
|
|
750
930
|
"fix": "Pass --args as a JSON object with the keys that nuka describe <step> lists."
|
|
751
931
|
},
|
|
752
932
|
"step-description-todo": {
|
|
753
933
|
"severity": "note",
|
|
934
|
+
"source": "check",
|
|
754
935
|
"description": "A typed step's description is still the placeholder nuka scaffold wrote.",
|
|
755
936
|
"fix": "Replace the description with one sentence that says what the step does."
|
|
756
937
|
},
|
|
757
938
|
"step-file-import-failed": {
|
|
758
939
|
"severity": "error",
|
|
940
|
+
"source": "check",
|
|
759
941
|
"description": "A step file under featuresDir failed to import, so any step it defines never reaches the vocabulary.",
|
|
760
942
|
"fix": "Correct the import or the error that the message names in the file, then run nuka check again."
|
|
761
943
|
},
|
|
762
944
|
"step-file-unsupported-extension": {
|
|
763
945
|
"severity": "error",
|
|
946
|
+
"source": "check",
|
|
764
947
|
"description": "Discovery found a .cjs or .cts step file; nukadoko is ESM-only and never imports it.",
|
|
765
948
|
"fix": "Write the file as an ES module with a .ts, .mts, .js, or .mjs extension."
|
|
766
949
|
},
|
|
767
950
|
"step-inputs-invalid": {
|
|
768
951
|
"severity": "refused",
|
|
952
|
+
"source": "refusal",
|
|
769
953
|
"description": "nuka do cannot run the step as given: a from key, a fixture, or a --use record does not fit.",
|
|
770
954
|
"fix": "Correct the step or the flags as the message says."
|
|
771
955
|
},
|
|
772
956
|
"step-needs-one-scenario": {
|
|
773
957
|
"severity": "refused",
|
|
958
|
+
"source": "refusal",
|
|
774
959
|
"description": "nuka run --step walks one execution of one scenario, and the run selects more than that: several scenarios, several environments, --repeat above 1, --base, or a scenario whose conditions do not hold in its environment.",
|
|
775
960
|
"fix": "Name one scenario with <file>:<line>, one environment with --env, and leave out --repeat and --base."
|
|
776
961
|
},
|
|
777
962
|
"step-option-ignored": {
|
|
778
963
|
"severity": "warning",
|
|
964
|
+
"source": "check",
|
|
779
965
|
"description": "A defineStep call passes a key that defineStep does not read, such as rationale, which was removed, so the key has no effect and its value is shown nowhere.",
|
|
780
966
|
"fix": "Delete the key from the defineStep call. Move rationale text into a comment above defineStep first."
|
|
781
967
|
},
|
|
782
968
|
"step-record-unreadable": {
|
|
783
969
|
"severity": "warning",
|
|
970
|
+
"source": "run",
|
|
784
971
|
"description": "A step wrote a step record that could not be read back, so run.json and the summary have no declaration or measurement for it.",
|
|
785
972
|
"fix": "Correct what the message names, such as a full disk or a process that removed the run directory during the run."
|
|
786
973
|
},
|
|
974
|
+
"steps-reach-command": {
|
|
975
|
+
"severity": "note",
|
|
976
|
+
"source": "check",
|
|
977
|
+
"description": "A system the run starts declares stepsReach: \"url\", and the body of a step it would run, or of a fixture it needs, calls runCommand, which starts a process that system refuses. Whether the call is reached depends on the body, so this is a note: the run refuses the call itself (command-refused).",
|
|
978
|
+
"fix": "Send the request to the service's URL instead (baseURL, or services.<name>.url), such as its test API. A job that must not ship such a call runs nuka check --fail-on steps-reach-command."
|
|
979
|
+
},
|
|
787
980
|
"summary-not-written": {
|
|
788
981
|
"severity": "warning",
|
|
982
|
+
"source": "run",
|
|
789
983
|
"description": "The run finished, and a summary file could not be written.",
|
|
790
984
|
"fix": "Correct what the message names, such as the summary path's directory."
|
|
791
985
|
},
|
|
792
986
|
"table-docstring-key-mismatch": {
|
|
793
987
|
"severity": "error",
|
|
988
|
+
"source": "check",
|
|
794
989
|
"description": "A step's table or docstring is attached to a line, but zero, or more than one, of its args keys is left unconsumed by pattern captures (exactly one must be left for the attachment to fill), or the one key it fills is of a type the attachment can never satisfy (a table is string[][], a docstring is a string).",
|
|
795
990
|
"fix": "Leave exactly one args key that no capture fills, typed string[][] for a table or string for a docstring, or remove the attachment from the line."
|
|
796
991
|
},
|
|
797
992
|
"target-not-found": {
|
|
798
993
|
"severity": "refused",
|
|
994
|
+
"source": "refusal",
|
|
799
995
|
"description": "A target names a file or a directory that does not exist.",
|
|
800
996
|
"fix": "Name a file or a directory that exists."
|
|
801
997
|
},
|
|
802
998
|
"target-unreadable": {
|
|
803
999
|
"severity": "refused",
|
|
1000
|
+
"source": "refusal",
|
|
804
1001
|
"description": "A target exists, and nukadoko could not read it.",
|
|
805
1002
|
"fix": "Make the file readable, or name another target."
|
|
806
1003
|
},
|
|
807
1004
|
"then-compat-step": {
|
|
808
1005
|
"severity": "warning",
|
|
1006
|
+
"source": "check",
|
|
809
1007
|
"description": "A compat step is bound in Then position. A compat step cannot declare claims, so nukadoko cannot see what it judges.",
|
|
810
1008
|
"fix": "Move the step to defineStep with claims, or move the line out of Then position."
|
|
811
1009
|
},
|
|
812
1010
|
"then-without-claims": {
|
|
813
1011
|
"severity": "error",
|
|
1012
|
+
"source": "check",
|
|
814
1013
|
"description": "A typed step that runs is bound in Then position. A Then judges through claims; a step that only reads or records a value belongs in a Given or When.",
|
|
815
1014
|
"fix": "Bind a claim step (defineStep with claims) at this line, or move the line to Given or When."
|
|
816
1015
|
},
|
|
817
1016
|
"trace-version-unknown": {
|
|
818
1017
|
"severity": "warning",
|
|
1018
|
+
"source": "run",
|
|
819
1019
|
"description": "A Playwright trace has a version nukadoko cannot read, so its actions are not in the step record.",
|
|
820
1020
|
"fix": "Install the Playwright version nukadoko is tested against."
|
|
821
1021
|
},
|
|
822
1022
|
"tracked-secret-looking-key": {
|
|
823
1023
|
"severity": "warning",
|
|
1024
|
+
"source": "check",
|
|
824
1025
|
"description": "An envFile tracked by git defines a key that looks like a secret by name, but that key is not in secrets.redact.",
|
|
825
1026
|
"fix": "Add the key to secrets.redact, or move it to an envFile that git does not track."
|
|
826
1027
|
},
|
|
827
1028
|
"undeclared-write": {
|
|
828
1029
|
"severity": "note",
|
|
1030
|
+
"source": "run",
|
|
829
1031
|
"description": "A step that declares mutates: false has, in its trace, a write the program committed to a table that holds state: the execution events say the step changed what a later step may read, and its declaration says it did not. A write to a table the program's tables list marks as bookkeeping or infrastructure is not one, and neither is a write that rolled back or whose commit state no line decides.",
|
|
830
1032
|
"fix": "Declare mutates: true on the step when it is meant to write, or stop the write in the program when it is not; a table that holds bookkeeping or infrastructure is marked so in the program's tables list (docs/spec.md \"Lists\")."
|
|
831
1033
|
},
|
|
832
1034
|
"undefined-step": {
|
|
833
1035
|
"severity": "error",
|
|
1036
|
+
"source": "check",
|
|
834
1037
|
"description": "No step definition matches a line in a feature file.",
|
|
835
1038
|
"fix": "Run nuka scaffold --feature with the feature file to write a stub for each undefined line, or reword the line to match a step that exists."
|
|
836
1039
|
},
|
|
837
1040
|
"undefined-step-check-suppressed": {
|
|
838
1041
|
"severity": "warning",
|
|
1042
|
+
"source": "check",
|
|
839
1043
|
"description": "A step file failed to import, or a line would match a step whose pattern has an unregistered parameter type, so the undefined-step finding that cause could explain is held back until it is fixed.",
|
|
840
1044
|
"fix": "Fix the step-file-import-failed or playwright-missing finding, or the pattern error, that held it back, then run nuka check again."
|
|
841
1045
|
},
|
|
842
1046
|
"unexpected-error": {
|
|
843
1047
|
"severity": "refused",
|
|
1048
|
+
"source": "refusal",
|
|
844
1049
|
"description": "The command stopped on an error that has no code of its own.",
|
|
845
1050
|
"fix": "Read the message; it is the error the command stopped on."
|
|
846
1051
|
},
|
|
847
1052
|
"unexpected-failure": {
|
|
848
1053
|
"severity": "failed",
|
|
1054
|
+
"source": "run",
|
|
849
1055
|
"description": "A scenario's steps passed and the program failed underneath one of them in a way no @expects: tag of the scenario names: a response with a status from 500 to 599, an error the page threw that nothing caught, or an error the program reported in its execution events with handled: false. Its cell is broke, so the claims that held prove nothing about the criterion.",
|
|
850
1056
|
"fix": "Fix what failed in the program. A scenario that causes the failure on purpose names it with a tag on its Scenario line, such as @expects:status=503, @expects:error=<class>, or @expects:page-error=<name>; the finding's fix: line spells the tag."
|
|
851
1057
|
},
|
|
852
1058
|
"unfillable-required-key": {
|
|
853
1059
|
"severity": "error",
|
|
1060
|
+
"source": "check",
|
|
854
1061
|
"description": "A step's args key is required, but nothing on this line (no pattern capture, no table/docstring attachment, and no declared from) can ever fill it.",
|
|
855
1062
|
"fix": "Capture the key in the pattern, attach a table or a docstring, declare from for the key, or make the key optional."
|
|
856
1063
|
},
|
|
857
1064
|
"unknown-capture-key": {
|
|
858
1065
|
"severity": "error",
|
|
1066
|
+
"source": "check",
|
|
859
1067
|
"description": "A pattern captures a key that is not a key of the step's args schema.",
|
|
860
1068
|
"fix": "Rename the capture to a key of the args schema, or add the key to the schema."
|
|
861
1069
|
},
|
|
862
1070
|
"unknown-environment": {
|
|
863
1071
|
"severity": "refused",
|
|
1072
|
+
"source": "refusal",
|
|
864
1073
|
"description": "--env names an environment that the program in nukadoko.config.ts does not define.",
|
|
865
1074
|
"fix": "Pass default or an environment the program in nukadoko.config.ts defines, or add it to environments there."
|
|
866
1075
|
},
|
|
867
1076
|
"unknown-parameter-type": {
|
|
868
1077
|
"severity": "error",
|
|
1078
|
+
"source": "check",
|
|
869
1079
|
"description": "A pattern names a parameter type this project has not registered, such as {custom} with no matching config.parameterTypes entry.",
|
|
870
1080
|
"fix": "Register the type in config.parameterTypes, or use a built-in type such as {key:string}."
|
|
871
1081
|
},
|
|
872
1082
|
"unknown-step": {
|
|
873
1083
|
"severity": "refused",
|
|
1084
|
+
"source": "refusal",
|
|
874
1085
|
"description": "The command names a step that is not in the vocabulary.",
|
|
875
1086
|
"fix": "Name a step that nuka steps lists."
|
|
876
1087
|
},
|
|
877
1088
|
"unnamed-capture": {
|
|
878
1089
|
"severity": "error",
|
|
1090
|
+
"source": "check",
|
|
879
1091
|
"description": "A step's pattern has a capture with no name, such as {int} instead of {key:int}; every capture must name the args key it fills.",
|
|
880
1092
|
"fix": "Name the capture after the args key that it fills, as {key:type}."
|
|
881
1093
|
},
|
|
882
1094
|
"unsupported-hook-tag-expression": {
|
|
883
1095
|
"severity": "error",
|
|
1096
|
+
"source": "check",
|
|
884
1097
|
"description": "A compat hook's tag expression could not be parsed, so nukadoko cannot tell which scenarios it applies to.",
|
|
885
1098
|
"fix": "Rewrite the hook's tags as a tag expression that nukadoko parses, such as @a and not @b."
|
|
886
1099
|
},
|
|
887
1100
|
"unterminated-capture": {
|
|
888
1101
|
"severity": "error",
|
|
1102
|
+
"source": "check",
|
|
889
1103
|
"description": "A pattern has an opening { with no matching closing }, so the pattern cannot be parsed.",
|
|
890
1104
|
"fix": "Close the capture with }, or escape a literal { as \\{."
|
|
891
1105
|
},
|
|
892
1106
|
"version-probe-failed": {
|
|
893
1107
|
"severity": "warning",
|
|
1108
|
+
"source": "run",
|
|
894
1109
|
"description": "The environment's version probe did not answer, so the records have no target version.",
|
|
895
1110
|
"fix": "Correct the environment's version setting in the program in nukadoko.config.ts, or the endpoint it names."
|
|
896
1111
|
},
|
|
897
1112
|
"walk-failed": {
|
|
898
1113
|
"severity": "failed",
|
|
1114
|
+
"source": "run",
|
|
899
1115
|
"description": "nuka step found the walk paused after a step that failed, or after a step whose AfterStep hook failed: the scenario is failed, and the pause names which of them failed and its message. The walk still waits for its answer, and nothing is left to stop.",
|
|
900
1116
|
"fix": "Show the person the failure and the pause's views, answer next when they have seen it, and read the step record for the cause."
|
|
901
1117
|
},
|
|
902
1118
|
"walk-gone": {
|
|
903
1119
|
"severity": "failed",
|
|
904
|
-
"
|
|
1120
|
+
"source": "run",
|
|
1121
|
+
"description": "nuka step found a walk whose nuka run --step process ended without recording how: it was killed, or it crashed, so its system, its browser, and its fixtures may not have been torn down.",
|
|
905
1122
|
"fix": "Stop what the walk left running, if anything, and start the walk again with the command the finding names."
|
|
906
1123
|
},
|
|
907
1124
|
"walk-in-progress": {
|
|
908
1125
|
"severity": "refused",
|
|
1126
|
+
"source": "refusal",
|
|
909
1127
|
"description": "nuka run --step found another walk in progress in this project: one walk at a time, since nuka step answers the walk the state directory names.",
|
|
910
1128
|
"fix": "Finish the walk in progress with nuka step, or stop its nuka run --step process, then start this one."
|
|
911
1129
|
},
|
|
912
1130
|
"walk-not-current": {
|
|
913
1131
|
"severity": "refused",
|
|
1132
|
+
"source": "refusal",
|
|
914
1133
|
"description": "nuka step names a walk that is not the walk in this project: a later walk replaced it, or no walk with that number started yet. An answer names its walk so that it cannot move a walk the person was not shown.",
|
|
915
1134
|
"fix": "Run the nuka step wait the finding names, show the person the pause it prints, and answer with that walk's number."
|
|
916
1135
|
},
|
|
917
1136
|
"walk-not-found": {
|
|
918
1137
|
"severity": "refused",
|
|
1138
|
+
"source": "refusal",
|
|
919
1139
|
"description": "nuka step found no walk to answer or wait for: no nuka run --step recorded one, or the walk an answer is for was replaced by a later one.",
|
|
920
1140
|
"fix": "Start a walk with nuka run <feature>:<line> --step, then run nuka step wait."
|
|
921
1141
|
},
|
|
922
1142
|
"walk-run-kept": {
|
|
923
1143
|
"severity": "note",
|
|
1144
|
+
"source": "run",
|
|
924
1145
|
"description": "nuka clean kept a run directory because a walk (nuka run --step) that is live writes there, and nuka step answers its pauses through it. While a walk is starting, every run directory with no run.json is kept, since its run may have made one already.",
|
|
925
1146
|
"fix": "Run nuka clean again once the walk ended; nuka step wait --walk <n> reports when it does."
|
|
926
1147
|
},
|
|
927
1148
|
"walk-stopped": {
|
|
928
1149
|
"severity": "failed",
|
|
1150
|
+
"source": "run",
|
|
929
1151
|
"description": "A walk (nuka run --step) was stopped at a pause with nuka step stop, so the steps after it did not run and nothing shows the scenario holds. The scenario is stopped, not failed, and its row is red.",
|
|
930
1152
|
"fix": "Run the scenario without --step, or walk it to its last step, for a run that shows it holds."
|
|
931
1153
|
},
|
|
932
1154
|
"worker-output-unreadable": {
|
|
933
1155
|
"severity": "warning",
|
|
1156
|
+
"source": "run",
|
|
934
1157
|
"description": "A worker, under --concurrency or in a tree of nuka run --base, wrote a line on its stdout that is not one of its messages.",
|
|
935
1158
|
"fix": "Remove the code that writes to process.stdout from the step files or the code they import."
|
|
936
1159
|
},
|
|
937
1160
|
"working-tree-unknown": {
|
|
938
1161
|
"severity": "note",
|
|
1162
|
+
"source": "run",
|
|
939
1163
|
"description": "nuka verdict could not get a git tree id for the working tree: outside a repository, before its first commit, or a git call failed. Whether the newest run judged this tree is unknown, so the verdict is that run's own table.",
|
|
940
1164
|
"fix": "No change is necessary. In a git repository with a commit, nuka verdict compares the tree with the one the run judged."
|
|
941
1165
|
},
|
|
942
1166
|
"world-setup-failed": {
|
|
943
1167
|
"severity": "warning",
|
|
1168
|
+
"source": "run",
|
|
944
1169
|
"description": "A compat World could not be set up for a scenario.",
|
|
945
1170
|
"fix": "Correct the World class or the defineWorld call the message names."
|
|
946
1171
|
}
|