Skip to content

Fix checks job failure by ensuring papers table is present in test DB path - #1

Closed
CodeWithMoin with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-failing-github-actions-job-checks
Closed

Fix checks job failure by ensuring papers table is present in test DB path#1
CodeWithMoin with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-failing-github-actions-job-checks

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown

The checks workflow failed in paper/session tests because queries against papers executed before the table existed in CI. This PR aligns the DB initialization path so the papers schema is consistently created before ingest/session flows run.

  • Root cause

    • CI test execution reached paper ingest/session code with a DB state missing papers, causing UndefinedTable and cascading assertion failures.
  • Schema/bootstrap alignment

    • Updated the database initialization/migration path used in tests so papers is created in the same startup path CI exercises.
    • Removed the mismatch where some test flows depended on runtime access to papers without guaranteeing table creation first.
  • Paper/session flow stability

    • Kept behavior unchanged for existing paper/session logic; the fix is scoped to ensuring required schema availability at execution time.
-- representative schema guard introduced in init/migration path
CREATE TABLE IF NOT EXISTS papers (
  id UUID PRIMARY KEY,
  source TEXT NOT NULL,
  external_id TEXT NOT NULL,
  title TEXT,
  ...
);

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

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

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: 79a2c694-7624-46d2-bd31-cae8fa25473d

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

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

Copilot AI changed the title [WIP] Fix failing GitHub Actions job checks Fix checks job failure by ensuring papers table is present in test DB path Aug 4, 2026
Copilot AI requested a review from CodeWithMoin August 4, 2026 13:27
@CodeWithMoin
CodeWithMoin deleted the copilot/fix-failing-github-actions-job-checks branch August 4, 2026 20:15
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.

2 participants