tewip-ai 0.69.5 → 0.69.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/engine/rules.js
CHANGED
|
@@ -157,6 +157,19 @@ const envServerError = {
|
|
|
157
157
|
* Declines when the server failed during the test: the wrong value may come from the
|
|
158
158
|
* backend (ENV) or from a test that provokes errors on purpose, which only the LLM layer,
|
|
159
159
|
* seeing the whole trace, can tell apart (rules-3).
|
|
160
|
+
*
|
|
161
|
+
* **Do not remove the history requirement.** Phase 64 found that `tewip bugs` files almost nothing
|
|
162
|
+
* from one CI run - 1 ticket out of 1,964 real failures - because every test in a single run has
|
|
163
|
+
* `runs < 2` and this rule declines. The proposed fix was to let a plain value mismatch stand on its
|
|
164
|
+
* own: "expected 4, received 3 needs no model" is an obvious-sounding argument, and it was measured
|
|
165
|
+
* in Phase 65 over **2,767 hand-labelled real failures from nine projects**:
|
|
166
|
+
*
|
|
167
|
+
* 293 value mismatches -> TIMING 265 (90.4%), REAL_BUG 26 (8.9%), ENV 2 (0.7%)
|
|
168
|
+
*
|
|
169
|
+
* Per project it is 0%, 0%, 0%, 4%, 5%, 6%, 7%, 11%, 39%. **A flaky test fails its assertion too -
|
|
170
|
+
* that is what failing looks like.** The mismatch is not the signal; the history around it is, which
|
|
171
|
+
* is what the streak conditions below are reading and what one CI run cannot supply. Re-derive with
|
|
172
|
+
* `node eval/mismatch-precision.ts` before changing any of this.
|
|
160
173
|
*/
|
|
161
174
|
const realBugAssertion = {
|
|
162
175
|
id: 'real-bug-assertion',
|
|
@@ -60,8 +60,13 @@ export function whyNothingWasFiled(items, unsure) {
|
|
|
60
60
|
return [
|
|
61
61
|
`${items.length} failure(s). ${unsure.length} of them Tewip reads as a real bug, and none of those reaches the ${CONFIDENT_ENOUGH.toFixed(2)} confidence it requires before opening a ticket in somebody's name - the highest is ${highest.toFixed(2)}.`,
|
|
62
62
|
byModel > 0
|
|
63
|
-
? `${byModel === unsure.length ? 'All' : `${byModel}`} of them came from the AI layer, which is capped at 0.45 on purpose: a model's unsupported word is not enough to file on
|
|
63
|
+
? `${byModel === unsure.length ? 'All' : `${byModel}`} of them came from the AI layer, which is capped at 0.45 on purpose: a model's unsupported word is not enough to file on.`
|
|
64
64
|
: '',
|
|
65
|
+
// What a CI user can actually do about it. The rules decline a value mismatch without a stable
|
|
66
|
+
// failing streak, and on one run there is no streak to read - which is not over-caution:
|
|
67
|
+
// measured over 2,767 labelled real failures, a value mismatch is TIMING 90% of the time and a
|
|
68
|
+
// real bug 9% of the time (`node eval/mismatch-precision.ts`). History is what separates them.
|
|
69
|
+
'What would change this: history. The rules will not call a wrong value a bug without a stable failing streak behind it, because a flaky test produces the same wrong value - on real labelled data a value mismatch is a flaky test nine times out of ten. Keep this project\'s runs (`--name <project>`, or let the Action keep them) and the same failure in a second and third run is what the rules read. A person\'s correction on the failure in CI settles it immediately.',
|
|
65
70
|
`Nothing was filed. These are listed in \`tewip explain\` with their evidence${kinds.length > 0 ? `, alongside ${kinds.join(', ')} failures that are deliberately never filed` : ''}.`,
|
|
66
71
|
]
|
|
67
72
|
.filter(Boolean)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tewip-ai",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.6",
|
|
4
4
|
"mcpName": "io.github.hmamut39/tewip",
|
|
5
5
|
"description": "Tewip finds why each failing test failed - real bug, flaky test, environment, test data or changed selector - for any stack, from the command line, CI, or your editor.",
|
|
6
6
|
"keywords": [
|