fix(tables): preserve native validation failure causes

Merged
MA
5h ago
+5-0

Post-merge receipt — revision 2026-12-06.5

Push CI 47660016950, job 146115177264 completed successfully on attempt 1. Both TESTED_REF and the actual checkout identify integration commit 715c696098932cf39a3cac7ce02146dc08da48f2.

Setup, lint and Pyrefly passed with zero check errors. The first standard test step reported 1,442 passed and 70 deselected in 36.14 seconds. The three bad_data0/1/2 regressions explicitly passed again. The second pre-existing test step reported zero selected and 174 deselected in 0.67 seconds; it is not additional executed coverage. No warning/error annotation or runtime-warning summary appeared. No local project runtime result is claimed.

The Sonar check on the PR reported zero new issues. The separate post-merge branch analysis, check 146115433449, passed its quality gate but reports 36 New issues and zero hotspots for 0.12.0-dev. The aggregate branch output does not identify those issues or attribute them to this patch. A green branch gate is not a claim of an empty backlog. The Semgrep qualification is the successful PR scan 285776091; no new Semgrep check appeared in this push.

Date: 2026-12-06
Author: Marlon Costa marlon.costa@datacosmos.com.br — Datacosmos

Current qualified integration — revision 2026-12-06.4

Merged by normal merge as 715c696098932cf39a3cac7ce02146dc08da48f2, from head d9f232be96b5fb35727501d286e0e6a6a459ed03 into integration b773667236be5b6ae7eec421a4f9a0f8d529f82c. This incorporates the DOCX/PPTX, YAML-test and XLSX changes that landed while this PR was being qualified. The authored delta remains exactly two files and five added lines, with source blob 8c2f6490c6bf034219d2954f90ddabfa87c94cfb and test blob 41a3800c43494383a266dc12317c9b67576fd3f6.

CI 47659712908, job 146114214946 tested 735c02b3e59d1b6d606934cdca02dd9a6ab94cea on attempt 1. Its parents and tree 7560ccfe6c2ac6771301dd32cde5932a8e0ff5bf exactly match the integrated commit.

Setup passed. Ruff and Pyrefly reported zero errors. The first standard test step reported 1,442 passed and 70 deselected in 32.01 seconds. All three malformed-row cases explicitly passed, proving the public exception type and identity assertions. One existing test was reported near the ordinary time limit and passed; no limit changed. The second pre-existing test step selected zero cases and reported 174 deselected; it adds no new runtime coverage to this receipt.

Sonar reports zero new issues, zero accepted issues and zero hotspots. Semgrep passed (scan 285776091). The final Cubic check explicitly skipped a new AI review for a merge-only commit; the original authored diff was reviewed with no issues and independently checked against the same two blobs.

The post-merge push CI 47660016950 passed for the exact integration commit. Its separate receipt is recorded above.

The earlier sections below retain their historical candidate refs and validation states. This section identifies the current integrated result.

Date: 2026-12-06
Author: Marlon Costa marlon.costa@datacosmos.com.br — Datacosmos

Problem

u.Cli.tables_normalize_data catches the adapter's native ValidationError but stores only its formatted message in the failed result. This loses the original exception and prevents unwrap() from preserving its type and identity.

Changes

  • Pass the captured exception to the existing result factory with exception=exc.
  • Strengthen the three existing malformed-row cases through the public u.Cli facade. Each case now verifies the native exception type and the identity of the exception raised by unwrap().

The error message, successful normalization behavior, public signature, renderer, copyright, and MIT license remain intact. The patch changes two authored files with five added lines.

Validation

The base integration commit fb8658f83f69ab039c34c9a69782104c0d7cdc3c passed its push CI, including setup, checks, and both declared test steps.

The exact patch received independent static review before publication. Candidate 4b6b8663f3acf0cc18ceb3d099e8a7e44d4b5783 passed CI run 47657995688: lint and pyrefly reported zero errors; the primary test step passed 1,429 tests with 70 deselected in 32.60 seconds, including all three malformed-row cases. The second declared test step selected zero cases. That receipt applies to tested merge e13bdff3fb50cb54f692ab09f1cb36eb164449e5, whose parents were fb8658f8 and 4b6b8663.

The first base adoption merged c53dbf14e464b4c73a74b47ec9160cdd9174676e into the branch at 0ece78c47d694e683672e4c113fbdfa3eb9ccfbc. CI run 47658569244 passed setup, lint, pyrefly and tests: 1,431 passed, 70 deselected in 41.32 seconds, including all three malformed-row cases. The second declared test step selected zero cases. The tested merge was 5fbb59a2e9b15c90af656f1e8f95ed0705634edb, with parents c53dbf14 and 0ece78c4.

Integration then advanced to 1b2daa10121e32127c7fdff7daf4c2f84b59e511 through #508. Fleet integration continuity requires the lane to contain that tip before publication. Normal merge ef5fa7df334eacf3cd86872908ac22a1e4243830 adopts it and preserves both reviewed blobs. Fresh CI is pending for this latest candidate; earlier receipts qualify only their recorded trees.

The test uses the existing three real inputs: ["abc"], ["x", "y"], and [["ok", 1], "bad-row"]. It keeps the existing failure/message assertions and calls public unwrap().

Traceability

  • Branch: fix/table-native-validation-cause-20261206.
  • Base adopted: 0.12.0-dev at 1b2daa10121e32127c7fdff7daf4c2f84b59e511.
  • Head: ef5fa7df334eacf3cd86872908ac22a1e4243830; ordered parents: 0ece78c47d694e683672e4c113fbdfa3eb9ccfbc, 1b2daa10121e32127c7fdff7daf4c2f84b59e511.
  • Tree: 99ab67852c13aa199d2ee6b0be97a35298c51165.
  • Concurrent PRs #504, #507, #508, and #509 were re-read before publication; none touches these two paths.
  • Revision 2026-12-06.1: initial five-line correction.
  • Revision 2026-12-06.2: adopt current integration, preserve the reviewed blobs, and require fresh CI.
  • Revision 2026-12-06.3: adopt the updated integration tip after #508; source blobs remain unchanged and fresh CI is required.
  • Author: Marlon Costa marlon.costa@datacosmos.com.br.

Summary by cubic

Preserves the native adapter ValidationError when u.Cli.tables_normalize_data rejects malformed input, so unwrap() now raises the original exception again instead of only its formatted message.

  • Passes the captured exception to the failed result factory via exception=exc.
  • Strengthens the malformed-row test cases to verify the native exception type and that unwrap() raises the same exception instance.