Skip to content

gitignore: ignore oracle-check generated files in IvorySQL contribs - #1447

Merged
gaoxueyu merged 2 commits into
IvorySQL:masterfrom
123123213weqw:wangyue/fix-1400-gitignore-oracle-check
Aug 3, 2026
Merged

gaoxueyu merged 2 commits into
IvorySQL:masterfrom
123123213weqw:wangyue/fix-1400-gitignore-oracle-check

Conversation

@123123213weqw

@123123213weqw 123123213weqw commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Running make oracle-check in IvorySQL-specific contrib modules leaves generated directories (log/, results/, tmp_check/) reported as untracked by git status. Reported in #1400 for contrib/ivorysql_ora, but the same gap affects the other IvorySQL-specific contribs that were added without a .gitignore.

The root cause: src/Makefile.global.in defines

oracle_regress_clean_files = results/ regression.diffs regression.out tmp_check/ tmp_check_iso/ log/ output_iso/

so oracle-check / oracle-installcheck produce log/, results/, tmp_check/ (plus regression.diffs / regression.out only on failure). Upstream PostgreSQL contribs ignore these via a per-module .gitignore (see contrib/bloom/.gitignore), but the IvorySQL-specific contribs never picked up that template.

Fix

Add the standard upstream PostgreSQL .gitignore template (/log/, /results/, /tmp_check/) to the four IvorySQL-specific contrib modules that were missing it:

Module Before After
contrib/ivorysql_ora (#1400) only /ivorysql_ora--1.0.sql adds /log/ /results/ /tmp_check/
contrib/gb18030_2022 none new
contrib/ora_btree_gin none new
contrib/pg_get_functiondef none new

As in upstream PostgreSQL (src/test/regress/.gitignore comment: "regression. are only left behind on a failure; that's why they're not ignored"*), regression.diffs and regression.out are intentionally not ignored — they only appear on test failure and serve as a reminder.

Verified locally: after touch log/x results/y tmp_check/z in contrib/ivorysql_ora, git status no longer reports those paths; ivorysql_ora--1.0.sql (the pre-existing ignore) remains ignored as well.

Fixes #1400

Summary by CodeRabbit

  • Chores
    • Updated contribution-area ignore rules to exclude generated logs, results, and temporary check files.
    • Prevented generated test and build artifacts from appearing as untracked changes.

Add standard PostgreSQL-style .gitignore files to the IvorySQL-specific
contrib modules so that "make oracle-check" generated directories
(log/, results/, tmp_check/) are no longer reported as untracked by git.

Affected modules:
  - contrib/ivorysql_ora (reported in IvorySQL#1400; only had /ivorysql_ora--1.0.sql)
  - contrib/gb18030_2022 (no .gitignore at all)
  - contrib/ora_btree_gin (no .gitignore at all)
  - contrib/pg_get_functiondef (no .gitignore at all)

The new entries mirror contrib/bloom/.gitignore from upstream PostgreSQL.
As in upstream, regression.diffs and regression.out are intentionally NOT
ignored because they are only left behind on a test failure.

Fixes IvorySQL#1400

Signed-off-by: Yue Wang <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 43465ccc-0cef-4ec5-9ef5-7512fa2e9d16

📥 Commits

Reviewing files that changed from the base of the PR and between 15d3b5b and 2e761fc.

📒 Files selected for processing (4)
  • contrib/gb18030_2022/.gitignore
  • contrib/ivorysql_ora/.gitignore
  • contrib/ora_btree_gin/.gitignore
  • contrib/pg_get_functiondef/.gitignore

📝 Walkthrough

Walkthrough

Four contrib extension .gitignore files now exclude generated log/, results/, and tmp_check/ directories created by checks.

Changes

Generated output ignores

Layer / File(s) Summary
Ignore generated check directories
contrib/gb18030_2022/.gitignore, contrib/ivorysql_ora/.gitignore, contrib/ora_btree_gin/.gitignore, contrib/pg_get_functiondef/.gitignore
Adds ignore rules for generated log/, results/, and tmp_check/ directories across four contrib extensions.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

  • IvorySQL/IvorySQL#1388: Updates contrib/ivorysql_ora/.gitignore with an additional generated SQL artifact ignore rule.
🚥 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 matches the main change: adding oracle-check-related .gitignore entries for IvorySQL contrib modules.
Linked Issues check ✅ Passed The PR addresses #1400 by ignoring the generated oracle-check folders/files so they no longer appear as untracked.
Out of Scope Changes check ✅ Passed The changes stay within scope, limited to adding ignore rules in the affected contrib modules.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ 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.

@hanjianqiao

Copy link
Copy Markdown
Collaborator

Nice work. Merging shortly.

@123123213weqw

Copy link
Copy Markdown
Contributor Author

Hi @hanjianqiao, gentle ping — CI is still green on this end. Whenever you have a moment to merge, much appreciated. Thanks!

@123123213weqw

123123213weqw commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Nice work. Merging shortly.
@hanjianqiao
Hi, just checking in on this. Is there anything else needed from my side before it can be merged? Thanks!

@gaoxueyu
gaoxueyu merged commit 76038db into IvorySQL:master Aug 3, 2026
7 checks passed
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.

make oracle-check generated folders/files are not ignored by Git

4 participants