Registry Mirror
Skip to content

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Dec 2, 2026

Copy link
Copy Markdown
Member

The gpfdist regression tests in src/bin/gpfdist/regress cover external tables over gpfdist: the text, CSV and custom formats, compressed files, single row error handling and gpfdist paths. No CI job runs them. Add an ic-gpfdist entry to the Rocky test matrix.

The demo cluster already creates the gpfdists certificates that the SSL tests need.

Assisted-by: Claude Code

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context


The gpfdist regression tests in src/bin/gpfdist/regress cover external
tables over gpfdist: the text, CSV and custom formats, compressed
files, single row error handling and gpfdist paths.  No CI job runs
them.  Add an ic-gpfdist entry to the Rocky test matrix.

The demo cluster already creates the gpfdists certificates that the
SSL tests need.

Assisted-by: Claude Code
demo_cluster.sh creates the gpfdists certificates only when
$enable_gpfdist is "yes" and $with_openssl is "yes".  It has not done
so for some time, for two reasons:

- 2ac071f moved "export enable_gpfdist" and "export with_openssl"
  from the Makefile into gpdemo-defaults.sh.  There they export shell
  variables that nothing sets, because make does not put its own
  variables in the environment of a recipe.
- fe61df7 (PostgreSQL 14) replaced the with_openssl make variable
  with with_ssl = openssl.

So the demo cluster has no gpfdists certificates, and the gpfdist SSL
tests cannot run against it.  Export enable_gpfdist and with_ssl from
the Makefile again, and check with_ssl in demo_cluster.sh.

Assisted-by: Claude Code
The gpfdist regress and remote_regress Makefiles add the SSL tests
(gpfdist_ssl and gpfdists_multiCA) only when with_openssl is "yes".
PostgreSQL 14 (fe61df7) replaced that make variable with
with_ssl = openssl, so the SSL tests have been skipped since then.
Check with_ssl instead.

With the tests running again, gpfdist_ssl failed its TLS 1.0 and 1.1
checks.  gpfdist does reject these versions.  The test finds out if
curl supports --tls-max with "curl --help | grep tls-max", but curl
7.73 and later list only the most important options there, so the
test did not set a maximum version and curl connected with TLS 1.2.
Use "curl --help all".

Assisted-by: Claude Code
The gpfdist regression tests had stopped passing without anyone
noticing.  Fix them:

- exttab1: c5a298d stopped counting an encoding error twice in
  single row error handling.  The expected output still had the old
  count, 2, for the one bad row.  Expect 1.
- gpfdist2: PostgreSQL 16 changed the message for CREATE INDEX on a
  foreign table to "cannot create index on relation".  Update the
  expected output.
- test_watchdog.sh and test_ipv4v6_port.sh: the gpfdist watchdog
  stops gpfdist with abort(), which writes a core file.  CI fails a job
  that leaves a core file, so disable core files in these scripts.
  test_ipv4v6_port.sh runs only where nc is installed, as on Rocky 8.
- gpfdist2_compress: the test starts a gpfdist on port 7070 and does
  not stop it at the end.  Stop it, so that the port is free for the
  next run.

Assisted-by: Claude Code
@tuhaihe

tuhaihe commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

For the gpfdist tests in Rocky 9 and Rocky 10, you can see the following:

nc command not supported, passed ipv4v6 test

This nc command is installed in Rocky 8 but not installed in Rocky 9/10. We can ignore this nit. FYI.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants