Skip to content

Download: do not modify the caller's options record - #102

Merged
fingolfin merged 1 commit into
masterfrom
mh/download-copy-opt
Aug 16, 2026
Merged

Download: do not modify the caller's options record#102
fingolfin merged 1 commit into
masterfrom
mh/download-copy-opt

Conversation

@fingolfin

@fingolfin fingolfin commented Aug 11, 2026

Copy link
Copy Markdown
Member

Download fills in the defaults for verifyCert and maxTime by writing into the record the caller passed, so a record reused across calls keeps the first call's settings.

Let's not do that.

Written with Claude Opus 5 via Claude Code.

Filling in the defaults for 'verifyCert' and 'maxTime' wrote into the record
the caller passed in, so a record reused across several calls kept the
settings from the first one.

Only visible when the preferences differ from their defaults -- with the
shipped values neither branch is taken -- which is why the test sets
DownloadMaxTime first.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.30%. Comparing base (a4c23a8) to head (cb248cc).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   86.24%   86.30%   +0.05%     
==========================================
  Files          32       32              
  Lines        1905     1906       +1     
==========================================
+ Hits         1643     1645       +2     
+ Misses        262      261       -1     
Files with missing lines Coverage Δ
lib/download.gi 93.53% <100.00%> (+0.53%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ThomasBreuer ThomasBreuer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@fingolfin
fingolfin requested a review from cdwensley August 16, 2026 00:03
@cdwensley

Copy link
Copy Markdown
Collaborator

As I have no idea what these four PRs are doing, @fingolfin cannot really be requesting a review by me, so I am inclined to think this is a request to merge all four, which I will do this afternoon if there are no further instructions.

@fingolfin

Copy link
Copy Markdown
Member Author

@cdwensley thank you. But upon reflection let me double check each of those again

@fingolfin
fingolfin marked this pull request as draft August 16, 2026 10:38
@fingolfin

Copy link
Copy Markdown
Member Author

Last week I was a conference and went a bit overboard with allowing my AI to open PRs without me double checking everything. That was a mistake and I apologize if I wasted anyone's time by having them stare at slop. (The "reviewed by me" was inserted by the AI without consulting with me -- but I should have caught it. Argh).

Anyway: I've marked this PR as "draft" for now, please don't merge it -- I'll carefully review and edit it, and will mark it as "ready for review" once I am satisfied. Don't waste your time on it for now (that said, of course you are welcome to leave feedback, but don't feel obliged to).

@fingolfin
fingolfin marked this pull request as ready for review August 16, 2026 14:08
@fingolfin
fingolfin merged commit b7d9593 into master Aug 16, 2026
5 checks passed
@fingolfin
fingolfin deleted the mh/download-copy-opt branch August 16, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants