-
Notifications
You must be signed in to change notification settings - Fork 2
feat(review): compare against the merge base and reuse the PR's last analysis #81
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 all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5fd95a2
feat(review): compare against the merge base and reuse the PR's last …
Svilen-Stefanov 6771689
fix(review): make the analysis caches reachable and the fallback visible
Svilen-Stefanov ad7a1db
fix(review): restore the pull request chain by prefix
Svilen-Stefanov d7c7f8b
docs: describe the merge_base_sha output in plain terms
Svilen-Stefanov 87915ed
feat(review): ship the merge-base analysis in the review artifact
Svilen-Stefanov 19b25e6
docs: write down the artifact and cache naming
Svilen-Stefanov 9eb2c34
docs: correct and simplify the storage strategy
Svilen-Stefanov e1db180
fix(review): report the merge base under the name the webview reads
Svilen-Stefanov e394a42
docs: list what metadata.json actually contains
Svilen-Stefanov d7ed122
fix(review): rebuild at the configured depth, and never diff across t…
Svilen-Stefanov 8adcc1a
fix(sync): read the artifact manifest without mapfile
Svilen-Stefanov 6e6ab0c
fix(sync): publish the baseline under both commits it describes
Svilen-Stefanov 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
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.
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.
When
/codeboarding refreshor/codeboarding fullruns for a head SHA that already has a chain cache, it deliberately recomputes the analysis but then saves under the same key as the existing entry. Actions caches are immutable, so this save cannot replace the old chain; the next run after another push restores the pre-refresh analysis rather than the PR's actual last analysis. Give forced refreshes a distinct generation key, or otherwise ensure subsequent prefix restores select the newly computed state.Useful? React with 👍 / 👎.
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.
Good catch, fixed in 6771689. Cache entries being immutable meant the save was dropped and the next run restored precisely the state the refresh was asked to discard.
/codeboarding refreshand/codeboarding fullnow save under<prefix><head_sha>-<mode><run_id>.<attempt>. The prefix is unchanged, so a later run still finds it, and since prefix restores select the most recently created entry, the refreshed analysis wins over the one it replaced. Covered bytest_a_forced_refresh_does_not_save_under_the_key_it_replaces.