Repository navigation
Conversation
Merging this PR will degrade performance by 13.01%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ |
Simulation | discover_workspace_from_all_members_with_excludes |
142.7 ms | 164.1 ms | -13.01% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zaniebot/safe-url-policies-20261014 (3dff9d7) with zaniebot/safe-url-rename-20261014 (f85db54)
Footnotes
-
35 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. ↩
560311a to
3440d01
Compare
3440d01 to
0a8c6e8
Compare
7475136 to
48a3f34
Compare
0a8c6e8 to
ee704db
Compare
48a3f34 to
f85db54
Compare
ee704db to
3b9c144
Compare
| self.inner().without_credentials().serialize(serializer) | ||
| self.inner().serialize(serializer) |
| /// Direct URL metadata whose URL has not yet been parsed. | ||
| #[derive(Deserialize)] | ||
| #[serde(transparent)] | ||
| // The unparsed URL may contain credentials, so this wrapper omits `Serialize` and `Debug`. | ||
| pub struct DirectUrlMetadata(DirectUrl<String>); |
There was a problem hiding this comment.
Hm, not sure why this exist, need to look into it
3b9c144 to
5656488
Compare
5656488 to
3dff9d7
Compare
|
Promoted to #22600. |
SafeUrlcurrently serializes the full URL, so fields can persist credentials without an explicit choice. Add a type-level policy that defaults toUnserializable;Strippedremoves sensitive userinfo while retaining the complete query, andRawserializes the full parsed URL.DisplayandDebugremain redacted. Index URLs inpylock.tomland publish URLs in tool receipts useStripped.This is an alternative to astral-sh#22356, astral-sh#22357, and astral-sh#22358, combined in #2712.
StrippedandRawfollow the same serialization rules asPersistSafeUrlandCredentialPersistingUrl. UsingSafeUrl<P>carries the policy throughVerbatimUrl, stored fields, and transformations such asjoin; shared implementations are generic over the policy. The inherentserializeandserialize_internalmethods prevent fallback throughDeref; the latter requiresRaw. The comparison stack also changes howDirectUrlmetadata is parsed and written; this PR retains its string fields and existing behavior.Stacked on #2721.