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

cameri / nostream / 43803240174
78%
main: 78%

Build:
Build:
LAST BUILD BRANCH: chore/issue-templates
DEFAULT BRANCH: main
Ran 16 Nov 2026 04:21AM UTC
Jobs 2
Files 321
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

16 Nov 2026 04:17AM UTC coverage: 77.582% (-0.006%) from 77.588%
43803240174

push

github

web-flow
refactor(cli): make the whole migrate module Unix-only (#1153)

## Description

`#1148` gated `run` and every helper it could reach individually. Rust
still type-checks a function nothing on the platform can call, so the
Windows job it added then failed on eleven dead-code errors —
`PostgresBackend` in the imports, `records_progress`, `describe_source`,
`is_url_with_host`, `without_credentials`, `probe_budget`, `no_store`,
`store_present`, `check_resume_store`, `open_target`,
`open_existing_target` — all reachable only from the `#[cfg(unix)]
run()`.

This takes the shape the issue asked for instead of more attributes:

- `crates/nostream-cli/src/commands/mod.rs` — `#[cfg(unix)] pub mod
migrate;` and, on the other platform, `#[cfg(not(unix))] #[path =
"migrate_unsupported.rs"] pub mod migrate;`
- `crates/nostream-cli/src/commands/migrate_unsupported.rs` — the same
`MigrateOptions` and a `run` that writes `migrate pg-to-lmdb is
unsupported on this platform` and answers exit code 1.
- `main.rs` needs no `cfg` arm: both modules answer the same names.

`migrate.rs` keeps its internal gates (they are inert inside a Unix-only
module) and loses the now-duplicate `#[cfg(not(unix))] run`.

## Related Issue

Closes #1121

## How Has This Been Tested?

The non-Unix arm is compiled on Linux by swapping the two module
attributes in a scratch copy, which is exactly the configuration the
Windows runner builds:

```
cargo clippy -p nostream-cli --no-default-features --lib --bins -- -D warnings   # clean
cargo fmt --all --check                                                        # clean
cargo build -p nostream-cli --no-default-features                              # clean
cargo test -p nostream-cli --lib --no-default-features                         # 8 passed
cargo test -p nostream-cli --test migrate_cli --no-default-features            # 42 passed
cargo clippy -p nostream-cli --no-default-features --all-targets -- -D warnings # clean
```

The `windows-latest` job ... (continued)

4502 of 6342 branches covered (70.99%)

Branch coverage included in aggregate %.

9791 of 12081 relevant lines covered (81.04%)

759.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
81.82
-3.03% src/utils/relay-probe/dns-probe.ts
Jobs
ID Job ID Ran Files Coverage
1 Integration - 43803240174.1 16 Nov 2026 04:21AM UTC 321
32.99
GitHub Action Run
2 Unit - 43803240174.2 16 Nov 2026 04:22AM UTC 321
75.03
GitHub Action Run
Source Files on build 43803240174
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43803240174
  • 0f202f1a on github
  • Prev Build on rewrite/main (#43802011728)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc