Skip to content

Sync test fakes with the api module - #211

Merged
vitramir merged 1 commit into
mainfrom
sync-test-fakes-with-api
Sep 16, 2026
Merged

vitramir merged 1 commit into
mainfrom
sync-test-fakes-with-api

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

CI is red on main. The cause is not the gateway's own code: its test fakes stand in for generated gRPC clients, so every method added to a service proto breaks them until the fake catches up. Three had accumulated:

  • DeleteOrganizationResources on the groups and networks clients
  • ListPrivateResourcesReachableBy and SetPrivateResourceMediation on networks

Each shows up as a compile error in the test build, which reads as though the package under test is broken rather than a stand-in for something it does not own.

go build, go vet and go test ./... all pass with these in place.

Worth noting for later: this will recur on every api change that adds a method, and the breakage lands on whoever opens the next unrelated PR. A generated or embedded-interface fake would make it impossible.

CI has been red on main: the test fakes stand in for generated gRPC clients, so
every method added to a service proto breaks them until the fake catches up, and
three had accumulated — DeleteOrganizationResources on the groups and networks
clients, ListPrivateResourcesReachableBy and SetPrivateResourceMediation on
networks.

The failure is a compile error in the test build, which reads as though the
package under test is broken rather than the stand-in for something it does not
own.
@vitramir
vitramir requested a review from a team as a code owner September 15, 2026 16:55
@vitramir
vitramir merged commit 0ee317b into main Sep 16, 2026
2 of 3 checks passed
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.

1 participant