Skip to content

fix(ci): add missing !no_sqlite build tag to signing_key_shared_test.go#334

Merged
ptone merged 1 commit into
GoogleCloudPlatform:mainfrom
ptone:fix/ci-signing-key-test-tag
Jun 6, 2026
Merged

fix(ci): add missing !no_sqlite build tag to signing_key_shared_test.go#334
ptone merged 1 commit into
GoogleCloudPlatform:mainfrom
ptone:fix/ci-signing-key-test-tag

Conversation

@ptone
Copy link
Copy Markdown
Member

@ptone ptone commented Jun 6, 2026

Summary

  • signing_key_shared_test.go (introduced in PR 328) calls newTestStore() which is only defined in !no_sqlite-gated files
  • Missing the //go:build !no_sqlite tag causes go vet -tags no_sqlite to fail with undefined: newTestStore
  • Same pattern fixed in PR 150 for command_bus_test.go and broker_affinity_test.go

Test plan

  • go vet -tags no_sqlite ./pkg/hub/... passes
  • gofmt -l . returns no files
  • CI should pass on this PR

signing_key_shared_test.go calls newTestStore() which is only defined
in files gated by //go:build !no_sqlite, causing "undefined: newTestStore"
when CI runs go vet -tags no_sqlite.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a //go:build !no_sqlite build constraint to pkg/hub/signing_key_shared_test.go to prevent it from being compiled when SQLite is disabled. There are no review comments, and I have no additional feedback to provide.

@ptone ptone merged commit b232fbb into GoogleCloudPlatform:main Jun 6, 2026
7 of 8 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