Commit 22f5588
authored
refactor: extract fuse compat test matrix into test_cases.yaml (#19441)
* refactor: rewrite test_compat_fuse
* refactor: extract fuse compat test matrix into test_cases.yaml
* docs: update compat_fuse README to match current implementation
* refactor: merge compat-stateless flashback tests into parameterized script and wire into CI
* fix: correct NEW_FMT_VER for v2 case and document stateless field in README
* fix: use current meta for reader phase in meta compression cases
* refactor: replace hand-rolled yaml parser with PyYAML
* fix: add intermediate meta upgrade steps for meta compression cases
* fix: restore original meta chains and download reader binary
* fix: bump meta versions to satisfy current query min-compatible-metasrv-version
* fix: remove V0 compat tests (1.0.56/1.1.30) dropped since ea91e06
* fix: add .test extension to sqllogictest files so runner actually executes them
The sqllogictest runner filters files by `.test` extension
(tests/sqllogictests/src/main.rs:308). Without it, `--run_file` never
matches and 0 tests are executed. This is a pre-existing bug on main
that affects all compat_fuse cases.
* fix: remove trailing commas in base/fuse_compat_write.test
Old query (1.2.46) does not support trailing commas in CREATE TABLE
column definitions or INSERT VALUES. This was never caught because
the test files were never actually executed (missing .test extension).
* fix: update expected show grants output in revoke/fuse_compat_read
Current query expands ALL into individual privilege names
(CREATE,SELECT,INSERT,...) instead of showing ALL.
* fix: split rbac tests into basic (1.2.311) and full (1.2.833) suites
rbac/ reverted to pre-54fceaa6b0 content compatible with writer 1.2.311.
rbac_all/ preserves the expanded test (procedure/sequence/connection/
warehouse) with writer 1.2.833 which supports all these features.
* fix: typo in rbac_all read test - access procedure, not access sequence
PR #18730 wrote "GRANT access sequence on procedure" which is
syntactically wrong. Should be "GRANT access procedure on procedure".
Never caught because the test was never executed.
* refactor: rename rbac test suites to include version context
rbac -> rbac_v1_2_311 (compatible with writer 1.2.311/1.2.318)
rbac_all -> rbac_current (requires current query features)
* fix: suppress noisy CI output from git advice and old binary backtraces
- Add -c advice.detachedHead=false to git clone in git_partial_clone()
- Capture --cmd ver output to suppress backtrace from old binaries
* refactor: improve version check output in CI logs
- Add context message before/after version checks
- Only print the "version:" line from --cmd ver output
- Use "checking metasrv/query" prefix for clarity
* fix: lazy-import PyYAML so single-case mode works without it
* docs: clarify procedure version comment in test_cases.yaml
* docs: fix sqllogictest filenames in README to include .test extension
* docs: fix docstring to cover both backward and forward compat
* fix: use explicit privilege list instead of ALL in revoke write test1 parent 3ecf0d4 commit 22f5588
File tree
23 files changed
+542
-1114
lines changed- .github/actions/test_compat_fuse
- tests/compat_fuse
- compat-logictest
- 01_meta_compression
- 02_meta_compression_v3_to_v4
- base
- rbac_current
- rbac_v1_2_311
- revoke
- udf
- compat-stateless
- 01_flashback
- 02_flashback_v3_to_v4
23 files changed
+542
-1114
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 14 | + | |
| 15 | + | |
23 | 16 | | |
24 | 17 | | |
25 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
5 | 20 | | |
6 | 21 | | |
7 | 22 | | |
| 23 | + | |
| 24 | + | |
8 | 25 | | |
9 | | - | |
10 | | - | |
| 26 | + | |
11 | 27 | | |
12 | 28 | | |
13 | | - | |
14 | | - | |
| 29 | + | |
15 | 30 | | |
16 | | - | |
17 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
18 | 44 | | |
19 | 45 | | |
20 | 46 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
24 | 56 | | |
25 | | - | |
26 | | - | |
| 57 | + | |
27 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
28 | 62 | | |
29 | 63 | | |
30 | 64 | | |
31 | | - | |
32 | | - | |
| 65 | + | |
33 | 66 | | |
34 | | - | |
35 | | - | |
| 67 | + | |
| 68 | + | |
Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 0 additions & 67 deletions
This file was deleted.
0 commit comments