Skip to content

chore(regression): remove dead test_advanced_config + Greenplum config gitignore#9949

Open
dpage wants to merge 1 commit into
pgadmin-org:masterfrom
dpage:docs/drop-unused-test-advanced-config
Open

chore(regression): remove dead test_advanced_config + Greenplum config gitignore#9949
dpage wants to merge 1 commit into
pgadmin-org:masterfrom
dpage:docs/drop-unused-test-advanced-config

Conversation

@dpage
Copy link
Copy Markdown
Contributor

@dpage dpage commented May 18, 2026

Summary

  • Delete web/regression/test_advanced_config.json.in — a 492-line template the README has instructed users to copy to test_advance_config.json (note: no "d") for years, but nothing in the test framework or CI reads either spelling of the resulting file. Repo-wide grep for test_advance_config / test_advanced_config returns hits only in this template, the README, and the local .gitignore — zero code references. The README and .gitignore also disagreed about whether the copied filename has a "d" in it, which is a typo trap that has gone unnoticed precisely because nobody actually performs the copy step.
  • Drop the test_greenplum_config.json entry from web/regression/.gitignore. Greenplum support was removed from pgAdmin years ago; the only remaining mentions in the tree are historical release-notes entries from 1.4–4.12.
  • Simplify web/regression/README.md section 2 to describe just the test_config.json that the framework actually consumes.

Net change: -511 / +8 across three files.

Test plan

  • grep -rn for test_advance_config / test_advanced_config across *.py, *.json, *.yml, Makefile, etc. — confirmed no code, test, or CI references.
  • grep -rn for greenplum across the same — confirmed only historical release-notes hits.
  • python regression/runtests.py --exclude feature_tests still completes (2212 tests, only an unrelated pre-existing permissions assertion on a manually-created ~/.pgadmin dir).

Summary by CodeRabbit

  • Documentation

    • Regression configuration instructions simplified to use a single server configuration template.
  • Chores

    • Removed advanced configuration template from regression testing.
    • Updated tracking settings for configuration files.

Review Change Stack

…g gitignore

Two related bits of long-stale plumbing in web/regression/:

* test_advanced_config.json.in — the README has told users for years to
  copy this template to test_advance_config.json (no "d") and customise
  it, but a repo-wide grep for either spelling shows zero code, test,
  or CI references. The .in template is dead, and the README/.gitignore
  also disagree about whether the copied filename has a "d" in it,
  which is a typo trap that has gone unnoticed precisely because nobody
  actually performs the copy step.

* test_greenplum_config.json — Greenplum support was removed from
  pgAdmin years ago (only references left in the tree are historical
  release-notes entries from versions 1.4 through 4.12). Nothing reads
  the config any more.

Drop the dead template, prune both stale lines from
web/regression/.gitignore, and simplify the README to describe just
the server-side test_config.json that the framework actually consumes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

Walkthrough

This PR removes the advanced configuration template (test_advanced_config.json.in) and simplifies regression test setup to use only a single server configuration file. Documentation, gitignore rules, and related references are updated accordingly.

Changes

Advanced Configuration Template Removal

Layer / File(s) Summary
Configuration documentation simplification
web/regression/README.md
Instructions now describe only the test_config.json.in template and its generation, removing references to test_advanced_config.json.in and the associated subsection for adding test data via advanced configuration.
Gitignore cleanup
web/regression/.gitignore
Ignore rules for test_greenplum_config.json and test_advanced_config.json are removed, reflecting the deprecation of advanced configuration support.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main changes: removal of the unused test_advanced_config template and cleanup of the Greenplum-related gitignore entry, matching the PR's core objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@web/regression/README.md`:
- Line 72: Update the sentence "expects to find the file in the  directory" to
remove the double space between "the" and "directory" so it reads "expects to
find the file in the directory"; locate the string in web/regression/README.md
(the line containing "expects to find the file in the  directory") and replace
the two spaces with a single space.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8ca161db-2ed2-4313-92c9-36538e86f4d9

📥 Commits

Reviewing files that changed from the base of the PR and between 86a8b16 and 0150fd6.

📒 Files selected for processing (3)
  • web/regression/.gitignore
  • web/regression/README.md
  • web/regression/test_advanced_config.json.in
💤 Files with no reviewable changes (2)
  • web/regression/test_advanced_config.json.in
  • web/regression/.gitignore

Comment thread web/regression/README.md
2b) After creating the server configuration file, add (or modify)
parameter values as per requirements. The pgAdmin4 regression framework
expects to find the files in the directory
expects to find the file in the directory
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix the extra whitespace in the sentence.

Line 72 contains a double space: "expects to find the file in the directory" which appears to be a leftover from editing. The sentence should have a single space.

📝 Proposed fix
-        expects to find the file in the  directory
+        expects to find the file in the directory
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
expects to find the file in the directory
expects to find the file in the directory
🤖 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 `@web/regression/README.md` at line 72, Update the sentence "expects to find
the file in the  directory" to remove the double space between "the" and
"directory" so it reads "expects to find the file in the directory"; locate the
string in web/regression/README.md (the line containing "expects to find the
file in the  directory") and replace the two spaces with a single space.

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.

1 participant