Skip to content

Conversation

@jayvdb
Copy link
Collaborator

@jayvdb jayvdb commented Nov 8, 2025

Workaround for #419

@jayvdb jayvdb changed the title Use cargo nextest Fix running all tests with cargo nextest Nov 9, 2025
@jayvdb
Copy link
Collaborator Author

jayvdb commented Nov 14, 2025

The error seen at this point, only on Windows at https://github.com/Electron100/butane/actions/runs/19286195451/job/55147496873?pr=420 is

cargo +stable nextest run --all-features
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
  env:
    CARGO_TERM_COLOR: always
    PQ_LIB_DIR: C:\Program Files\PostgreSQL\12\lib
    BUTANE_PG_CONNSTR: host=localhost user=postgres *** sslmode=disable port=5432
    CARGO_INCREMENTAL: 0
    CARGO_PROFILE_DEV_DEBUG: 0
    RUST_BACKTRACE: short
    RUSTFLAGS: -D warnings
    CARGO_UNSTABLE_SPARSE_REGISTRY: true
    CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
    CACHE_ON_FAILURE: true
   Compiling serde_core v1.0.228
   Compiling git2 v0.20.2
   Compiling phf_generator v0.13.1
   Compiling object v0.32.2
   Compiling phf_macros v0.13.1
   Compiling phf v0.13.1
   Compiling tracing-subscriber v0.3.20
   Compiling serde v1.0.228
   Compiling ar_archive_writer v0.2.0
   Compiling built v0.7.7
   Compiling chrono v0.4.42
   Compiling serde_json v1.0.145
   Compiling psm v0.1.28
   Compiling turso_core v0.3.0
   Compiling stacker v0.1.22
   Compiling uuid v1.18.1
   Compiling recursive v0.1.1
   Compiling sqlparser v0.59.0
   Compiling postgres-types v0.2.11
   Compiling turso_ext v0.3.0
   Compiling tokio-postgres v0.7.15
   Compiling fake v4.4.0
   Compiling rusqlite v0.37.0
   Compiling postgres-native-tls v0.5.2
   Compiling desynt v0.1.0
   Compiling url v2.5.7
   Compiling libsqlite3-sys v0.35.0
   Compiling serde_variant v0.1.3
   Compiling camino v1.2.1
   Compiling cargo-platform v0.3.1
   Compiling semver v1.0.27
   Compiling cargo_metadata v0.23.0
   Compiling butane_tests v0.8.1 (D:\a\butane\butane\butane\tests)
warning: butane_tests@0.8.1: Deleting .butane directory
   Compiling atomicwrites v0.4.4
   Compiling expectorate v1.2.0
   Compiling example v0.1.0 (D:\a\butane\butane\example)
   Compiling test-log v0.2.18
   Compiling serde_spanned v1.0.3
   Compiling toml_datetime v0.7.3
   Compiling bstr v1.12.1
   Compiling winapi-util v0.1.11
   Compiling toml v0.9.8
   Compiling assert_cmd v2.0.17
   Compiling termcolor v1.4.1
   Compiling trybuild v1.0.114
   Compiling butane_test_macros v0.8.1 (D:\a\butane\butane\butane_test_macros)
   Compiling turso v0.3.0
   Compiling butane_core v0.8.1 (D:\a\butane\butane\butane_core)
   Compiling butane_test_helper v0.8.1 (D:\a\butane\butane\butane_test_helper)
   Compiling butane_codegen v0.8.1 (D:\a\butane\butane\butane_codegen)
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX64\\x64\\link.exe" "/DEF:C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\rustcoGfUxF\\lib.def"
....
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: LINK : fatal error LNK1181: cannot open input file 'sqlite3.lib'␍

error: could not compile `butane_codegen` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: command `'C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe' test --no-run --message-format json-render-diagnostics --all-features` exited with code 101

This is typical of when sqlite feature has been enabled, but sqlite-bundled has not. This doesnt make a lot of sense to me because if building at the workspace level --all-features should be enabling sqlite-bundled also.
And if building only at the butane_codegen level , there is no sqlite deps:

butane_codegen % cargo tree --invert rusqlite
error: package ID specification `rusqlite` did not match any packages

@jayvdb jayvdb marked this pull request as ready for review November 15, 2025 01:39
@jayvdb jayvdb requested a review from Electron100 November 15, 2025 01:39
@jayvdb jayvdb merged commit 3e065ed into Electron100:master Nov 15, 2025
7 checks passed
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