Skip to content

fix(cachekey): include ordered request commits - #239

Merged
sywhang merged 3 commits into
mainfrom
pbt-cache-request-identity
Jul 27, 2026
Merged

fix(cachekey): include ordered request commits#239
sywhang merged 3 commits into
mainfrom
pbt-cache-request-identity

Conversation

@sywhang

@sywhang sywhang commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This is a similar patch to #228, against internal/url.

Include each change request URL and commit in caller order with length framing so distinct build descriptions cannot share a treehash cache entry.

Add Rapid properties asserting that changing a commit or reordering change requests changes the cache path.

Include each change request URL and commit in caller order with length framing so distinct build descriptions cannot share a treehash cache entry.

Add Rapid properties asserting that changing a commit or reordering change requests changes the cache path.
@sywhang
sywhang requested review from a team as code owners July 24, 2026 18:47
Comment thread internal/url/url.go
return fmt.Sprintf("%x", h.Sum(nil))
}

func writeFramedString(h hash.Hash, value string) {

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.

@sywhang
sywhang merged commit 58ae0bc into main Jul 27, 2026
9 checks passed
@sywhang
sywhang deleted the pbt-cache-request-identity branch July 27, 2026 23:15
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.

2 participants