Repository navigation
Bump opendal to 0.58.1 and fix fallout (fixes local GCS cache usage) - #2715
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2715 +/- ##
==========================================
+ Coverage 72.90% 73.35% +0.45%
==========================================
Files 72 72
Lines 37275 37411 +136
==========================================
+ Hits 27176 27444 +268
+ Misses 10099 9967 -132 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Not sure why CI is failing. I'd appreciate any pointers how I can try to reproduce those locally and debug. EDIT: Managed to reproduce the dist tests locally. |
|
Hm, the dist tests are running into this issue: seanmonstar/reqwest#2988 |
|
@sylvestre could you approve the CI run please. I think my latest commit has fixed the |
|
Blocked by apache/opendal#7701 and the following opendal release. |
|
@sylvestre With de7fa43 I'm patching the opendal dependency to my branch of apache/opendal#7701. This should make the CI of this PR pass. But to merge this PR, we'll have to wait until my opendal fix is released. This commit is just for me to check if there's anything else I need to fix after this. Could you approve the CI run one more time, please? Totally understandable if you don't want to approve this with such external changes included in the PR. Happy to wait until the opendal fix is through in that case. |
|
sure, done |
de7fa43 to
833205b
Compare
|
Converting to draft until there's a new opendal version released. |
|
@flip1995 apache/opendal#7701 was included in 0.58. |
|
Yes, but version 0.58.0 was yanked and I'm waiting for release 0.58.1: apache/opendal#7920 Don't worry, I'm subscribed to the opendal GH project for releases. So as soon as that lands, I will bump to 0.58.1 here (latest commit already contains all of the fallout work necessary for that) and finish up this PR 👍 |
833205b to
efbfc38
Compare
|
@sylvestre This is now ready for another CI run and a subsequent review. I rebased on latest master, re-organized the commits and updated the PR description to list out all the changes that were required by the dump. |
Merging this PR will improve performance by 12.15%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | time_macro_finder_chunked |
1,026.7 µs | 862.9 µs | +18.98% |
| ⚡ | Simulation | time_macro_finder_no_macros |
3 ms | 2.9 ms | +5.71% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing flip1995:gcs-reqsign-fix (ceb3620) with main (46e96ab)
Footnotes
-
6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
|
The Clippy commit is best reviewed with hiding whitespace changes. The Clippy fixes are probably necessary due to the MSRV bump. |
Xuanwo
left a comment
There was a problem hiding this comment.
Thank you for helping bump this!
|
please split this PR |
aaa58fd to
5e44d36
Compare
c4b3f2c to
1ac671e
Compare
|
I've split out the MSRV bump to #2793. I still kept the commit in this PR, but will remove it and rebase once the other PR is merged. I rebased on master to resolve the nvcc conflict and the last Windows Clippy finding should be fixed now as well. I also moved most of the Clippy fixes to #2793, as they are necessary due to the MSRV bump. |
- Required bump of reqwest to 0.13.0
- Rename and remove features deprecated in that release
- Remove direct `reqsign` dependency that was not used in the code
- Add new (optional) opendal-* dependencies that were split out of opendal
1ac671e to
160d965
Compare
|
PR is rebased, the 2 commits merged in #2793 removed 👍 Do you want me to look into the 4 perf regressions? I might need some guidance on where to start with that though. |
|
@codspeedbot fix this regression |
Looked into it — here's what I found and what I changed. Root causeThe regressions are not caused by the opendal/reqwest work. They come from the I confirmed this by isolating zstd in a standalone binary under callgrind: compressing identical input at level 3 costs ~6.8% more instructions with 1.5.7 (21.9M → 23.4M instructions for 2 MiB). The head flamegraphs also show two new 1.5.7 functions, Then I rebuilt the benchmarks on this branch with only the zstd stack downgraded to the
So 3 of the 4 are fully explained by the upstream library bump. The fixPinning zstd back didn't seem right, so I instead went after what the profile actually pointed at. In The reason: Measured locally, same machine and same lockfile, only this change:
Nothing regressed, and all four originally-flagged benchmarks now land below the Pushed as Summary
Was this response helpful? React with 👍 or 👎 to help us improve CodSpeedBot. |
Hm, if this is caused by a dep bump, I can revert the |
|
yeah, it would be great! thanks codspeed! |
- `HttpClientLayer` was removed and now has to be built from the `OperationContext` - `LoggingLayer` was moved to its own crate - `allow_anonymous` was deprecated in favor of `skip_signature` - Use `sha256` instead of `sha1`, as that is quasi-deprecated. I'm not sure if this is actually necessary. I think it fixed some issue in the tests? In any case, I think this is a good change - Check if `native_certs` are available when building a reqwest client, and if not set the TLS certs to an empty vector. With reqwest 0.13, the client would fail otherwise.
160d965 to
86fdb60
Compare
|
3892ea2 now only contains the minimal necessary |
This removes the bindgen dep that made the cross-compilation stages error out
|
|
|
is it ready now ? :) |
|
From my side, yes! |
|
@sylvestre Friendly ping, in case this fell under the radar |
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [mozilla/sccache](https://github.com/mozilla/sccache) | minor | `0.17.0` → `0.18.0` | --- ### Release Notes <details> <summary>mozilla/sccache (mozilla/sccache)</summary> ### [`v0.18.0`](https://github.com/mozilla/sccache/releases/tag/v0.18.0) [Compare Source](mozilla/sccache@v0.17.0...v0.18.0) ##### sccache 0.18.0 ##### Summary sccache 0.18.0 is a broad correctness and coverage release: a lot of compiler flags that used to force a cache miss are now understood, several cache-key and multi-level storage bugs are fixed, and the Azure backend gained passwordless authentication. Highlights: - **Cache-key correctness**: the assembler gcc/clang would actually invoke is now part of the cache key, so two toolchains with different binutils can no longer hand each other the wrong object file ([#​2843](mozilla/sccache#2843)). `SCCACHE_BASEDIRS` now also strips base directories from the compiler arguments, so flags like `-ffile-prefix-map=/home/user/project=.` stop tying an entry to one checkout ([#​2840](mozilla/sccache#2840)). - **MSVC/clang flag coverage**: support for `/openmp:llvm`, the `/fsanitize*`, `/fsanitize-coverage*` and `/fno-sanitize*` families, `/feature`, arm64EC and fastfail, `/d20bforceinline`, and a large batch of other flags ([#​2807](mozilla/sccache#2807), [#​2830](mozilla/sccache#2830), [#​2831](mozilla/sccache#2831), [#​2832](mozilla/sccache#2832)), plus more clang CLI options ([#​2834](mozilla/sccache#2834)). gcc now marks flags as `TooHard` when they would require caching something else ([#​2833](mozilla/sccache#2833)). - **CUDA**: `nvcc` dryrun parsing works with CUDA 13.3 ([#​2722](mozilla/sccache#2722)), escaped quotes in Windows dryrun lines are protected before backslash flattening ([#​2811](mozilla/sccache#2811)), and the `--diag-error`/`--diag-suppress`/`--diag-warn` family is accepted ([#​2816](mozilla/sccache#2816)). - **Multi-level cache**: a chain with any writable level is writable again — a single read-only level no longer makes the whole storage read-only ([#​2778](mozilla/sccache#2778)) — and reads are no longer issued twice ([#​2835](mozilla/sccache#2835)). - **Azure**: Microsoft Entra ID (passwordless) authentication for the Azure Blob backend, for storage accounts that disable shared-key access ([#​2802](mozilla/sccache#2802)). - **Distributed compilation**: rlibs are no longer trimmed from crates that also emit a cdylib, which made those jobs fail on the build server ([#​2839](mozilla/sccache#2839)). - **Process handling**: the jobserver is no longer handed to children that can't use it, which restores the `posix_spawn` fast path for child spawns ([#​2827](mozilla/sccache#2827)), and daemonization now uses an allow-list for inherited file descriptors, fixing `make` deadlocks caused by leaked jobserver FDs ([#​2841](mozilla/sccache#2841)). - **MSRV** is now 1.91.0 ([#​2793](mozilla/sccache#2793)). Welcome to 11 new contributors! ##### Features - feat: add Microsoft Entra ID (passwordless) auth for the Azure Blob backend by [@​babrekel](https://github.com/babrekel) in [#​2802](mozilla/sccache#2802) - gcc, clang: make the assembler part of the cache key by [@​glandium](https://github.com/glandium) in [#​2843](mozilla/sccache#2843) - Strip basedirs from the compiler arguments too by [@​avikivity](https://github.com/avikivity) in [#​2840](mozilla/sccache#2840) - cache: allow skipping capability checks by [@​Xuanwo](https://github.com/Xuanwo) in [#​2822](mozilla/sccache#2822) - Optimize child process spawns by skipping job server configs by [@​rnk](https://github.com/rnk) in [#​2827](mozilla/sccache#2827) ##### Compiler support - feat: add support for MSVC's /d20bforceinline. by [@​AJIOB](https://github.com/AJIOB) in [#​2807](mozilla/sccache#2807) - msvc: support arm64EC and fastfail flags by [@​AJIOB](https://github.com/AJIOB) in [#​2830](mozilla/sccache#2830) - msvc: backport flags support by [@​AJIOB](https://github.com/AJIOB) in [#​2831](mozilla/sccache#2831) - msvc: support lots of flags by [@​AJIOB](https://github.com/AJIOB) in [#​2832](mozilla/sccache#2832) - clang: support more CLI options by [@​AJIOB](https://github.com/AJIOB) in [#​2834](mozilla/sccache#2834) - gcc: mark flags as TooHard if need to cache something else by [@​AJIOB](https://github.com/AJIOB) in [#​2833](mozilla/sccache#2833) - nvcc: accept the --diag-error/--diag-suppress/--diag-warn family by [@​Kataglyphis](https://github.com/Kataglyphis) in [#​2816](mozilla/sccache#2816) ##### Fixes - Fix `nvcc` dryrun parsing for CUDA 13.3 by [@​mbrobbel](https://github.com/mbrobbel) in [#​2722](mozilla/sccache#2722) - nvcc (Windows): protect escaped quotes in dryrun lines before flattening backslashes by [@​Kataglyphis](https://github.com/Kataglyphis) in [#​2811](mozilla/sccache#2811) - multilevel: a chain with any writable level is writable by [@​tycho](https://github.com/tycho) in [#​2778](mozilla/sccache#2778) - cache: avoid duplicate multilevel reads by [@​zfaustk](https://github.com/zfaustk) in [#​2835](mozilla/sccache#2835) - Resolving always-false conditional making some compilers miss for preprocessor checks by [@​Joldiges](https://github.com/Joldiges) in [#​2824](mozilla/sccache#2824) - dist: refuse to trim rlibs from crates that also emit a cdylib by [@​gaetschwartz](https://github.com/gaetschwartz) in [#​2839](mozilla/sccache#2839) - daemonize: use an allow-list approach to inherited FDs by [@​schopin-mozilla](https://github.com/schopin-mozilla) in [#​2841](mozilla/sccache#2841) ##### Dependencies - Bump opendal to 0.58.1 and fix fallout (fixes local GCS cache usage) by [@​flip1995](https://github.com/flip1995) in [#​2715](mozilla/sccache#2715) - Update shlex dependency to version 2 by [@​musicinmybrain](https://github.com/musicinmybrain) in [#​2836](mozilla/sccache#2836) - Bump MSRV to 1.91.0 by [@​flip1995](https://github.com/flip1995) in [#​2793](mozilla/sccache#2793) ##### Tests & CI - Fixed hardcoded binary path in test by [@​ranger-ross](https://github.com/ranger-ross) in [#​2790](mozilla/sccache#2790) - ci: dump sccache logs on integration failures by [@​JalenBuildsHub](https://github.com/JalenBuildsHub) in [#​2851](mozilla/sccache#2851) - tests/integration: replace MinIO with Silo by [@​avikivity](https://github.com/avikivity) in [#​2853](mozilla/sccache#2853) ##### Cleanup - Add an agent file by [@​sylvestre](https://github.com/sylvestre) in [#​2812](mozilla/sccache#2812) - chore: fix typo in comment by [@​AJIOB](https://github.com/AJIOB) in [#​2829](mozilla/sccache#2829) - Release 0.18.0 by [@​sylvestre](https://github.com/sylvestre) in [#​2848](mozilla/sccache#2848) ##### New Contributors - [@​mbrobbel](https://github.com/mbrobbel) made their first contribution in [#​2722](mozilla/sccache#2722) - [@​flip1995](https://github.com/flip1995) made their first contribution in [#​2793](mozilla/sccache#2793) - [@​babrekel](https://github.com/babrekel) made their first contribution in [#​2802](mozilla/sccache#2802) - [@​Kataglyphis](https://github.com/Kataglyphis) made their first contribution in [#​2811](mozilla/sccache#2811) - [@​schopin-mozilla](https://github.com/schopin-mozilla) made their first contribution in [#​2841](mozilla/sccache#2841) - [@​Joldiges](https://github.com/Joldiges) made their first contribution in [#​2824](mozilla/sccache#2824) - [@​tycho](https://github.com/tycho) made their first contribution in [#​2778](mozilla/sccache#2778) - [@​JalenBuildsHub](https://github.com/JalenBuildsHub) made their first contribution in [#​2851](mozilla/sccache#2851) - [@​zfaustk](https://github.com/zfaustk) made their first contribution in [#​2835](mozilla/sccache#2835) - [@​gaetschwartz](https://github.com/gaetschwartz) made their first contribution in [#​2839](mozilla/sccache#2839) - [@​rnk](https://github.com/rnk) made their first contribution in [#​2827](mozilla/sccache#2827) **Full Changelog**: <mozilla/sccache@v0.17.0...v0.18.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC40LjUiLCJ1cGRhdGVkSW5WZXIiOiI0NC40LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> --------- Co-authored-by: Renovate Bot <[email protected]> Reviewed-on: https://gitea.endsy.me/op/red/pulls/30
Motivation
authorized_usercredential apache/opendal#6287The gcs cache can currently not be used with
authorized_userapplication-default credentials, as this was not supported inreqsignversion 0.16.5, whichopendalversion0.55.0depended on. This was fixed in a later version of reqsign and since has been updated inopendalWith this, the gcs cache should Just Work ™️ after a
gcloud auth application-default login.Changes
I split this PR into the following commits for easier commit-by-commit review:
Bump MSRV to 1.91.0
opendal 0.58.1 has an MSRV of 1.91.0, so sccache needs to match this in order to bump the opendal dependency.
Bump opendal to 0.58.1
reqsigndependency that was not used in the codeRun cargo update
I first did just a partial Cargo.lock update for only the dependencies that were bumped in this PR. But the churn was quite big when just doing that. So I figured why not do a full, clean
cargo updateof theCargo.lockfile.Fix fallout in code
HttpClientLayerwas removed and now has to be built from theOperationContextLoggingLayerwas moved to its own crateallow_anonymouswas deprecated in favor ofskip_signaturesha256instead ofsha1, as that is quasi-deprecated. I'm not sure if this is actually necessary. I think it fixed some issue in the tests? In any case, I think this is a good changenative_certsare available when building a reqwest client, and if not set the TLS certs to an empty vector. With reqwest 0.13, the client would fail otherwise.