Skip to content

fix(ci): checkout pilot-protocol/common (PILOT-349)#7

Merged
TeoSlayer merged 6 commits into
mainfrom
fix/ci-checkout-common-PILOT-349
May 29, 2026
Merged

fix(ci): checkout pilot-protocol/common (PILOT-349)#7
TeoSlayer merged 6 commits into
mainfrom
fix/ci-checkout-common-PILOT-349

Conversation

@TeoSlayer
Copy link
Copy Markdown
Contributor

The 'deps: switch shared types to common' merge added github.com/pilot-protocol/common as a dependency with replace .. => ../common, but didn't update ci.yml to check that sibling out. Result: every main CI run since then has been red on go test with ../common/go.mod: no such file or directory.

Fix: add a Checkout common step before setup-go, mirroring the existing Checkout web4 pattern. Same fix landed in pilot-protocol/examples#4.

Closes PILOT-349.

teovl added 6 commits May 29, 2026 12:17
The 'deps: switch shared types to common' merge added github.com/pilot-protocol/common
as a dependency with 'replace .. => ../common', but didn't update ci.yml to check
that sibling out. Result: every main CI run since then has been red on go test with
'../common/go.mod: no such file or directory'.

Fix: add a 'Checkout common' step before setup-go, mirroring the existing
'Checkout web4' pattern.

Closes PILOT-349.
PR #4 (deps: switch shared types to common) migrated production code to common/*
but introduced new test code in zz_helpers_test.go / zz_handshake_manager_bootstrap_test.go
with type mismatches:
- testRuntime.regClient was declared as *common/registry/client.Client but
  regtestutil.StartTestRegistry returns *TeoSlayer/pilotprotocol/pkg/registry/client.Client,
  and tests call .SetSigner / .RegisterWithKey which only exist on the concrete TeoSlayer type
- daemon.Connection.RemoteAddr field is TeoSlayer/pkg/protocol.Addr (web4 hasn't migrated)
  but the test was constructing common/protocol.Addr
- testStreamAdapter / testDaemonListener returned TeoSlayer Addr where coreapi.Addr expected

Fixes:
- testRuntime.regClient: change to *tregistryclient.Client (TeoSlayer concrete) — implicit
  RegistryClient interface satisfaction is structural so production code continues to work
- bootstrap_test: import tprotocol alias and construct tprotocol.Addr for daemon fields
- helpers_test: convert TeoSlayer Addr → coreapi.Addr via struct literal (fields identical)

Verified locally: go test ./... → PASS
@TeoSlayer TeoSlayer merged commit 9f39133 into main May 29, 2026
1 check passed
@TeoSlayer TeoSlayer deleted the fix/ci-checkout-common-PILOT-349 branch May 29, 2026 20:02
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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