Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

refactor: locking of tarball fetching#123

Merged
zkochan merged 4 commits into
mainfrom
refactor-locking
Sep 19, 2023
Merged

refactor: locking of tarball fetching#123
zkochan merged 4 commits into
mainfrom
refactor-locking

Conversation

@zkochan

@zkochan zkochan commented Sep 19, 2023

Copy link
Copy Markdown
Member

Using tokio's notify is a better approach than using a loop.

@codecov

codecov Bot commented Sep 19, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 87.50% and project coverage change: +0.68% 🎉

Comparison is base (cf9825b) 84.99% compared to head (bff6b3d) 85.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
+ Coverage   84.99%   85.68%   +0.68%     
==========================================
  Files          24       24              
  Lines        1393     1411      +18     
==========================================
+ Hits         1184     1209      +25     
+ Misses        209      202       -7     
Files Changed Coverage Δ
crates/tarball/src/lib.rs 90.24% <87.50%> (+8.33%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zkochan zkochan marked this pull request as draft September 19, 2023 20:22
@zkochan

zkochan commented Sep 19, 2023

Copy link
Copy Markdown
Member Author

Making it a draft as I don't think it works.

It works, the issue is that seems like pacquet doesn't currently work with circular dependencies.

@github-actions

github-actions Bot commented Sep 19, 2023

Copy link
Copy Markdown

Benchmark Results

Linux

group                          main                                   pr
-----                          ----                                   --
tarball/download_dependency    1.00      7.9±2.64ms   548.9 KB/sec    1.01      8.0±3.59ms   542.6 KB/sec

@zkochan zkochan marked this pull request as ready for review September 19, 2023 21:51
@zkochan zkochan merged commit ef60ea6 into main Sep 19, 2023
@zkochan zkochan deleted the refactor-locking branch September 19, 2023 23:50
zkochan added a commit that referenced this pull request May 12, 2026
The `// Item #14 will replace this …` / `// Item #15 in #397 …`
comments referenced specific items in the audit issue this PR
partially closes. Per `CLAUDE.md`:

  Don't reference the current task, fix, or callers ("used by X",
  "added for the Y flow", "handles the case from issue #123"), since
  those belong in the PR description and rot as the codebase evolves.

Replaced the substantive WHY (placeholder default until config is
plumbed) without naming the issue, and dropped the comments that
were just restating the field name. Same applies to the
`RunPostinstallHooks.unsafe_perm` doc comment.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants