Remove dead code superseded by the scaleset SDK - #73
Conversation
|
Clean removal — the interface and nit — nit — (Heads up: no CI checks have reported on this PR yet — given how much it deletes, worth making sure |
bd787ad to
1c745b3
Compare
1c745b3 to
552b9c3
Compare
Good catch. Removing the token expiry logic
Still used in pkg/orka/client for fetching cluster-info to verify connectivity to the cluster |
|
There is something off and the runner throws an error on start. Still trying to figure out what. Here is the error: |
|
Update - it started running again. Something delete the scaleset right after the integration found it. |
|
@existemi |
|
Closed this by mistake sorry :) |
|
We discussed this with @existemi . |
1375556 to
3bd4cf2
Compare
Description
Remove the code superseded by the
actions/scalesetSDK, now thatpkg/github/scalesetclientis the only implementation ofActionsService.pkg/github/appandpkg/github/auth, the hand-rolled JWT, installation-token, and registration-token chain the SDK now performspkg/http, the retryable client and logger used only by those packagespkg/github/config.goand its tests, the config URL parser the SDK replacesActionsClientimplementation frompkg/github/actions, keeping theActionsServiceinterface and theActionsErrortype, both of which are still usedutils.GetTokenExpirationTime, whose only caller was the removed client, and add coverage forutils.Map, which had noneNothing constructed
ActionsClient:NewActionsClienthad no callers outside its own definition.pkg/apiandutils.Mapare kept becausepkg/orkaand the runner provisioner still use them, andpkg/github/errorsis kept becausepkg/github/messagequeuestill uses it.go mod tidymoveshashicorp/go-retryablehttpto an indirect dependency as a result.Net effect is 990 lines removed.