Skip to content

Tests within the oracle_test/modules/ directory were omitted. #1323

Description

@hs-liuxh

Bug Report

When I run make oracle-check-world from the project root, the logs show that most modules under src/oracle_test/modules/ are being skipped directly without executing any tests.

Image

After debugging, I found that running make oracle-check in src/oracle_test/modules/ skips tests for most modules, whereas make checkexecutes all of them. However, make oracle-check-world recursively invokes the oracle-check target in that path.

Meanwhile, running make check from the root directory does not scan the modules under src/oracle_test/.

Activity

  1. added
    bug
    on May 8, 2026
  2. added theissue type on May 8, 2026
  3. 123123213weqw commented on Jul 8, 2026

    @123123213weqw
    Contributor

    Hi, I dug into this. Root cause:

    In src/makefiles/pgxs.mk, the oracle-check target (around line 529) only runs regression tests when ORA_REGRESS is defined (ifdef ORA_REGRESS), and similarly uses ORA_ISOLATION. But none of the modules under src/oracle_test/modules/ — nor anywhere else in src/ — define ORA_REGRESS / ORA_ISOLATION (a grep for ORA_REGRESS = / ORA_ISOLATION = finds zero matches). So every PGXS module's oracle-check no-ops its tests, which matches what you observed (while check works because it gates on REGRESS).

    Two ways to fix — I'd like your call before proceeding:

    • A) In pgxs.mk: default ORA_REGRESS ?= $(REGRESS) and ORA_ISOLATION ?= $(ISOLATION) so oracle-check runs each module's existing test list in Oracle mode. One change, fixes every module at once. Risk: some PG-oriented tests may fail under Oracle mode — those would surface as real compatibility gaps to triage separately.
    • B) Per-module: add ORA_REGRESS = $(REGRESS) only to modules known to pass in Oracle mode. More surgical, no surprise red, but touches many Makefiles.

    Happy to implement either (or another approach you prefer). Thanks!

  4. neu-hsc commented on Jul 11, 2026

    @neu-hsc

    I reproduced the root cause: \oracle-check\ skips PGXS modules that define only \REGRESS\ or \ISOLATION, because it looks exclusively at \ORA_REGRESS\ / \ORA_ISOLATION. I have prepared a minimal fix that falls back to the regular lists only when no Oracle-specific list is supplied, preserving existing explicit Oracle test selections. I will open a PR shortly.

  5. 123123213weqw commented on Jul 18, 2026

    @123123213weqw
    Contributor

    I'll proceed with the centralized pgxs.mk fix so oracle-check inherits each module's existing REGRESS / ISOLATION lists, then run the full src/oracle_test/modules suite and adjust only where Oracle-mode incompatibilities are real.

    /assign

  6. 123123213weqw commented on Jul 18, 2026

    @123123213weqw
    Contributor

    PR opened: #1419

    Validation of the centralized fallback exposed several PostgreSQL-only cases that are not yet compatible with Oracle mode, so the PR follows the existing per-module convention instead: it adds explicit ORA_REGRESS / ORA_ISOLATION lists for the suites verified to pass and uses compatible subsets where needed.

    make -C src/oracle_test/modules oracle-check passes with the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions