Skip to content

Conversation

@tianzhou
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 31, 2025 11:34
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

This PR introduces a Quiet mode for the apply command to suppress verbose output during test execution. The main purpose is to reduce noise in test logs by suppressing plan displays and progress messages when running schema migrations in automated tests.

Key changes:

  • Added a Quiet field to ApplyConfig to control output verbosity
  • Modified ApplyMigration function to conditionally suppress plan display, progress messages, and status output
  • Removed obsolete CLI-based helper functions (executePlanCommand and executeApplyCommand) from schema tests
  • Updated all test files to enable quiet mode with Quiet: true in test configurations
  • Cleaned up verbose logging statements from migration integration tests

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cmd/apply/apply.go Added Quiet field to ApplyConfig and wrapped all output statements with conditional checks to suppress verbose output when quiet mode is enabled
cmd/migrate_integration_test.go Removed verbose test logging statements and added Quiet: true to applySchemaChanges function
cmd/apply/apply_integration_test.go Added Quiet: true to all test configurations in 7 test functions to suppress output during tests
cmd/schema_integration_test.go Removed unused CLI-based helper functions and updated function calls to use API-based alternatives
Comments suppressed due to low confidence (1)

cmd/apply/apply.go:157

  • This message at line 157 is not wrapped with a !config.Quiet check, meaning it will still be printed even when quiet mode is enabled. For consistency with other output suppression in this PR, this should also respect the Quiet flag.
		fmt.Println("No changes to apply. Database schema is already up to date.")

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou requested a review from Copilot October 31, 2025 11:42
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

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou merged commit f175ff6 into main Oct 31, 2025
8 checks passed
@tianzhou tianzhou deleted the test_case_output branch November 23, 2025 14:51
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