Repository navigation
build(deps): bump the compatible non-grammar dependencies - #357
Merged
Merged
Conversation
Take the patch-level and test-only updates from #345 that touch no grammar, scanner or watcher crate, one `cargo update -p <crate> --precise <version>` each: - anyhow 1.0.104 -> 1.0.105 - clap 4.6.7 -> 4.6.9 with clap_derive 4.6.9 (clap_builder stays at 4.6.7). clap_derive 4.6.9 requires proc-macro2 ^1.0.107, quote ^1.0.47 and syn ^3.0.10, so proc-macro2 1.0.107, quote 1.0.47 and syn 3.0.10 move with it. - clap_complete 4.6.11 -> 4.6.12 - self_update 1.3.1 -> 1.3.3 - regex 1.13.1 -> 1.13.2 with regex-automata 0.4.19 and regex-syntax 0.8.12 - rstest 0.28 -> 0.29 (the Cargo.toml requirement and rstest_macros 0.29.0; dev-dependency only) - tokio 1.53.3 -> 1.54.1 (tokio-macros stays at 2.7.0). 1.54 treats ENOTCONN as success in UnixStream::shutdown and starts accepted sockets as readable and writable, which the daemon's sockets use. On this lockfile every precise update also re-picks windows-sys (0.61.2 -> 0.52.0 or 0.60.2) for twelve unrelated crates: anstyle-query, anstyle-wincon, cap-fs-ext, cap-primitives, errno, nu-ansi-term, quinn-udp, rustix, rustls-platform-verifier, socket2, tempfile and winapi-util. Those edges were put back by hand, so only the packages listed above move. No tree-sitter*, ignore, globset, io-extras, windows-sys or windows-targets entry changes. regex 1.13.2 fixes the match offsets of alternations whose branches start with the same repetition (#1400) and an off-by-one in the reverse-inner full-DFA search (#1406). To show that neither moves the graph, the codegraph-extract and codegraph-resolve test suites ran against a logging copy of regex, and the 1439 patterns and 327774 distinct inputs they used were replayed under 1.13.1 and 1.13.2: every is_match, find, captures, shortest_match and iterator result is the same. Four patterns get a different HIR (nextjs.rs:402 and expo_router.rs:427, name_matcher.rs:1085 and :4774). In each, the repetition that regex-syntax 0.8.11 lifted out of the alternation is followed in every branch by something it cannot match, so it has one possible length and the four match the same on every input. Verification: cargo metadata --locked and cargo tree --locked -i for every bumped crate; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-rs --locked --test installer_jsonc --test completions --bin codegraph; scripts/regen-goldens.sh --check with this tree's codegraph and bench binaries: all 32 corpora identical.
The workspace requirement moves from "0.41" to "0.43" (a ^0.41 requirement cannot select 0.43.0), then `cargo update -p rusqlite --precise 0.43.0` takes rusqlite 0.41.1 -> 0.43.0 and libsqlite3-sys 0.39.1 -> 0.40.0. The only other moves are rusqlite's wasm32-only dependencies: sqlite-wasm-rs 0.5.5 -> 0.6.3, rsqlite-vfs 0.1.1 -> 0.2.0, and hashbrown 0.16.1, which only rsqlite-vfs 0.1.1 used, drops out. The C side does not change. Both libsqlite3-sys versions bundle SQLite 3.54.1 with the same SQLITE_SOURCE_ID (2026-10-16 14:45:20 555e07ef...), their sqlite3/ directories and build.rs are byte-identical, and a probe built on each reports the same sqlite_version() and sqlite_source_id(). The on-disk format, FTS5 and the compile options stay as they were. The one behavior change on the Rust side is that prepare, execute and query_row now return Error::Empty for empty or comment-only SQL. execute_batch still skips empty statements, so the migrations (migrations.rs:272) are unaffected: the probe gives Ok for empty, whitespace-only, comment-only, trailing-comment and ';;' batches on both versions. The store's other SQL is built with format! or comes from constants, and none of it can be empty. Verification: cargo metadata --locked; cargo tree --locked -i rusqlite and -i libsqlite3-sys (only 0.40.0); cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-store --locked; cargo test -p codegraph-rs --locked --test upgrade_from_v054 --test upgrade_from_v055 --test upgrade_from_schema_9 --test batch_m_outdated_migration --test future_schema_cli.
codegraph-resolve's requirement moves from "0.8.9" to "0.9.1" (a ^0.8.9 requirement cannot select 0.9.1). The lockfile gains miniz_oxide 0.9.1 for codegraph-resolve only; flate2 1.1.9 keeps miniz_oxide 0.8.9, so the binary carries both copies. `cargo update -p miniz_oxide --precise 0.9.1` also moved flate2 to 1.1.11 and zlib-rs to 0.6.9 so that both could share one copy. The new requirement does not need either move, so the lockfile kept is cargo's minimal resolution of it: one new package entry and two references qualified with their versions. The synthesis records' output rows (footprint.rs) are raw deflate at level 6 through compress_to_vec and decompress_to_vec_with_limit, and 0.9.1 keeps both signatures. The known-answer test passes with its constant unchanged, so 0.9.1 writes the same bytes as 0.8.9 for that input. Rows that another build wrote are not reused in any case: the build identity covers Cargo.lock, and records_another_build_left_are_not_trusted shows that a stage recomputed under a new build equals a fresh index. Verification: cargo metadata --locked; cargo tree --locked -i miniz_oxide@0.9.1 (codegraph-resolve only) and -i miniz_oxide@0.8.9 (flate2 only); cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test -p codegraph-resolve --locked footprint (8 passed, the_output_codec_gives_a_known_answer among them); cargo test -p codegraph-watch --locked records_another_build_left_are_not_trusted.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #357 +/- ##
==========================================
- Coverage 96.40% 96.40% -0.01%
==========================================
Files 368 368
Lines 254628 254628
==========================================
- Hits 245468 245463 -5
- Misses 9160 9165 +5 see 5 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Three commits from the #345 split, covering the updates that touch no grammar, scanner or watcher crate:
Cargo.tomlrequirement; dev-dependency only), and tokio 1.54.1 (tokio-macros stays at 2.7.0). clap_derive 4.6.9 requires proc-macro2 ^1.0.107, quote ^1.0.47 and syn ^3.0.10, so those three move with it."0.41"to"0.43". rusqlite's wasm32-only dependencies move with it (sqlite-wasm-rs 0.6.3, rsqlite-vfs 0.2.0), and hashbrown 0.16.1 drops out."0.8.9"to"0.9.1". flate2 1.1.9 keeps miniz_oxide 0.8.9, so the binary carries both copies.The graph, the schema, the extraction version, the public API and the protocols do not change. All 32 goldens are identical.
Lockfile
tree-sitter*,ignore,globset,io-extras,windows-sysorwindows-targetsentry moves, and no dependency edge between two unrelated packages changes.cargo update -p <crate> --precise <version>also re-pickedwindows-sys(0.61.2 → 0.52.0 or 0.60.2) for twelve unrelated crates: anstyle-query, anstyle-wincon, cap-fs-ext, cap-primitives, errno, nu-ansi-term, quinn-udp, rustix, rustls-platform-verifier, socket2, tempfile and winapi-util. Those edges were put back by hand. The result passescargo metadata --lockedandcargo tree --locked -i <crate>.cargo update -p miniz_oxide --precise 0.9.1also moved flate2 to 1.1.11 and zlib-rs to 0.6.9 so that both could share one copy. The new requirement needs neither move, so the lockfile keeps cargo's minimal resolution: one newminiz_oxide 0.9.1entry.regex 1.13.2 (D-4)
regex 1.13.2 fixes the match offsets of alternations whose branches start with the same repetition (#1400), and an off-by-one in the reverse-inner full-DFA search (#1406). Either fix could change a text rule's result without moving a golden, so the patterns were also checked directly:
dfa-buildanddfa-searchcome in through tracing-subscriber). Every result is the same on both versions:is_match,find,capturesandshortest_matchat the logged start,find_iterandcaptures_iterover the haystack, and the set matches. Neither version panics.nextjs.rs:402/expo_router.rs:427,name_matcher.rs:1085, andname_matcher.rs:4774(with two interpolated names). In each, the lifted repetition (\s+,[ \t]*,\s*) is followed in every branch by something it cannot match. The repetition therefore has only one possible length, and each pattern matches the same on every input.regex therefore stays in this patch and does not move to B.
rusqlite 0.43 (D-3)
sqlite3/sources (SQLite 3.54.1,SQLITE_SOURCE_ID2026-10-16 14:45:20 555e07ef…) and an identicalbuild.rs. A probe built on each version reports the samesqlite_version()andsqlite_source_id().execute_batchreturnsOkon both versions for empty, whitespace-only, comment-only, trailing-comment and;;batches. The only change isprepareandexecuteon empty or comment-only SQL, which now returnErr(Empty)instead of an empty statement orApiMisuse. The migrations go throughexecute_batch(migrations.rs:272). The store's other SQL is either built withformat!or a constant, and none of it can be empty.miniz_oxide 0.9.1 (D-3)
the_output_codec_gives_a_known_answerpasses with its constant unchanged, andfootprint.rsis not modified, so 0.9.1 deflates that input to the same bytes as 0.8.9.records_another_build_left_are_not_trustedstays green.tokio 1.54.1 and the A2 harness (D-5)
tokio 1.54 treats
ENOTCONNas success inUnixStream::shutdown(#8526) and starts accepted sockets as readable and writable (#8435). A2's post-fix harness was rerun on A2's code (d82e297;crates/codegraph-daemonis identical in the merged 9ff6295), with only the tokio lockfile entry moved to 1.54.1. The test binary and 8 busy loops (timeout --foreground 900) were pinned to CPUs 28–31.On the same tree,
cargo test -p codegraph-daemon --lockedpassed 186 tests. No busy loop was left over afterwards.Verification (head d1cd029, before the rebase)
The branch was then rebased onto main 521ab58 (A2, A8 and #342 had landed) without conflicts; the head is 2726556. On it
cargo metadata --lockedpasses and the lockfile guard against main reports only the packages listed above.cargo fmt --all --checkcargo clippy --workspace --all-targets --locked -- -D warnings, on each commit and on the headcargo test -p codegraph-store --locked: 318 passedcargo test -p codegraph-rs --locked --test upgrade_from_v054 --test upgrade_from_v055 --test upgrade_from_schema_9 --test batch_m_outdated_migration --test future_schema_cli --test installer_jsonc --test completions: 83 passedcargo test -p codegraph-resolve --locked footprint: 8 passedcargo test -p codegraph-watch --locked records_another_build_left_are_not_trusted: passedcargo test -p codegraph-bench --test equivalence --locked: 71 passedcargo build --release --locked -p codegraph-rs -p codegraph-bench, thenscripts/regen-goldens.sh --checkwithCODEGRAPH_BINandBENCH_BINpointing at those binaries (sha256fa33e299…,21cb94d0…): all 32 corpora identicalThe pre-push
make pre-cipassed on 2726556. Still to run: CI. Windows Tests matter most here, because locally onlycargo metadata --lockedchecks the restoredwindows-sysedges.