Skip to content

Conversation

@fbac
Copy link
Collaborator

@fbac fbac commented Oct 3, 2025

Make payer report ID generation deterministic by sorting node IDs before packing and hashing in payerreport.BuildPayerReportID

Introduce ordered hashing for node IDs and update call sites to use the new utility.

  • Add utils.PackSortAndHashNodeIDs to sort node IDs before packing and hashing in hash.go
  • Switch payerreport.BuildPayerReportID to utils.PackSortAndHashNodeIDs in report.go
  • Update payerreport.TestGetDigest to use utils.PackSortAndHashNodeIDs in report_test.go

📍Where to Start

Start with the utils.PackSortAndHashNodeIDs implementation in hash.go, then review its usage in payerreport.BuildPayerReportID in report.go.


Macroscope summarized bd85fbd.

@fbac fbac requested a review from a team as a code owner October 3, 2025 10:00
@graphite-app
Copy link

graphite-app bot commented Oct 3, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • Queue - adds this PR to the back of the merge queue
  • Hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@fbac fbac merged commit 60a8b25 into main Oct 3, 2025
11 checks passed
@fbac fbac deleted the 10-03-sort_before_pack branch October 3, 2025 13:50
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.

3 participants