Skip to content

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Aug 28, 2025

Ensure each goroutine captures its own index/value in ParSliceErrCollect, and rename variables for clearer intent. Avoids closure capture bug and makes concurrency guards explicit.

@coveralls
Copy link

coveralls commented Aug 28, 2025

Pull Request Test Coverage Report for Build 17325825267

Details

  • 27 of 29 (93.1%) changed or added relevant lines in 1 file are covered.
  • 37 unchanged lines in 10 files lost coverage.
  • Overall coverage increased (+8.0%) to 56.655%

Changes Missing Coverage Covered Lines Changed/Added Lines %
fn/concurrency.go 27 29 93.1%
Files with Coverage Reduction New Missed Lines %
fn/context_guard.go 1 91.94%
tapdb/addrs.go 2 78.23%
tapgarden/custodian.go 2 77.57%
itest/multisig.go 3 97.91%
proof/verifier.go 3 86.82%
tapdb/assets_store.go 3 79.29%
mssmt/compacted_tree.go 4 78.99%
universe/syncer.go 4 82.3%
itest/assertions.go 6 88.93%
universe/archive.go 9 79.11%
Totals Coverage Status
Change from base Build 17301129198: 8.0%
Covered Lines: 61007
Relevant Lines: 107682

💛 - Coveralls

@ffranr ffranr moved this from 🆕 New to 👀 In review in Taproot-Assets Project Board Aug 29, 2025
Copy link
Member

@jtobin jtobin left a comment

Choose a reason for hiding this comment

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

Changes look good, but worth checking on the underlying behaviour of ParSliceErrCollect per my comment/question.

@ffranr ffranr force-pushed the parslice-capture-naming branch from da6a600 to 4452a12 Compare August 29, 2025 13:48
Ensure each goroutine captures its own index/value in
ParSliceErrCollect, and rename variables for clearer intent. Avoids
closure capture bug and makes concurrency guards explicit.

Add explicit context cancellation handling so the function returns a
partial error map along with a non-nil error when the caller's context
is canceled or times out.
@ffranr ffranr force-pushed the parslice-capture-naming branch from 4452a12 to f0ea040 Compare August 29, 2025 13:59
@ffranr ffranr requested a review from jtobin August 29, 2025 13:59
Copy link
Member

@jtobin jtobin left a comment

Choose a reason for hiding this comment

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

LGTM 👍 👍

Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

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

LGTM

@ffranr ffranr added this pull request to the merge queue Sep 3, 2025
@ffranr ffranr removed the request for review from gijswijs September 3, 2025 12:28
Merged via the queue into main with commit 3f330b1 Sep 3, 2025
19 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Taproot-Assets Project Board Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants