Repository navigation
test(ledgergate): port the seven missing TS parity cases (RIG-8124) - #102
Merged
rigel-nemo[bot] merged 2 commits intoNov 23, 2026
Merged
rigel-nemo[bot] merged 2 commits into
rigel-nemo[bot] merged 2 commits into
Conversation
Co-authored-by: Matt Wilkinson <matt@rigel.build> test(ledgergate): port the seven missing TS parity cases (RIG-8124) Port the seven TS test cases that the Go tree did not assert. Each new Go test sits next to the unit it covers. One production change: the dl-claim client takes its timeout as a parameter, so a test can check that the requested deadline reaches the fetch. - run: TestRunOnceReportsUnknownDepthOneSurface - run: TestRunOnceClaimExemptionRequiresMatchingAuthorAndServiceFailureExitsTwo - core: TestLoadConfigValidatesClaimCheckAndAuthorBindings - dllist: TestListDecisions (no-match grep subtest) - dllist: TestParseArgs (flag-shaped and missing values subtest) - dlclaim: TestClaimService (deadline and transport-failure subtests) Co-authored-by: Matt Wilkinson <matt@rigel.build>
Strengthen the seven ported TS parity tests after review of PR 102. No production code changes. - dlclaim: a Main-level request rejection test asserts exit 1, the endpoint, the error name, the do-not-rerun warning, and no bearer text on stderr. - dlclaim: a Main-level test asserts the 30s default deadline. The restating newClient assertion is removed. - dllist: each missing or flag-shaped value error is compared exactly, naming its own flag. - ledgergate: a cross-repository PR and an unknown repository status, both with the trusted author, still fetch claims. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
All-clear at de3bcec |
|
Checks read:
|
rigel-nemo
Bot
deleted the
go-migration/rig-8124-port-the-seven-missing-ts-parity-cases
branch
November 23, 2026 02:20
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this do
Ports the seven TypeScript parity cases that the Go tree did not assert. Each case gets a Go test next to the unit it covers. One production change: the dl-claim client takes its timeout as a parameter, so a test can confirm the requested deadline reaches the fetch.
Why do we need it
The parity audit found seven TS cases with no Go assertion. Without these tests a regression in config, list args, the claim leg, or the claim client would pass CI.
Summary
legs.claimCheckboolean check andexemptBranchesload.Main, pin the 30s default throughMain, compare each flag error exactly, and fetch claims for cross-repository and unknown-status PRs with a trusted author.TS count 268. Mapped 261 plus these 7. Dropped 0.
Verification
CGO_ENABLED=0 go vet ./...: rc=0.go test -count=1on dllist, dlclaim, ledgergate/core and ledgergate/run: all ok.gofmt -lon the four edited test files: empty.TestClaimCLIrequest rejection, main_test.go:99);newClient(time.Second)inrun(TestClaimCLIdefault deadline, main_test.go:132); every flag error naming--x(TestParseArgs, list_test.go:203); cross-repo PR skips the claim fetch (TestRunOnceClaimExemption..., runner_test.go:559).Risks
Low. Test-only except the
newClient(timeout)seam, wheremain.gopasses the same 30s default.Spec-impact: none
Refs RIG-8124
Co-authored-by: Matt Wilkinson matt@rigel.build