ci: modernize Actions, add cargo-deny gate, clear baseline lints - #440
Open
MattJackson wants to merge 5 commits into
Open
ci: modernize Actions, add cargo-deny gate, clear baseline lints#440MattJackson wants to merge 5 commits into
MattJackson wants to merge 5 commits into
Conversation
This was referenced Sep 2, 2026
Closed
MattJackson
force-pushed
the
stack/s2
branch
from
September 2, 2026 19:34
96006ab to
94d9548
Compare
MattJackson
force-pushed
the
stack/s2
branch
3 times, most recently
from
September 2, 2026 23:54
453bf96 to
b632e69
Compare
Two tests written before #[test_on_runtimes] existed and never updated. cyrillic_collations_should_work previously created a dedicated database with a Cyrillic default collation, requiring an admin connection and DROP DATABASE at teardown. The DROP raced against open connections on macOS/rustls CI, causing flaky failures. Replace with a session-local temp table using column-level COLLATE clauses. The code path under test (COLMETADATA collation -> encoding_rs decode) is identical. application_name_should_be_set_correctly needed the application name set before connecting. Add APP_NAME_CONN_STR embedding it in the connection string so the macro-generated harness connects with it set. (cherry picked from commit 6247684)
- Add deny.toml: fails on any vulnerability/yanked crate in the built graph; documents justified ignores for advisories that are provably dev-dependency-only or reachable solely via the opt-in sql-browser-async-std feature (not part of the default shipped lib). - Replace the broken prisma-org PR Code Security workflow (which fails at startup on the fork) with a self-contained Security audit workflow that runs cargo-deny on push/PR and weekly. - Bump dev-deps env_logger 0.9->0.11 and indicatif 0.17->0.18, dropping the unmaintained atty/number_prefix transitives from the test graph. cargo deny check advisories bans sources: advisories ok, bans ok, sources ok. (cherry picked from commit 1ce85b7)
Direct fixes for long-standing reported issues (regression tests added, 128 lib tests pass): - #211: bounds-check usize column index (try_get returns Err, not panic) - #382: match raw-identifier column names (r#type -> SQL 'type') - #418: correct swapped old/new in EnvChange Display (Database, PacketSize) - #281: lower chatty per-connection/token logs from INFO to DEBUG - #263: convert SQL smallint (I16/Intn) into i32 via FromSql - #424/#425: return Error instead of panicking on unexpected server input in the TDS decoder (incl. negotiated_encryption) - #305: error at connect time when encryption is required but no TLS feature is compiled in - #316: fix multiply-overflow panic decoding dates before 1900 - #358/#352: coerce numerics into Money/SmallMoney and strings into NText/Text columns during bulk insert - #348: send the ReadOnly intent flag in LOGIN7 when ApplicationIntent=ReadOnly (cherry picked from commit 34e5e55)
- Resolve 20 pre-existing clippy lints under `cargo clippy --features=all -- -D warnings` (legacy numeric methods/constants, unused/elidable lifetimes, redundant closure, doc list indentation, format specifier, derivable Default via #[default]); narrow justified #[allow] for the uint_enum! cast and the tds::time module inception. - rustfmt the files touched by the backlog fixes. dev green gate: fmt --check clean, build ok, clippy -D warnings ok, cargo-deny ok, 128 lib tests pass. (cherry picked from commit edda463)
The linux test lane started SQL Server and ran the suite without waiting for it to accept logins — SQL binds 1433 before the SA login/databases finish initializing, so tests raced startup and failed sporadically (scattered across DB versions and feature sets, the signature of a race). Gate on an authenticated SELECT 1 from a throwaway mssql-tools container, which works uniformly across the full server images and azure-sql-edge.
MattJackson
force-pushed
the
stack/s2
branch
from
September 3, 2026 00:01
b632e69 to
40a1944
Compare
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.
CI modernization and supply-chain hardening, plus a batch of baseline correctness/lint fixes.
#[test_on_runtimes](@jakewimmer).cargo-denysupply-chain gate; modernize dev-dependencies.runtimes-macromanual_unwrap_or_defaultlint under rust ≥1.98).Supersedes #389 — cache-action update; our workflow already uses a newer action.
Part of a sequential series — please merge in order after #432 (security). This PR is based on
main, so until #432 merges its diff also shows #432's 2 commits; once #432 lands, this reduces to its own 5 commits.Reviewer note: please rebase-merge or merge-commit, not squash to preserve @jakewimmer's authorship.