Repository navigation
Add test: New BAD_ARGUMENTS error path for simultaneous X-ClickHouse-Quota header and quota_key URL parameter is untested - #104092
clickgapai wants to merge 2 commits into
Conversation
|
Workflow [PR], commit [8e0674e] Summary: ❌
|
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe a failure is related to this test, please comment with details and the bot will re-evaluate. |
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe a failure is related to this test, please comment with details and the bot will re-evaluate. |
|
The bot has tried to address CI failures on this PR 50 times without a successful push (logs unavailable / context insufficient / plan rejected). Stopping further auto-fix attempts on |
|
CI failure in |
|
ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
CI failure in |
|
@groeneai can you take this up and open a new PR? |
|
Yes. Triaged as part of this batch of 20; the target code path still exists on master (2850e46) and the test passes there against its committed reference. I am re-filing the batch grouped by area rather than as 18 separate test PRs, to keep reviewer load down. Before filing, I mutation-test each oracle — in your previous batch two tests passed both with and without the defect, so I will not re-file one that does not actually redden. If this one turns out to be vacuous or already covered, I will post the reason here instead of a PR. Consolidated triage for the whole batch: #103950 (comment) |
|
Re-filed: #114234 The test is there as Two changes from the original. I reduced it to one case: the |
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #62842 (merged 2024-04-26). Confirmed on current codebase — close with a note if already fixed.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #62842.
That PR PR allows the
quota_keyto be sent via URL parameter together with credentials passed by a different scheme (e.g.X-ClickHouse-Userheader or HTTPBasicauthorization). It removesquota_keyfrom thehas_auth_headers/has_credentials_in_query_paramsflags and extracts the value AFTER the a1. New
BAD_ARGUMENTSerror path for simultaneousX-ClickHouse-Quotaheader andquota_keyURL parameter is untestedsrc/Server/HTTP/authenticateUserByHTTP.cpp:244Risk: Reaching the new branch requires
params.has("quota_key")AND a non-emptyquota_keypreviously read from theX-ClickHouse-Quotaheader. The PR's own test only hits the success path (URL param +**What's unique vs PR tests:** PR test at01399_http_request_headers.sh:18only covers the SUCCESS direction (URL-paramquota_key+X-ClickHouse-Userheader, noX-ClickHouse-Quota` header). My test covers the CONFLICT branchChangelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes