Repository navigation
Repin rui314/setup-mold to the current v1 and update rustls - #1248
Merged
Merged
Conversation
The v1 tag of rui314/setup-mold moved to 339e96b4, which only changes the default mold-version; every call site passes mold-version explicitly. Update rustls to 0.23.46 for RUSTSEC-2026-0346, -0347, -0348, and -0349, and chacha20 to 0.10.2 since 0.10.0 is yanked.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
epompeii
marked this pull request as ready for review
October 16, 2026 01:41
Contributor
|
| Project | Bencher |
| Branch | u/ep/online-lints |
| Testbed | intel-v1 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 5.10 µs(-2.51%)Baseline: 5.23 µs | 5.46 µs (93.36%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 4.92 µs(-2.29%)Baseline: 5.04 µs | 5.23 µs (94.18%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 24.20 µs(-8.78%)Baseline: 26.53 µs | 32.24 µs (75.06%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 4.46 µs(-4.22%)Baseline: 4.65 µs | 5.15 µs (86.63%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 4.45 µs(-4.32%)Baseline: 4.65 µs | 5.14 µs (86.62%) |
epompeii
added a commit
that referenced
this pull request
Oct 16, 2026
## Problem `Lint / Cargo Deny Advisories` fails on `devel` (run https://github.com/bencherdev/bencher/actions/runs/38831217036) with, among others, RUSTSEC-2024-0449: `unsafe-libyaml` is unmaintained. It reaches the tree only through `serde_yaml`, which is itself deprecated (`0.9.34+deprecated`). The only use of `serde_yaml` is one `serde_yaml::to_string` in `JsonDisasterRecovery::into_yaml`, which serializes the generated Litestream config. The API writes that string to `/etc/litestream.yml` (`etc/litestream.yml` in debug builds) and passes it to `litestream restore` and `litestream replicate` with `-config <path> -no-expand-env`. ## Change - The Litestream config is serialized with `serde_json::to_string_pretty` and written to the same path. Litestream reads its config with `gopkg.in/yaml.v2` (v2.4.0 in `go.mod` at both `v0.5.16` and `v0.5.17`), which reads JSON documents, so the file name and both Litestream invocations stay as they are. The struct shapes, `kebab-case` renames, and `skip_serializing_if` attributes are unchanged, so the parsed config is identical with one exception. `serde_json` writes U+007F to U+009F, U+FFFE, and U+FFFF unescaped where `serde_yaml` escaped them, and yaml.v2, a YAML 1.1 parser, rejects all of them except U+0085, which it reads as a space. A config value containing one of those characters now makes Litestream refuse to start, or for U+0085 changes the parsed value. Paths, bucket names, endpoints, and S3 credentials are ASCII in practice. - Names that said YAML now say what they are: `JsonDisasterRecovery::into_litestream_config`, `LitestreamError::Serialize` (now carrying `serde_json::Error`), `LitestreamError::WriteConfig`, and the four `into_litestream_config*` tests, which now assert the emitted JSON. - `serde_yaml` is removed from the workspace, `bencher_json` (including the `db` feature), and `bencher_api`, which takes `serde_json` in its place. `Cargo.lock` drops `serde_yaml` and `unsafe-libyaml`. ## Verification - `cargo clippy --locked -p bencher_json -p bencher_api --all-features --all-targets -- -D warnings`: clean. - `cargo nextest run --locked -p bencher_json --all-features`: 229 passed. - `cargo deny --locked check advisories`: RUSTSEC-2024-0449 is gone. The four rustls advisories (RUSTSEC-2026-0346 to -0349) were fixed by #1248, which this branch is rebased on. - Parse equivalence: one fully populated config (S3 replica with `path`, `endpoint`, `region`, `sync_interval`; `snapshot` with `interval` and `retention`; `validation`; `checkpoint` with all three fields) rendered by `devel` as YAML and by this branch as JSON. Both load to the same document, `litestream databases -config <file> -no-expand-env` lists the same database and replica on 0.5.16 and 0.5.17, and `litestream replicate` logs the same parsed settings for both: ``` msg="replicating to" type=s3 sync-interval=1s bucket=gate-bucket path=<prefix> region=us-east-1 endpoint=http://127.0.0.1:9000 msg="starting validation monitor" system=store interval=6h0m0s msg="starting compaction monitor" system=store level=9 interval=1h0m0s ``` - Edge values: a secret and an S3 path made of a double quote, a backslash, `$HOME`, `: `, leading and trailing spaces, and `é` parse identically from the `devel` YAML and this branch's JSON on both Litestream versions, authenticate against MinIO, and round trip; `$HOME` is not expanded. The exception above came from feeding U+007F, U+0080, U+0085, U+0090, U+009F, U+FFFE, and U+FFFF through Litestream's own config reader at both versions. - Boot round trip: a debug `api` build with `plus`, its `plus.disaster_recovery` replicating to a local MinIO container with the fully populated S3 settings above. On first boot the API writes the JSON config, `litestream restore` exits 0 (`no matching backups found`), and `litestream replicate` uploads LTX files to the bucket. A signup through `POST /v0/auth/signup` then replicates; after stopping the API and deleting the whole data directory, the next boot's `litestream restore` recreates the database from MinIO with the same user row (same UUID) and no migrations to run. The same round trip passes with the `file` replica scheme, and both pass on Litestream 0.5.16 (what `devel` ships) and 0.5.17. CI on this pull request is the final check.
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.
Problem
The
develpush atbadbfa6a(run https://github.com/bencherdev/bencher/actions/runs/38831217036) fails two lint jobs. Both arecontinue-on-error: true, so neither blocks a merge, but both are red on every pull request.Lint / Zizmor Onlineexits 13 with 14 mediumref-version-mismatchfindings, one for everyrui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1pin. Upstream'sv1tag moved to339e96b4ff1f3bd865856ba4cbbe8818a7acb038.Lint / Cargo Deny Advisoriesfails on fourrustls0.23.45 advisories andunsafe-libyamlbeing unmaintained, and warns thatchacha200.10.0 is yanked.Change
rui314/setup-moldsites to the commitv1points at today and keep the# v1comment:.github/actions/setup-rust/action.yml(1),cli.yml(1),deploy.yml(3),lint.yml(1),release.yml(2),test.yml(5), andupdate_sandbox.yml(1). The hash was resolved from the GitHub refs API (v1is a lightweight tag on that commit).rustls0.23.45 to 0.23.46 andchacha200.10.0 to 0.10.2 inCargo.lockwithcargo update -p rustls --precise 0.23.46andcargo update -p chacha20. No other package moves.Upstream range
10ca16bf...339e96b4is one commit, "Update default version to 3.0.0", which changes themold-versioninput default inaction.ymlfrom2.42.1to3.0.0. Every call site passesmold-versionexplicitly:update_sandbox.ymlpasses"2.34.1", and the rest pass${{ inputs.mold-version }}from a reusable workflow or thesetup-rustaction whosemold-versioninput is required, whichci.ymlsets to"2.34.1"at every call. The new default is never read, so CI still installs mold 2.34.1.Advisories
Debugimpls for client session values expose TLS secrets.All four are fixed in
rustls0.23.46.chacha200.10.0 (viarand0.10.1) is yanked, as is 0.10.1; 0.10.2 is current. RUSTSEC-2024-0449 (unsafe-libyamlunmaintained) is handled separately by removingserde_yaml.Verification
zizmor 1.25.2, the version CI pins, from the digest-pinned image
zizmor-actionruns (ghcr.io/zizmorcore/zizmor@sha256:14ea7f5c...), with--persona=regular --format=github, plus--no-online-auditsfor the offline job:develref-version-mismatchfindingscargo-deny 0.19.5, the version
cargo-deny-actionv2.0.18 bundles,cargo deny --locked check advisories:develrustls0.23.45), RUSTSEC-2024-0449 (unsafe-libyaml), yankedchacha200.10.0unsafe-libyaml) onlycargo deny --locked check bans licenses sourcespasses on this branch, andcargo check --workspace --all-targets --lockedpasses.CI on this pull request is the final check.