Skip to content

Conversation

@RIT3shSapata
Copy link
Contributor

@RIT3shSapata RIT3shSapata commented Dec 29, 2025

CBG-1423

Describe your PR here...

  • GSI is now enabled by default for integration tests

Pre-review checklist

  • Removed debug logging (fmt.Print, log.Print, ...)
  • Logging sensitive data? Make sure it's tagged (e.g. base.UD(docID), base.MD(dbName))
  • Updated relevant information in the API specifications (such as endpoint descriptions, schemas, ...) in docs/api

Dependencies (if applicable)

  • Link upstream PRs
  • Update Go module dependencies when merged

Integration Tests

Copilot AI review requested due to automatic review settings December 29, 2025 12:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Changes the default behavior of integration tests to enable GSI (Global Secondary Index) by default, reversing the previous configuration where GSI was disabled by default. This aligns the test environment more closely with production deployments where GSI is typically enabled.

Key Changes

  • Modified the default value of useGSI from false to true in the test utility function
  • Updated the corresponding comment to reflect the new default behavior


// Default to disabling GSI, but allow with SG_TEST_USE_GSI=true
useGSI := false
// Default to enable GSI, but disable with SG_TEST_USE_GSI=false
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

The comment references the environment variable as 'SG_TEST_USE_GSI', but line 280 shows the actual variable name is 'TestEnvSyncGatewayDisableGSI'. The comment should accurately reflect the environment variable name used in the code.

Suggested change
// Default to enable GSI, but disable with SG_TEST_USE_GSI=false
// Default to enabling GSI, but allow disabling via the TestEnvSyncGatewayDisableGSI env var.

Copilot uses AI. Check for mistakes.
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.

3 participants