Skip to content

ci: perltidy the test suite to satisfy the pgperltidy check#21

Merged
jdatcmd merged 3 commits into
mainfrom
ci/perltidy-cleanup
Jul 16, 2026
Merged

ci: perltidy the test suite to satisfy the pgperltidy check#21
jdatcmd merged 3 commits into
mainfrom
ci/perltidy-cleanup

Conversation

@jdatcmd

@jdatcmd jdatcmd commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

The pgperltidy half of the "Check" CI job has been red on main and every PR because 27 test files were never run through perltidy. With pgindent now stabilized (#18), perltidy is the only thing keeping the Check job red.

This reformats those 27 files with the project profile (src/tools/pgindent/perltidyrc) using perltidy v20250105, the version the CI uses, so run-pgperltidy.sh --assert-tidy passes.

Safety

  • Formatting only. Every change is whitespace / line-wrapping; the token stream of each file is byte-identical after stripping whitespace (verified across all 27 files).
  • A sample of the reformatted tests (basic, tde_heap, wal_encrypt, rotate_key, unlogged_tables) still passes under the meson harness.
  • perltidy --assert-tidy passes on the full enumerated perl file set after the change.

No test logic changes.

🤖 Generated with Claude Code

ChronicallyJD and others added 3 commits July 16, 2026 06:27
The pgperltidy half of the "Check" CI job was red because 27 test files
predated (or were not run through) perltidy. Reformat them with the
project profile (src/tools/pgindent/perltidyrc, perltidy v20250105, the
version CI uses) so the check passes.

Formatting only: every change is whitespace/line-wrapping and the token
stream of each file is unchanged. A sample of the reformatted tests still
passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The multi-line trailing comment on OPEN_PG_TDE_WAL_KEY_FILE_MAGIC sat at a
deep indentation where it ran past the line-length limit, so the pgindent
check wanted to rewrap it. Move the rationale into the block comment above
the defines and shorten the trailing comments, which is clearer and keeps
them well under the column limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Follow-up: one comment line reached 80 columns; reword so every line is
under 78.
@jdatcmd jdatcmd merged commit 6345a5d into main Jul 16, 2026
26 of 37 checks passed
@jdatcmd jdatcmd deleted the ci/perltidy-cleanup branch July 16, 2026 13:39
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.

2 participants