Repository navigation
oracle_test: enable compatible module tests - #1419
123123213weqw wants to merge 6 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughOracle test module Makefiles now define ChangesOracle test module wiring
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for your contribution! I'll review it as soon as possible. |
|
Hello, I've done an initial review and have a couple of questions about these changes:
|
Address review feedback from @hs-liuxh on IvorySQL#1419: 1. injection_points / unsafe_tests previously used trimmed ORA_REGRESS lists that excluded some test cases (injection_points, setconfig). On re-reading, those tests are not SQL-dialect-sensitive, so there is no principled reason to trim them. Switch both to ORA_REGRESS = $(REGRESS) so the full suite runs under Oracle mode and let CI surface any real incompatibility. 2. Extend ORA_REGRESS coverage to the 10 remaining oracle_test/modules that still lacked it: dummy_index_am, gin, nbtree, spgist_name_ops, test_dsm_registry, test_extensions, test_lwlock_tranches, test_oat_hooks, test_pg_dump, typcache. All new entries use ORA_REGRESS = $(REGRESS) (alias the existing PG-mode test list), matching the convention already used for the other modules. Signed-off-by: Yue Wang <[email protected]>
|
Thanks for the review, @hs-liuxh. Both points addressed in the latest push (c8801a9). 1. injection_points and setconfig excluded You were right to question this — the exclusion was overly conservative and not actually verified. On re-reading, neither test is SQL-dialect-sensitive:
So there is no principled reason to trim them. Both modules now use 2. gin / nbtree (and others) missing ORA_REGRESS Good catch, and it was actually broader than gin/nbtree — 10 modules under All 10 now have Net change: 12 Makefiles updated. Every |
…tests Address review feedback from @hs-liuxh on IvorySQL#1419 (point 1): injection_points and unsafe_tests previously used trimmed ORA_REGRESS lists that excluded some test cases (the injection_points test case, and setconfig). On re-reading, neither test is SQL-dialect-sensitive (injection_points exercises C-callback machinery; setconfig exercises session/authorization behavior), so there is no principled reason to trim them. Both now use ORA_REGRESS = $(REGRESS) so the full suite runs under Oracle mode. Point 2 (gin/nbtree and other modules missing ORA_REGRESS) is a real gap, but enabling them needs per-module verification under Oracle mode (at least dummy_index_am/reloptions fails). Rather than block this PR, I will handle the remaining modules in a follow-up, verifying each against Oracle mode individually.
c8801a9 to
cf6166a
Compare
… unsafe_tests Address review feedback from @hs-liuxh on IvorySQL#1419. injection_points: previously ORA_REGRESS omitted the injection_points test case (only hashagg/reindex_conc/vacuum ran). Verified via CI that the full REGRESS list passes under Oracle mode, so ORA_REGRESS now aliases $(REGRESS). unsafe_tests: the setconfig test case was previously excluded with only a generic "compatible with Oracle mode" comment. Verified via CI that setconfig does fail under Oracle mode (it exercises ALTER DATABASE/ROLE SET session_authorization and connection switches that diverge in the Oracle-compatible parser). The exclusion is kept, but now with an explicit reason. The other three cases (rolenames, alter_system_table, guc_privs) pass. The remaining modules under src/oracle_test/modules/ that still lack ORA_REGRESS (gin, nbtree, dummy_index_am, etc.) need per-module verification under Oracle mode and will be handled in a follow-up PR.
cf6166a to
340c308
Compare
Address review feedback from @hs-liuxh on IvorySQL#1419 asking why the injection_points test case (in injection_points/Makefile) and setconfig (in unsafe_tests/Makefile) are excluded from ORA_REGRESS. Both exclusions are kept, but the previous generic comment ("List only tests that are compatible with Oracle mode") is replaced with the concrete reason for each, verified via make oracle-check-world in CI: - injection_points: the test case fails under Oracle mode because the injection-points machinery does not fire in the Oracle-compatible parser (function calls return empty where expected output has error/notice/result rows). The other three cases (hashagg, reindex_conc, vacuum) pass. - setconfig: fails under Oracle mode because it exercises ALTER DATABASE/ROLE SET session_authorization and connection switches whose behavior diverges in the Oracle-compatible parser. The other three cases (rolenames, alter_system_table, guc_privs) pass. No behavioral change — ORA_REGRESS values are unchanged from the original PR; only the explanatory comments are improved.
340c308 to
a796a4e
Compare
|
Final answer on point 1, @hs-liuxh — verified properly this time via CI Both exclusions are correct and kept, but I replaced the vague comment with the concrete reason for each: injection_points test case (in setconfig (in Sorry for the earlier back-and-forth — I should have run CI before answering. The latest push ( |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/oracle_test/modules/injection_points/Makefile (1)
25-31: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueRemove the stale
ORA_REGRESSexclusion if this case should run under Oracle regression.
oracle-checkonly passes$(EXTRA_REGRESS_OPTS), and this tree does not define or passORA_REGRESS, so those lines don't change the Oracle regression selector. If this module has been verified for Oracle mode, update the comments/Meta to reflect the current evidence.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/oracle_test/modules/injection_points/Makefile` around lines 25 - 31, Update the Oracle regression metadata and accompanying comments for the injection_points case: remove the stale ORA_REGRESS exclusion if Oracle-mode verification confirms it now passes, and ensure the documented regression selector reflects the actual oracle-check behavior and current test evidence.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/oracle_test/modules/injection_points/Makefile`:
- Around line 25-31: Update the Oracle regression metadata and accompanying
comments for the injection_points case: remove the stale ORA_REGRESS exclusion
if Oracle-mode verification confirms it now passes, and ensure the documented
regression selector reflects the actual oracle-check behavior and current test
evidence.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3775746c-f662-4b64-89ce-686da9d28d0c
📒 Files selected for processing (2)
src/oracle_test/modules/injection_points/Makefilesrc/oracle_test/modules/unsafe_tests/Makefile
🚧 Files skipped from review as they are similar to previous changes (1)
- src/oracle_test/modules/unsafe_tests/Makefile
|
@hs-liuxh The current The previous Verified against the current upstream GitHub currently marks the six build/regression workflow runs as action required, so maintainer approval is needed to start them. Could you please approve the workflows and take another look when you have time? Thanks! |
|
Addressed CodeRabbit's |
|
@hs-liuxh Sorry for the long silence on your second question (why modules such as
So the answer to your point 2 is "they cannot simply be listed yet", and I split off what can be enabled today: #2128 — enables five modules ( Worth flagging for this PR: the The two blockers I could not fix in that PR are filed as issues with the full evidence and reproduction steps:
One practical request: the workflows for the new PR need maintainer approval to start. Thanks! |
|
Hi @hs-liuxh, gentle ping on this PR. Both questions from your review have been answered and landed on the branch:
The latest CI run is 7/7 green with no merge conflicts. Could you take another look when you have a moment? Happy to adjust anything that's still off. Thanks! |
|
@hs-liuxh — both questions from your 2026-07-20 review are answered on the branch, and the head has been green since 2026-08-26. Head
One more fix landed since then: the If it needs another round, a pointer to the file is enough. If you don't plan to take it, closing is fine. |
Summary
src/oracle_test/modulessuites intooracle-checkinjection_pointsunsafe_testsWhy
make oracle-check-worlddescends intosrc/oracle_test/modules, but PGXS only executes SQL and isolation tests declared throughORA_REGRESSandORA_ISOLATION. Most module Makefiles only declaredREGRESSorISOLATION, so theiroracle-checktargets silently skipped those suites.Using explicit Oracle-mode lists follows the existing project convention and avoids enabling PostgreSQL-specific cases that currently fail under Oracle mode.
Deliberate exclusions
The remaining module regression lists were verified individually in Oracle mode rather than copied blindly:
injection_pointsexcludes itsinjection_pointscase because the injection callbacks do not fire through the Oracle-compatible parser; its other regression cases and full isolation suite remain enabled.unsafe_testsexcludessetconfigbecause its session-authorization and reconnection expectations differ in Oracle mode.dummy_index_am,gin,spgist_name_ops,test_pg_dump, andtypcachecurrently have Oracle-mode output or catalog differences.nbtree,test_dsm_registry,test_extensions,test_lwlock_tranches, andtest_oat_hookscurrently have behavioral or test-setup failures.These omissions are documented in the Makefiles and should be enabled only after the corresponding behavior or expectations become Oracle-compatible.
Validation
On
WZU_Server:make -j16make -j16 installmake -C src/oracle_test/modules oracle-checkoracle-checkruns for every deliberately omitted module listed aboveThe enabled module-wide Oracle check passes. A root
make oracle-check-worldalso completed the fullsrc/oracle_testtree and all 65 ECPG Oracle tests; the latersrc/interfaces/libpq/ivyteststep could not start because the validation server already had an unrelated IvorySQL process bound to Oracle port 1521.Closes #1323.