Repository navigation
fix(cache): tell long-id steps apart under --strict-cache with an identity digest #1810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
43cd3c1
fix(cache): tell long-id steps apart by an identity digest under --st…
samanyudas ba838f9
fix(cache): key by the identity digest a name that ends like a cut
samanyudas d6bb251
docs(cache): measure the long-id row by the test id, and say where a …
samanyudas aca807e
test(cache): refuse an identity digest that is an array or a number
samanyudas e77e3e0
fix(cache): pin the no-rewrite side of the identity digest backfill
samanyudas 06b92ba
fix(cache): pin that ambiguity is measured on the redacted names
samanyudas 0f8c459
test(cache): pin that the backfill replaces or drops a stale identity…
samanyudas 3a7cf79
Merge remote-tracking branch 'origin/main' into fix/strict-cache-long…
samanyudas 6d37341
docs(cache): say the backfill rewrites differing provenance, and tran…
samanyudas e6a69cf
test(cache): pin that target and agent names are stored and digested …
samanyudas 849ebf9
docs(cache): name each identity digest case completeProvenance rewrites
samanyudas 275d93a
docs(cache): measure the long-name row by the testId in report.json
samanyudas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| 'e2e': patch | ||
| '@e2e-dev/core': patch | ||
| --- | ||
|
|
||
| `--strict-cache` no longer fails with `REPLAY_STALE` a never-recorded step whose test id, target, or agent name is over 300 characters and starts like a recorded one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two problems in this row:
boundIsAmbiguousalso gives a digest to a whole name of 299 or 300 characters that ends in…. An entry that an earlier version recorded for such a step also runs live.Suggested text:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note
🤖 Claude Opus 5.5 responding on behalf of Samanyu Das
Took your "a test with a very long title" wording in
0f8c4599, and left out the…parenthetical. On this page no input can reach that case:TARGET_NAME_PATTERN(packages/core/src/config/targets.ts:40, reused for agents atconfig/resolve.ts:902), which is ASCII only. A target named'a'.repeat(298) + '…'fails withINVALID_CONFIG.encodeTitlepercent-encodes, so…is stored as%E2%80%A6.Only a
createAgentcacheKey(core:${cacheKey}) can end like a cut. TheidentityDigestJSDoc says so, and this page does not covercreateAgent.The row now also ends with "and no read-write run has replayed it since". A confirmed read-write replay writes the digest into the older entry, and after that strict fails it on a rekey like any other entry. The
jaandzhtables get the same row (6d373413).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note
🤖 Claude Opus 5.5 responding on behalf of Samanyu Das
I changed the row again in
275d93aa, after a second check showed that "a very long title" undersells the case. Titles are percent-encoded into the id, and each Japanese character becomes 9 characters. A 39-character Japanese title intests/cart.e2e.tsgives a 370-character id, so two such tests that differ only at the end hit the same collision.The row now names the field a user can look up, which also avoids the element test id clash:
"Of this version" is there because a read-write replay by an older runner writes no digest. The
jaandzhrows say the same.