Skip to content

ci: Add Go test step and Python fail-fast to CI - #303

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:ci/add-go-tests
Apr 14, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:ci/add-go-tests

Conversation

@huang195

Copy link
Copy Markdown
Member

Summary

  • Add go test -v -race -cover ./... step to the go-ci job
  • Add -x flag to pytest for fail-fast on first failure

The go-ci job ran go fmt, go vet, and go build but never executed go test. This meant 25 existing test functions were never verified in CI:

  • Outbound token exchange flow (handleOutbound, exchangeToken, clientCredentialsGrant)
  • Route resolver (glob matching, passthrough routes, default policy)
  • Actor token caching (TTL, concurrency, error handling, min TTL floor)
  • Bypass path matching (normalization, query strings, glob patterns)

Coverage: 42.6% for go-processor, 86.2% for resolver — all from existing tests that were just never run.

Test plan

  • Go CI job now runs tests (visible in Actions logs)
  • All 25 Go tests pass with -race flag
  • Python tests still pass with -x flag

The go-ci job ran go fmt, go vet, and go build but never executed
go test. This meant 25 existing test functions (outbound token
exchange, route resolver, actor token caching, bypass path matching)
were never verified in CI.

- Add `go test -v -race -cover ./...` step to go-ci job
- Add -x flag to pytest for fail-fast on first failure

Signed-off-by: Hai Huang <[email protected]>

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean CI improvement — closes a real gap where 25 existing Go tests (outbound token exchange, route resolver, actor token caching, bypass path matching) were never run in CI.

Changes reviewed:

  • go test -v -race -cover ./... step added to go-ci job — correct flags, correct placement after build
  • -x flag added to pytest for fail-fast — sensible for CI

Checks: All 16 CI checks passing including Go CI (which now runs the tests) and DCO.

LGTM.

@huang195
huang195 merged commit de38605 into rossoctl:main Apr 14, 2026
16 checks passed
@huang195
huang195 deleted the ci/add-go-tests branch April 14, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants