Repository navigation
Conversation
210cf5c to
787a7d8
Compare
92b6201 to
fb81882
Compare
787a7d8 to
8fb2e72
Compare
fb81882 to
e3f3db9
Compare
8fb2e72 to
43c35c6
Compare
e3f3db9 to
abf3403
Compare
Merging this PR will degrade performance by 0.38%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | WallTime | git_fetch_cold_precise[sampleproject] |
36.3 ms | 38.5 ms | -5.78% |
| ⚡ |
Simulation | discover_workspace_from_all_members |
156 ms | 148.1 ms | +5.32% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zsol/url-persistence-03-explicit (5804a91) with zsol/url-persistence-02-credentials (a6dd1b4)
Footnotes
-
54 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. ↩
43c35c6 to
5c6644b
Compare
abf3403 to
5be0993
Compare
5c6644b to
0cdd712
Compare
5be0993 to
604a907
Compare
0cdd712 to
da4ecd7
Compare
604a907 to
cdadff3
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
da4ecd7 to
a6dd1b4
Compare
cdadff3 to
5804a91
Compare
`SafeUrl` currently serializes the full URL, so fields can persist credentials without an explicit choice. Add a type-level policy that defaults to `Unserializable`; `Stripped` removes sensitive userinfo while retaining the complete query, and `Raw` serializes the full parsed URL. `Display` and `Debug` continue to redact passwords and recognized sensitive query parameters. Index URLs in `pylock.toml` and publish URLs in tool receipts use `Stripped`. The inherent `serialize` and `serialize_internal` methods prevent those method calls from falling through `Deref` to `Url`. Ordinary Serde serialization of `SafeUrl` requires `Stripped` or `Raw`; the internal serialization method requires `Raw`. The serialization policies are an alternative to the wrapper types in #22356, #22357, and #22358, combined in astral-sh#2712 for comparison. `Stripped` and `Raw` follow the same serialization rules as `PersistSafeUrl` and `CredentialPersistingUrl`. Using `SafeUrl<P>` carries the policy through `VerbatimUrl`, stored fields, and transformations such as `join`; shared implementations are generic over the policy. The aforementioned stack also changes how `DirectUrl` metadata is parsed and written; those changes are outside this PR's scope. See also #22600 (comment) Stacked on #22599. Co-authored-by: zaniebot <[email protected]>
DisplaySafeUrlandVerbatimUrlcurrently implementSerialize, so callers can persist a URL without choosing how to handle credentials.Remove those implementations and require callers to choose
PersistSafeUrlorCredentialPersistingUrl. UsePersistSafeUrlfor publish URLs and registry index fields.This changes serialized output in two places:
pylock.tomlnow preserve complete query strings, including signed parameters, while omitting sensitive userinfo. They previously passed through display formatting, which redacted credential-like query parameters.The generated schema reflects the updated publish URL type and documentation.
Stacked on #22357.