Skip to content

fix(cachekey): include ordered request commits#239

Open
sywhang wants to merge 1 commit into
mainfrom
pbt-cache-request-identity
Open

fix(cachekey): include ordered request commits#239
sywhang wants to merge 1 commit 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.

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