• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 27763394169
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5642-893960a6e9fae412eb0215afae05f1348e356e62
DEFAULT BRANCH: develop
Ran 18 Jun 2026 01:39PM UTC
Jobs 1
Files 227
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jun 2026 01:36PM UTC coverage: 64.947%. Remained the same
27763394169

push

github

web-flow
fix(cli): mount test file's directory so \ir includes resolve (#5619)

## What kind of change does this PR introduce?

Bug fix.

## What is the current behavior?

Running `supabase db test <single_file.sql>` fails when that file pulls
in a sibling via psql's `\ir ./other.sql` include:

```
psql:.../storage_object_operations.sql:5: error: .../testing_constants.sql: No such file or directory
```

Running the whole suite (`supabase db test`) works, and so does running
a file with no includes.

**Root cause:** `buildLegacyPgProveArgs` bind-mounted each test path
exactly as given. For a single **file** that mounts only that one file
into the pg_prove container. psql's `\ir` (include-relative) resolves
relative to the test file's *own directory*, so it looks for
`<dir>/sibling.sql` inside the container — which was never mounted. The
whole-suite run works because the entire `tests` **directory** is
mounted, so all siblings are present.

Closes #4850
Fixes CLI-1139

## What is the new behavior?

When a test path is a file, its **containing directory** is bind-mounted
read-only instead of the lone file, so `\ir`/`\i` siblings resolve.
Directories are still mounted as-is. Binds are deduped by container
target so multiple files in the same directory don't emit duplicate `-v`
mounts (which Docker rejects). The full file path is still passed to
`pg_prove`, so only the requested file runs and the TAP output is
byte-identical.

Scope is the TS legacy port only (the stable channel). The Go reference
has the same latent bug; this is a deliberate, output-preserving
divergence noted in the code.

10752 of 16555 relevant lines covered (64.95%)

7.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27763394169.1 18 Jun 2026 01:39PM UTC 227
64.95
GitHub Action Run
Source Files on build 27763394169
  • Tree
  • List 227
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27763394169
  • e09cf291 on github
  • Prev Build on gh-readonly-queue/develop/pr-5618-1d113d78ff23bd3a0141589f43f8d2cadd8f536a (#27758151612)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc