Skip to content

test(db): align PostgreSQL smoke fixtures with current schema - #1468

Open
seonghobae wants to merge 2 commits into
developfrom
fix/postgres-smoke-read-state
Open

test(db): align PostgreSQL smoke fixtures with current schema#1468
seonghobae wants to merge 2 commits into
developfrom
fix/postgres-smoke-read-state

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Remove the obsolete emails owner/date index from the production bootstrap
    path; the canonical model is email_records.
  • Make PostgreSQL smoke fixtures provide the non-null email_records.is_read
    state explicitly, matching the current migration/model contract.
  • Add a regression assertion and an Unreleased changelog entry.

This is a small prerequisite for the current PDF DOM upload follow-up (#1427):
it restores the full backend smoke gate without mixing unrelated product code
into that PR.

Verification

  • ruff check backend/scripts/bootstrap_db.py backend/tests/test_bootstrap_db.py backend/tests/test_data_api.py
  • git diff --check
  • PYTHONWARNINGS=error python -m pytest backend/tests -q
    (1833 passed, 2 skipped)
  • Focused bootstrap/data smoke tests (2 passed)

Risk and rollback

This changes only bootstrap index creation and test seed columns. The rollback
is a normal revert of this PR; no schema migration or irreversible operation is
introduced.


Open in Devin Review

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 25 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 75a2e7c2-99ea-4894-8a34-ef235304df54

📥 Commits

Reviewing files that changed from the base of the PR and between f3beb1c and 9012b10.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • backend/scripts/bootstrap_db.py
  • backend/tests/test_bootstrap_db.py
  • backend/tests/test_data_api.py

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

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae enabled auto-merge (squash) August 25, 2026 12:38

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

PR governance metadata gate is not ready for 9012b10d3d3b5ac9bfab5d57780cbbfce4fbf2cc:

  • Required check strix is FAILURE on the current head.

@seonghobae

Copy link
Copy Markdown
Contributor Author

The current-head strix failure is infrastructure-only: the job log records NVIDIA NIM HTTP 429 on all primary retries, then the fallback emitted provider warning/error evidence and direct OpenAI returned HTTP 404. No authoritative clean Strix report was produced. This is not a source failure in the bootstrap/test fixture diff; the PR remains on the protected normal path pending hosted gates and independent approval.

@seonghobae

seonghobae commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer exact-head validation

  • Repository: ContextualWisdomLab/naruon
  • Pull request: test(db): align PostgreSQL smoke fixtures with current schema #1468
  • Exact head SHA: 1da167de26b442be6961622f15bb36ae9374e6c4
  • Exact base SHA: e5e99b4e3bb081b92c602358878856536030e2ca
  • Local validation: the exact-head PostgreSQL smoke regression passed in the dedicated PR worktree; Ruff and git diff --check passed.
  • Hosted evidence: the current exact-head check rollup has no failed or pending check runs.
  • Current exact-head approvals: 0; the protected ruleset requires two qualifying approvals.
  • Current unresolved review threads: 0.
  • Decision: WAIT_AND_REMEDIATE for independent approvals; continue through the protected review/check path with no bypass or direct protected-branch write.

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.

1 participant