Repository navigation
Seed the applied threshold on FailureThreshold's seeded runs - #38075
Conversation
Since #37809 the run details card reads the tolerance a run recorded (appliedThreshold) instead of the test case's current setting, and a run without that snapshot shows its threshold as "Unavailable". The spec seeded results with no snapshot, so the strict run read "Unavailable" instead of "No tolerance" and the relative run lost its percentage unit. Seed each run with the snapshot an agent would write: 0 ABSOLUTE for the strict test, 5 PERCENTAGE for the relative one.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟢 Low riskThe change only adds applied-threshold snapshots to seeded Playwright results, improving test fidelity without changing production behavior. Seeds the applied threshold snapshot ( VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes the
FailureThreshold.spec.ts› "Seeded strict and relative results display their thresholds" failure on MySQL and PostgreSQL (full E2E run44200749877, bothmysql~fullandpostgresql~full, all retries).#37809 changed the run details card to read the tolerance a run recorded (
result.appliedThreshold) instead of the test case's current parameters. A run with no snapshot shows its threshold as "Unavailable", so the card does not attribute today's setting to an old run. The spec seeds its results through the API without that snapshot, so to the card they look like runs from an agent that predates it:seedNotNullResultnow takes the snapshot an agent would write and posts it asappliedThreshold: { applied: true, value, unit }. The strict run gets0 ABSOLUTE, the relative run gets5 PERCENTAGE.createTestCaseResult.jsonalready accepts the field. Only the spec changes; the product behaves as #37809 intended.Type of change:
High-level design:
N/A — one-file test fix.
Tests:
Use cases covered
columnValuesToBeNotNullrun that failed 3 of 100 rows shows Failed, threshold "No tolerance", failed "3 row(s) (3.00%)", evaluated "100 row(s)".Unit tests
Not applicable — Playwright spec only.
Backend integration tests
Not applicable — no backend changes.
Ingestion integration tests
Not applicable — no ingestion changes.
Playwright (UI) tests
playwright/e2e/Features/DataQuality/FailureThreshold.spec.tsb7998df1fec(includes Fixes #37806: DQ: Historical run details display current tolerance instead of the tolerance used at execution #37809), MySQL, Elasticsearch, chromium,--retries=0:--max-warnings=0) and Prettier pass on the changed file.Screenshots from the local run:
0 ABSOLUTE)5 PERCENTAGE)Visual regression baselines
Manual testing performed
run-details-thresholdreads "Unavailable".getRunThresholdData()/RunDetailsCard, which readresult.appliedThresholdsince Fixes #37806: DQ: Historical run details display current tolerance instead of the tolerance used at execution #37809.UI screen recording:
Not applicable — test-only fix, no UI change.
Checklist:
Fixes <issue-number>: <short explanation>— test fix, descriptive title, labelledskip-pr-checks.Fixes #<issue-number>above — test fix, no issue.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed
52fbfa06b6b(fresh-context pass at4de18b54148, then the comment-only follow-up). No 🔴. One 🟡 fixed: the spec's JSDoc still said the card shows the test case's configured threshold.🤖 Generated with Claude Code


Confidence Score: 5/5
This test-only change appears safe to merge.Summary
Updates the seeded Data Quality runs to include the threshold recorded when each run executed. Production code is unchanged.
No actionable issues found. Playwright was not run during this review.
Reviews (1) · Last reviewed commit: "Describe FailureThreshold's displayed th..." · Reviewed by Greptile