forked from ejoffe/spr
-
Notifications
You must be signed in to change notification settings - Fork 0
Self-review: jj-compat against latest master #3
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
Draft
jucor
wants to merge
6
commits into
master
Choose a base branch
from
jj-compat
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b3946a1
feat: add Jujutsu (jj) compatibility via VCSOperations abstraction
jucor 9211e7c
feat(jj): pass --skip-emptied in JjOps.FetchAndRebase
jucor bfaa7ec
feat(jj): add AbandonChangeIDs hook + orphan-prune in FetchAndRebase
jucor 9dce948
feat(github): add ClosedOrphanPullRequests query + GetClosedOrphanPRs
jucor 875d4fe
feat(spr): wire orphan detection into fetchAndGetGitHubInfo
jucor fa6ac21
docs: explain cascade-orphan recovery and the noPruneOrphans opt-out
jucor 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,30 @@ | ||
| .PHONY: bin test test-unit test-integration test-all coverage-html | ||
|
|
||
| bin: | ||
| goreleaser build --snapshot --clean --single-target | ||
|
|
||
| # Default test target: unit tests only. | ||
| test: test-unit | ||
|
|
||
| # Unit tests — no integration build tag, no jj binary required. | ||
| # -coverpkg=./... so coverage of cross-package calls is counted (e.g. | ||
| # spr_test.go calls into vcs.JjOps, which we want reflected in vcs/jj_ops.go | ||
| # coverage). | ||
| test-unit: | ||
| go test -race -coverpkg=./... -coverprofile=cov-unit.out -covermode=atomic ./... | ||
|
|
||
| # Integration tests — runs against a real `jj` binary. Set | ||
| # SPR_SKIP_JJ_INTEGRATION=1 to skip cleanly when jj is unavailable. | ||
| test-integration: | ||
| go test -race -tags=integration -coverpkg=./... -coverprofile=cov-integration.out -covermode=atomic ./... | ||
|
|
||
| # Both suites, then merge profiles and print per-file attribution. | ||
| test-all: test-unit test-integration | ||
| @go run ./scripts/coverage-merge cov-unit.out cov-integration.out cov-merged.out | ||
|
|
||
| # Generate HTML coverage reports for both profiles plus the merged view. | ||
| coverage-html: test-all | ||
| go tool cover -html=cov-unit.out -o cov-unit.html | ||
| go tool cover -html=cov-integration.out -o cov-integration.html | ||
| go tool cover -html=cov-merged.out -o cov-merged.html | ||
| @echo "Open cov-unit.html, cov-integration.html, cov-merged.html" |
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.
Uh oh!
There was an error while loading. Please reload this page.