Repository navigation
Group VCS source metadata in VcsUrl - #22645
Conversation
Merging this PR will improve performance by 7.78%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ |
Simulation | discover_workspace_from_all_members_with_excludes |
165.6 ms | 150.6 ms | +9.92% |
| ⚡ |
Simulation | discover_workspace_from_all_members |
151.5 ms | 143.4 ms | +5.69% |
Tip
Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.
Comparing zaniebot/direct-url-vcs-20261016 (a067513) with main (64e2ac8)2
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. ↩
-
No successful run was found on
zaniebot/direct-url-reader-20261016(2f16c64) during the generation of this report, somain(64e2ac8) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
`DirectUrl` stores URLs as strings, so debug formatting can expose passwords and signed query values, and persistence relies on callers removing sensitive userinfo. Store the fields as `SafeUrl<Stripped>` to mask passwords and recognized sensitive query values in debug output and remove sensitive userinfo during serialization. Retain complete query strings, including signed parameters, and a passwordless `git` username for `git+ssh` and `git+https` URLs. Parse VCS URLs with the prefix corresponding to their VCS kind, retaining the accepted inputs and normalization used when reconstructing installed metadata. Serialization omits the prefix from `direct_url.json`. Stacked on #22645. Co-authored-by: zaniebot <[email protected]>
DirectUrlstores a VCS repository URL and its metadata as separate fields, and both Git source conversions construct the same metadata. Group them inVcsUrland share the conversion fromGitUrl. Keep the serializeddirect_url.jsonshape and URL parsing behavior unchanged.Stacked on #22644.