Skip to content

Conversation

muzarski
Copy link
Contributor

@muzarski muzarski commented May 5, 2025

Ref: #132

cpp-driver does not expose API to inspect the warnings emitted by Scylla. Instead, it logs the warnings at WARN level.

In this PR, we also enable non-UDF ServerSideFailure tests:

  • ErrorTableAlreadyExists -> this works without any adjustments
  • Warning -> this works only for Cassandra. It's because Scylla does not emit similar warning. I decided to enable the test for Scylla as well, but skip it during runtime (with proper message, informing why the test is skipped).

Remaining two tests from this suite are using UDFs. For now, I'm leaving them disabled for both Scylla and Cassandra. In the future, we might want to enable UDF Scylla feature and run those tests.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

@muzarski muzarski self-assigned this May 5, 2025
@muzarski muzarski added this to the 0.5 milestone May 5, 2025
@muzarski muzarski requested a review from Lorak-mmk May 5, 2025 16:18
muzarski added 3 commits May 6, 2025 12:31
1. The test is skipped for Scylla (Scylla does not emit such warning) - I think
   it's better to enable it, and skip it during runtime, rather than disabling it at all.
2. The test is adjusted so the WHERE clause is removed (to trigger the warning).
   The WHERE clause was added here: scylladb#221
This test works for both Cassandra and Scylla - no adjustments are required.
It will be now more clear which tests are failing and should possibly
be addressed in the future. The disabled tests from this suite are using UDFs,
which are hidden behind unstable feature in Scylla. We may want to
enable them in the future, but for now let's leave them disabled.
@muzarski muzarski force-pushed the server-side-failure-it branch from 46a9ac4 to 03d3517 Compare May 6, 2025 10:31
@muzarski muzarski requested a review from Lorak-mmk May 6, 2025 10:33
@muzarski muzarski added the area/testing Related to unit/integration testing label May 6, 2025
@muzarski muzarski changed the title Log server-side warnings and enable some of the ServerSideFailure tests Enable some of the ServerSideFailure tests May 6, 2025
@muzarski muzarski merged commit b1f0f7d into scylladb:master May 6, 2025
12 checks passed
@wprzytula wprzytula mentioned this pull request Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing Related to unit/integration testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants