• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pact-foundation / pact-go / 26476079943
28%
master: 28%

Build:
Build:
LAST BUILD BRANCH: renovate/golangci-golangci-lint-action-9.x
DEFAULT BRANCH: master
Ran 26 May 2026 09:27PM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 May 2026 09:23PM UTC coverage: 28.288% (-0.04%) from 28.328%
26476079943

Pull #580

github

stan-is-hate
feat(provider): add SoftFail mode for downstream-gated verification

Callers that have a downstream authoritative gate (e.g. a Pact Broker
can-i-merge / can-i-deploy check) want verification mismatches to be
recorded to the broker and reported in the test framework, but NOT to
fail CI locally — the downstream gate makes the real decision.

Previously the only way to suppress local failure was at the shell
layer (turning off pipefail around `go test`), which also silenced
verifier panics, broker auth failures, and any other infrastructure
problem. That made "tests didn't actually run but CI is green" a
common failure mode.

New behavior — `VerifyRequest.SoftFail` (default false, preserves
existing behavior):

  - SoftFail = false (default):
      err == nil           → subtest PASS
      err != nil           → subtest FAIL (t.Error)
  - SoftFail = true:
      err == nil           → subtest PASS
      ErrVerifierFailed    → subtest SKIP (t.Skipf, message preserved)
      any other err        → subtest FAIL (t.Error)

Infrastructure errors (ErrVerifierFailedToRun, panics, broker auth)
always fail the subtest, regardless of SoftFail — they signal the
verifier could not produce a result for the downstream gate to act on.

The discrimination uses `errors.Is(err, native.ErrVerifierFailed)`,
which leverages the mutual-exclusivity invariant of the two verifier
sentinels documented in #579.
Pull Request #580: feat(provider): add SoftFail mode for downstream-gated verification

0 of 11 new or added lines in 1 file covered. (0.0%)

1809 of 6395 relevant lines covered (28.29%)

5.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
0.0
0.0% provider/verifier.go
Jobs
ID Job ID Ran Files Coverage
1 26476079943.1 26 May 2026 09:27PM UTC 34
28.29
GitHub Action Run
Source Files on build 26476079943
  • Tree
  • List 34
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #580
  • PR Base - master (#26436730043)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc