Verify ReleaseKit against a disposable remote

This commit is contained in:
2026-10-08 16:51:09 +00:00
parent e9b6b63e5e
commit c03457c814
2 changed files with 7 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ the default suite and `./scripts/check.sh` pass with the selected Go and
prepared dependencies; the retained tests protect development checks and prepared dependencies; the retained tests protect development checks and
profile wiring without duplicating ReleaseKit's generic behavior. profile wiring without duplicating ReleaseKit's generic behavior.
## Stage 6: Exercise the migration without publishing ConfigKit ## Stage 6: Exercise the migration without publishing ConfigKit — Complete
1. Build ReleaseKit from the candidate's `go.mod` selection with the latest 1. Build ReleaseKit from the candidate's `go.mod` selection with the latest
selected local Go patch for that minimum's series. Use that same executable selected local Go patch for that minimum's series. Use that same executable

View File

@@ -39,8 +39,12 @@ func TestReleaseKitProfile(t *testing.T) {
if profile.Remote != "origin" { if profile.Remote != "origin" {
t.Errorf("remote = %q, want origin", profile.Remote) t.Errorf("remote = %q, want origin", profile.Remote)
} }
if profile.ExpectedPushURL != "https://gitea.maximumdirect.net/eric/ConfigKit.git" { wantPushURL := "https://gitea.maximumdirect.net/eric/ConfigKit.git"
t.Errorf("expected push URL = %q", profile.ExpectedPushURL) if fixturePushURL := os.Getenv("CONFIGKIT_TEST_EXPECTED_PUSH_URL"); fixturePushURL != "" {
wantPushURL = fixturePushURL
}
if profile.ExpectedPushURL != wantPushURL {
t.Errorf("expected push URL = %q, want %q", profile.ExpectedPushURL, wantPushURL)
} }
goValidation := profile.Validation.Go goValidation := profile.Validation.Go
if !goValidation.Race || !goValidation.FullVet { if !goValidation.Race || !goValidation.FullVet {