Repository navigation
test(frontend): cover branch snapshot identifier bytes - #26196
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Addressed the requested change. I rebased onto current |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed the exact updated head e88eb003bbf9. The previous requested changes are fully addressed: the superseded production/helper and unit-test changes were dropped, leaving only the end-to-end BVT, and the PR now links Fixes #26073.
The case locates the branch snapshot by the destination table ID, asserts the exact database/table bytes via HEX, and verifies obj_id still points to the source table. Its setup/cleanup is repeatable and the initial DROP DATABASE IF EXISTS recovers a prior interrupted run.
Validation on this head:
- full build and
go vet ./pkg/frontend protect_11.sqlon a local standalone instance three consecutive times, always yielding database70726F746563745C6462, table7372635C74, and parent match1- related production regression test with
-race -count=100 - full
pkg/frontendsuite with-race -count=1 git diff --check
No blocking findings.
Merge Queue Status
This pull request spent 1 hour 32 minutes 9 seconds in the queue, with no time running CI. Waiting for
All conditions
ReasonPull request #26196 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
…26196) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#26073 ## What this PR does / why we need it: matrixorigin#26218 already fixed branch-snapshot SQL literal escaping on `main` and added parser-based unit coverage for quotes, backslashes, and injection-like input. After rebasing onto that implementation, this PR contains only the end-to-end BVT coverage that is not present in matrixorigin#26218. The BVT creates database and table identifiers containing backslashes, creates a Data Branch table, and verifies: - the exact database-name bytes stored in `mo_catalog.mo_snapshots`; - the exact table-name bytes stored in `mo_catalog.mo_snapshots`; - the branch snapshot `obj_id` references the source table. No production code or unit tests are changed. ### Validation - `make build` - `protect_11.sql` against rebased commit `e88eb003b`: 13/13 statements passed - `git diff --check` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…26196) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#26073 ## What this PR does / why we need it: matrixorigin#26218 already fixed branch-snapshot SQL literal escaping on `main` and added parser-based unit coverage for quotes, backslashes, and injection-like input. After rebasing onto that implementation, this PR contains only the end-to-end BVT coverage that is not present in matrixorigin#26218. The BVT creates database and table identifiers containing backslashes, creates a Data Branch table, and verifies: - the exact database-name bytes stored in `mo_catalog.mo_snapshots`; - the exact table-name bytes stored in `mo_catalog.mo_snapshots`; - the branch snapshot `obj_id` references the source table. No production code or unit tests are changed. ### Validation - `make build` - `protect_11.sql` against rebased commit `e88eb003b`: 13/13 statements passed - `git diff --check` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…26196) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [x] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Fixes matrixorigin#26073 ## What this PR does / why we need it: matrixorigin#26218 already fixed branch-snapshot SQL literal escaping on `main` and added parser-based unit coverage for quotes, backslashes, and injection-like input. After rebasing onto that implementation, this PR contains only the end-to-end BVT coverage that is not present in matrixorigin#26218. The BVT creates database and table identifiers containing backslashes, creates a Data Branch table, and verifies: - the exact database-name bytes stored in `mo_catalog.mo_snapshots`; - the exact table-name bytes stored in `mo_catalog.mo_snapshots`; - the branch snapshot `obj_id` references the source table. No production code or unit tests are changed. ### Validation - `make build` - `protect_11.sql` against rebased commit `e88eb003b`: 13/13 statements passed - `git diff --check` Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #26073
What this PR does / why we need it:
#26218 already fixed branch-snapshot SQL literal escaping on
mainand addedparser-based unit coverage for quotes, backslashes, and injection-like input.
After rebasing onto that implementation, this PR contains only the
end-to-end BVT coverage that is not present in #26218.
The BVT creates database and table identifiers containing backslashes, creates
a Data Branch table, and verifies:
mo_catalog.mo_snapshots;mo_catalog.mo_snapshots;obj_idreferences the source table.No production code or unit tests are changed.
Validation
make buildprotect_11.sqlagainst rebased commite88eb003b: 13/13 statements passedgit diff --check