Skip to content

Seed the applied threshold on FailureThreshold's seeded runs - #38075

Merged
ShaileshParmar11 merged 2 commits into
mainfrom
claude/failurethreshold-spec-failing-e151f4
Nov 18, 2026
Merged

ShaileshParmar11 merged 2 commits into
mainfrom
claude/failurethreshold-spec-failing-e151f4

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the FailureThreshold.spec.ts › "Seeded strict and relative results display their thresholds" failure on MySQL and PostgreSQL (full E2E run 44200749877, both mysql~full and postgresql~full, all retries).

Locator:  getByTestId('run-details-card').getByTestId('run-details-threshold')
Expected: "No tolerance"
Received: "Unavailable"

#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:

  • the strict run read "Unavailable" instead of "No tolerance";
  • the relative run would also read "Unavailable", and its failed cell would put the row count before the percentage, because the unit now comes from the snapshot too.

seedNotNullResult now takes the snapshot an agent would write and posts it as appliedThreshold: { applied: true, value, unit }. The strict run gets 0 ABSOLUTE, the relative run gets 5 PERCENTAGE. createTestCaseResult.json already accepts the field. Only the spec changes; the product behaves as #37809 intended.

Type of change:

  • Bug fix

High-level design:

N/A — one-file test fix.

Tests:

Use cases covered

  • A strict columnValuesToBeNotNull run that failed 3 of 100 rows shows Failed, threshold "No tolerance", failed "3 row(s) (3.00%)", evaluated "100 row(s)".
  • A relative run at a 5% tolerance shows Success, threshold "5% of rows", failed "3.00% (3 row(s))", 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_IS_OSS=true npx playwright test playwright/e2e/Features/DataQuality/FailureThreshold.spec.ts --project=chromium --retries=0
✓ [setup] auth.setup.ts › authenticate all users
✓ [entity-data-setup] › create entity data prerequisites
✓ FailureThreshold.spec.ts:153 › Enum parameters render as sentences, not raw values (16.9s)
✓ FailureThreshold.spec.ts:274 › Seeded strict and relative results display their thresholds (20.5s)
✓ [entity-data-teardown] › cleanup entity data prerequisites
5 passed (56.0s)
  • ESLint (--max-warnings=0) and Prettier pass on the changed file.
  • Not run: the PostgreSQL lane and the rest of the Data Quality shard; the merge queue runs them.

Screenshots from the local run:

FailureThreshold spec: all tests passed

Seeded strict and relative: every step passed

Strict run (0 ABSOLUTE) Relative run (5 PERCENTAGE)
Strict run: Failed, No tolerance Relative run: Success, 5% of rows

Visual regression baselines

  • Not applicable (no rendering change).

Manual testing performed

  1. Read both failing CI reports (MySQL and PostgreSQL): the same assertion fails, run-details-threshold reads "Unavailable".
  2. Traced the text to getRunThresholdData() / RunDetailsCard, which read result.appliedThreshold since Fixes #37806: DQ: Historical run details display current tolerance instead of the tolerance used at execution #37809.
  3. Rebuilt the local server at a commit including Fixes #37806: DQ: Historical run details display current tolerance instead of the tolerance used at execution #37809 and ran the spec with the snapshot seeded; captured the run details card for both runs from the trace.

UI screen recording:

Not applicable — test-only fix, no UI change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — test fix, descriptive title, labelled skip-pr-checks.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — test fix, no issue.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. — N/A
  • For a UI feature or feature task: Docker recording — N/A, test-only fix.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    Reviewed 52fbfa06b6b (fresh-context pass at 4de18b54148, then the comment-only follow-up). No 🔴. One 🟡 fixed: the spec's JSDoc still said the card shows the test case's configured threshold.
  • Decision check: no durable decision — the spec follows the contract Fixes #37806: DQ: Historical run details display current tolerance instead of the tolerance used at execution #37809 already set.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.

  • The failure-threshold test seeds each run with its recorded tolerance.

No actionable issues found. Playwright was not run during this review.

Reviews (1) · Last reviewed commit: "Describe FailureThreshold's displayed th..." · Reviewed by Greptile

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.
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner November 18, 2026 05:46
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Nov 18, 2026
Copilot AI balanced review requested due to automatic review settings November 18, 2026 05:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The change only adds applied-threshold snapshots to seeded Playwright results, improving test fidelity without changing production behavior.

Seeds the applied threshold snapshot (appliedThreshold) on the FailureThreshold.spec.ts seeded results so the run details card shows "No tolerance" for the strict run and "5% of rows" for the relative run instead of "Unavailable". Only the Playwright spec changes. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ShaileshParmar11
ShaileshParmar11 merged commit 8fb669c into main Nov 18, 2026
50 of 52 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the claude/failurethreshold-spec-failing-e151f4 branch November 18, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants