Skip to content

test(id-import-notion): harness fixture data sources carry parent database id (#13525) - #17012

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/13525-harness-compile-fix
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/13525-harness-compile-fix

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to PR #17005 (the harness compile fix, merged 2026-11-29T22:41:59Z).

Why this exists: PR #17005 was merged ~3 minutes after its gate run 46318725197 concluded failure. That gate was the first execution of the §8 harness tests ever (the harness had never compiled before #17005): the crate built and 50 tests passed across the other targets, but recorded_harness went 1 passed / 4 failed. All four failures panic on the same error from the tests own setup: data source 11111111-… has inconsistent database membership under dddddddd-….

Adjudication (firsthand): the fixture is the wrong side. tests/recorded_harness.rs filed its two data sources under the database with parent_id: None. Production builds every data source with parent_id = Some(database_id) (lib.rs inventory builder, which also bails when the API object disagrees), the re-import membership validation in reimport.rs enforces exactly that invariant, and the passing recorded_reimport fixture sets the parent from the recorded API object. No production code changes here.

Change: the two fixture data sources carry parent_id = Some(DATABASE), with a comment naming the invariant.

Verification: fresh gate run of the full id-import-notion suite dispatched against this branch head (6ce59be); verdict posted here and on #13525 from a firsthand full-log read. Please do not merge before that verdict is posted — that is the step whose absence created this follow-up.

Refs #13525


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…nt database id

With the compile fix, the §8 harness tests execute for the first time
and 4 of 5 fail: the fixture filed its two data sources under the
database with parent_id None, which the re-import membership
validation (reimport.rs inventory_index/source_parents) rightly
refuses. Production is the correct side: the inventory builder
(lib.rs) constructs every data source with parent_id =
Some(database_id) and bails when the API object disagrees, and the
passing recorded_reimport fixture does the same. Set the parent on
the two fixture data sources; no production code changes.

Refs #13525
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: efbe3306-a579-4510-a579-4b82eb88abcc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Gate verdict — GREEN, merge-ready (Felix lane 0640-EM, 2026-11-29)

Fleet-command run 46321052367 against this PR head (6ce59be), full log read firsthand:

  • 62 passed / 0 failed across all 14 id-import-notion targets (lib 34/0; recorded suites 21/0; doc 1/0).
  • recorded_harness 5 passed / 0 failed, every test named ok in the log: harness_all_eight_checks_pass_over_completed_corpus, harness_check_1_fails_when_a_non_clean_reason_is_dropped, harness_check_3_fails_when_repeat_import_would_create, harness_check_8_fails_when_a_row_claims_the_other_sources_schema, harness_without_reimport_plan_leaves_check_3_unevaluated.
  • Zero FAILED lines in the log; run conclusion success agrees with the log (the verdict rests on the log, not the conclusion).

This discharges the failure that PR #17005s early merge left on main. For Felix: merge on this verdict; #13525s verify-close completes on merge.

@developing-today-fleet
developing-today-fleet Bot merged commit 42cf02d into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/13525-harness-compile-fix branch November 29, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants