Skip to content

Nightly test fails on hosts without /usr/local/bin/node; an older image on a newer database dies with "migration directory is corrupt" #3620

Closed

Description

@integry

Problem

  1. The nightly suite has failed three nights in a row (2026-11-14 to 2026-11-16) on one test: packages/core/test/extensionPackageServers.test.ts, "a matching run launches the package through the stdio bridge for Claude and Codex; …", error No reply to initialize. The bridge config's executable is /usr/local/bin/node (correct inside the agent image, packages/core/src/extensions/packageLaunch.ts). The test helper bridgeSession() rewrites config.args[0] for running outside a container but leaves executable, so scripts/extension-stdio-bridge.mjs exits at realpath(config.executable) on any host where /usr/local/bin/node does not exist (the self-hosted nightly runner, developer machines). It reproduces locally every time.
  2. Starting an older ProPR image on a database that a newer version migrated stops with knex's message The migration directory is corrupt, the following files are missing: 20261111000000_add_reasoning_level_columns.js, … and the container restarts in a loop. This took the public demo down for a day (its pinned 0.9.1 image received a database copied from an instance running newer code). The message suggests file corruption; the real cause is a version mismatch.
  3. In demo mode the web UI requests administrator-only endpoints and logs 403 errors in the browser console on Dashboard, Analytics, Coding agents, LLM Log, Settings and New automation: /api/config/agent-tank/detect, /status, /history, /api/config/agent-tank, /api/instance/extensions/v1, /api/agent-runtime/packages, /api/config/visual-preview-auth, /api/config/preview-storage.

Expected / acceptance criteria

  • 1: the test sets the bridge executable to process.execPath when it runs the bridge outside a container, and passes on a host without /usr/local/bin/node. Check the other tests that spawn the bridge for the same assumption.
  • 2: before running migrations, when the database lists applied migrations that this version does not ship, the process logs and exits with: This database was migrated by a newer ProPR version (N newer migrations, latest: <name>). Start that version or newer, or restore a backup taken before the upgrade. No stack trace. Covered by a test.
  • 3: in demo mode the UI does not request endpoints the demo viewer may not read (or the API answers them with an empty read-only result); no 4xx console errors on those pages in a demo-mode browser test.

Implementation

1: packages/core/test/extensionPackageServers.test.ts. 2: packages/core/src/db/migrationGate.ts / connection.ts (compare knex_migrations names with the migration directory listing before migrate.latest()). 3: gate the queries in the UI on the demo-mode flag from /api/auth/demo-mode, or add the read routes to the demo viewer allow-list in packages/api/demoViewerRoutes.ts where they expose nothing sensitive.

Notes

ProPR runs on SQLite only: do not add code or tests for other databases. Do not make an older version run on a newer schema; only improve the message.

Activity

  1. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3620/claude-opus-5-5-nightly-test-fails-on-hos-20261117-0305-q6v
    • Base Branch: 3616-epic-0-9-d8b
    • Worktree: issue-3620-20261117-0305-claude-opus-5-5-q6v

    🔍 Track Task Execution

  2. added a commit that references this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions