Skip to content

Fix ClickHouse cloud tests #458

Closed
Closed

Description

@BentsiLeviav

Describe the bug

Fix the broken GitHub workflow for dbt Cloud integration tests and add a nightly scheduled run to catch regressions.

Activity

  1. self-assigned this
    on May 20, 2025
  2. added theissue type on Jul 21, 2025
  3. koletzilla commented on Oct 16, 2025

    @koletzilla
    Contributor

    I have been working on it here and right now we have a set of tests failing. They're all related to GRANT operations like test_incremental_grants.py. Looks like the grant is not synced at the moment of the creation with all replicas, so if the GRANT check is done to one replica that has not received it, the test will fail.

    Same thing happens with the CREATE USER right at the beginning.

    I have tried a few things:

    • select_sequential_consistency = 1 worked to wait for data in tables but don't seem to affect here.
    • in CH cloud there's no ON CLUSTER operation so distributed_ddl_task_timeout don't apply.
    • I cannot do SYSTEM SYNC DATABASE REPLICA default as it seems it only works for replicated databases and in CH cloud default is Shared.

    I have asked for more ways to solve this, but right now the only way to solve it is to:

    1. Get the number of replicas by doing SELECT count() from system.clusters WHERE database = 'default'
    2. Wait from Python code until select count() from clusterAllReplicas('default', system.users) where ...(orFROM clusterAllReplicas('default', system.grants)') is the same as the number of replicas we found before.
  4. koletzilla commented on Jan 15, 2026

    @koletzilla
    Contributor

    I have not seen these grant tests failing any more.

    Taking into account that + the fact that we have already included testing against CH Cloud in each PR with #512, I'm going to close this ticket now. If small things happen again, we can create independent issues to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions