Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Aaron1011
Copy link
Member

@Aaron1011 Aaron1011 commented Nov 14, 2025

This prevents concurrent test executions from affecting the final count


Important

test_count_datasets now uses a fresh ClickHouse instance to prevent interference from concurrent test executions, ensuring accurate dataset count verification.

  • Behavior:
    • test_count_datasets now uses a fresh ClickHouse instance via get_clean_clickhouse to prevent interference from concurrent test executions.
    • Asserts initial dataset count is 0 and verifies count increases to 2 after inserting datasets.
  • Functions:
    • Uses get_clean_clickhouse in test_count_datasets to ensure a clean database state.
    • Runs migrations using migration_manager::run with RunMigrationManagerArgs in test_count_datasets.

This description was created by Ellipsis for 7ff0715. You can customize this summary. It will automatically update as commits are pushed.

This prevents concurrent test executions from affecting the
final count
Copilot AI review requested due to automatic review settings November 14, 2025 15:30
Copilot finished reviewing on behalf of Aaron1011 November 14, 2025 15:31
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 isolates the test_count_datasets test by using a fresh ClickHouse database, preventing concurrent test executions from affecting the dataset count. This ensures the test can reliably verify the expected behavior without interference from other tests.

Key Changes:

  • Uses get_clean_clickhouse() instead of the shared get_clickhouse() to create an isolated test database
  • Manually runs migrations on the fresh database
  • Updates assertions to expect exact counts (0 initially, 2 after insertions) instead of relative counts

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

virajmehta
virajmehta previously approved these changes Nov 14, 2025
@virajmehta virajmehta added this pull request to the merge queue Nov 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 14, 2025
@virajmehta virajmehta added this pull request to the merge queue Nov 16, 2025
Merged via the queue into main with commit b7626cb Nov 16, 2025
46 checks passed
@virajmehta virajmehta deleted the aaron/clean-clickhouse-count-datasets branch November 16, 2025 15:45
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