Skip to content

Require absolute paths for test SQLite configuration - #34411

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/93585b9aea805e2449b3465ac20eeb39417ed555
Jul 20, 2026
Merged

Require absolute paths for test SQLite configuration#34411
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/93585b9aea805e2449b3465ac20eeb39417ed555

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Require absolute paths for test SQLite configuration

Why

SqliteConfig stores its home as an AbsolutePathBuf, but its test constructor
previously accepted a PathBuf and checked the absolute-path invariant at
runtime.

What changed

  • Make SqliteConfig::new_for_testing accept an AbsolutePathBuf directly,
    removing its fallible conversion and expect.
  • Update SQLite test setup to convert temporary directory paths with
    PathExt::abs at each call site.

## Why

`SqliteConfig` stores its home as an `AbsolutePathBuf`, but its test constructor
previously accepted a `PathBuf` and checked the absolute-path invariant at
runtime.

## What changed

- Make `SqliteConfig::new_for_testing` accept an `AbsolutePathBuf` directly,
  removing its fallible conversion and `expect`.
- Update SQLite test setup to convert temporary directory paths with
  `PathExt::abs` at each call site.

GitOrigin-RevId: 93585b9aea805e2449b3465ac20eeb39417ed555
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/93585b9aea805e2449b3465ac20eeb39417ed555 branch from 7c89141 to 81e89fa Compare July 20, 2026 20:55
@copyberry
copyberry Bot merged commit 81e89fa into main Jul 20, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/93585b9aea805e2449b3465ac20eeb39417ed555 branch July 20, 2026 20:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants