Skip to content

[INC-300] baton-github: optimize Grants() for org Resource #208

[INC-300] baton-github: optimize Grants() for org Resource

[INC-300] baton-github: optimize Grants() for org Resource #208

Triggered via pull request July 24, 2025 18:45
@Bencheng21Bencheng21
synchronize #97
INC300
Status Failure
Total duration 1m 15s
Artifacts

ci.yaml

on: pull_request
Matrix: go-test
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
go-test (1.23.x, ubuntu-latest): pkg/connector/org_test.go#L44
org_test.go:44: Error Trace: /home/runner/work/baton-github/baton-github/pkg/connector/org_test.go:44 Error: "[entitlement:{resource:{id:{resource_type:"org" resource:"12"} display_name:"organization-12" annotations:{[type.googleapis.com/c1.connector.v2.ExternalLink]:{}} annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org:12"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"user"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"team"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"repository"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"org_role"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"invitation"}}} id:"org:12:member"} principal:{id:{resource_type:"user" resource:"56"}} id:"org:12:member:user:56" annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org-grant:12:56:member"}} entitlement:{resource:{id:{resource_type:"org" resource:"12"} display_name:"organization-12" annotations:{[type.googleapis.com/c1.connector.v2.ExternalLink]:{}} annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org:12"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"user"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"team"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"repository"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"org_role"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"invitation"}}} id:"org:12:member"} principal:{id:{resource_type:"user" resource:"56"}} id:"org:12:member:user:56" annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org-grant:12:56:member"}} entitlement:{resource:{id:{resource_type:"org" resource:"12"} display_name:"organization-12" annotations:{[type.googleapis.com/c1.connector.v2.ExternalLink]:{}} annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org:12"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"user"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"team"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"repository"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"org_role"}} annotations:{[type.googleapis.com/c1.connector.v2.ChildResourceType]:{resource_type_id:"invitation"}}} id:"org:12:admin"} principal:{id:{resource_type:"user" resource:"56"}} id:"org:12:admin:user:56" annotations:{[type.googleapis.com/c1.connector.v2.V1Identifier]:{id:"org-grant:12:56:admin"}}]" should have 2 item(s), but has 3 Test: TestOrganization/should_grant_and_revoke_entitlements
go-test (1.23.x, ubuntu-latest)
Process completed with exit code 1.
go-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/baton-github/baton-github. Supported file pattern: go.sum
go-test (1.23.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/baton-github/baton-github. Supported file pattern: go.sum