Skip to content

chore: remove IDE artifacts from version control#22

Closed
wombatu-kun wants to merge 2 commits into
lance-format:mainfrom
wombatu-kun:chore/cleanup-ide-artifacts
Closed

chore: remove IDE artifacts from version control#22
wombatu-kun wants to merge 2 commits into
lance-format:mainfrom
wombatu-kun:chore/cleanup-ide-artifacts

Conversation

@wombatu-kun
Copy link
Copy Markdown

@wombatu-kun wombatu-kun commented Apr 22, 2026

Summary

  • Replace piecemeal .idea/*.xml ignores with a blanket .idea ignore in .gitignore.
  • Add symmetric out/ handling (with the usual src/main / src/test exclusions), consistent with the existing target/ and build/ blocks in this file.
  • git rm --cached all 9 previously-tracked .idea/ files — they stay on contributors' disks for local IntelliJ use but are no longer under version control.

The tracked files removed from the index:

File Note
.idea/CopilotChatHistory.xml 7.4 MB GitHub Copilot chat history — the main reason this PR exists
.idea/CopilotChatTabs.xml Copilot UI state
.idea/MarsCodeWorkspaceAppSettings.xml third-party IDE plugin settings
.idea/codeStyles/Project.xml, .idea/codeStyles/codeStyleConfig.xml IDE codestyle (intentionally dropped — Spotless + google-java-format will be the single source of truth in a follow-up PR)
.idea/encodings.xml, .idea/misc.xml, .idea/vcs.xml IntelliJ workspace-specific files
.idea/.gitignore IntelliJ-generated; redundant once .idea is blanket-ignored

Vova Kolmakov and others added 2 commits May 24, 2026 15:36
The repository had 9 `.idea/` files committed against intent,
totaling ~7.5 MB — dominated by `.idea/CopilotChatHistory.xml`
(7.4 MB of AI chat history). The previous `.gitignore` enumerated
`.idea/X.xml` entries piecemeal, which let other IDE files
(encodings.xml, misc.xml, vcs.xml, codeStyles/, etc.) slip in.

This commit:

- Replaces the piecemeal `.idea/X.xml` block with a blanket
  `.idea` ignore plus symmetric `out/` handling, mirroring
  the sister repo `lance-format/lance-spark`.
- Runs `git rm --cached` on all 9 tracked `.idea/` files.
  They remain on disk for local IntelliJ use but are no longer
  under version control.

IDE-level codestyle (`.idea/codeStyles/*.xml`) is removed
intentionally: the planned Spotless + google-java-format
adoption will be the single source of truth for formatting;
a separate IDE codestyle in git would diverge over time.
The shade plugin writes dependency-reduced-pom.xml next to pom.xml on
every package build. Add it to .gitignore so it stops showing up as
untracked after `mvn package`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@wombatu-kun wombatu-kun force-pushed the chore/cleanup-ide-artifacts branch from f128f1d to 471bb45 Compare May 24, 2026 08:37
@github-actions github-actions Bot added the chore Maintenance and chores label May 24, 2026
fightBoxing pushed a commit to fightBoxing/lance-flink that referenced this pull request May 30, 2026
Port two additions from lance-format#22 (credit @wombatu-kun):
- out/ (IntelliJ/Eclipse output dir) with the same src/main and src/test
  symmetric exclusions used for target/ and build/
- dependency-reduced-pom.xml (Maven shade plugin artifact)

These complement the existing IDE + test-data runtime cleanup so the
working tree stays clean across both IntelliJ and Eclipse users.
@fightBoxing
Copy link
Copy Markdown
Collaborator

Hi @wombatu-kun, thanks for putting this together — you correctly identified a real pain point, and the out/ symmetric ignore block was a nice touch.

I just opened #40 which covers the same cleanup with a slightly broader scope:

Same as your PR:

  • Blanket .idea rule via .gitignore
  • git rm --cached for CopilotChatHistory.xml (~7.4MB), CopilotChatTabs.xml, encodings.xml, MarsCodeWorkspaceAppSettings.xml

Additionally in #40:

  • Removal of test-data/lance-db{1,2,3} and test-data/lance-vector-search runtime artifacts (manifests / .txn / *.lance blobs) that were causing perpetual dirty working trees on every test run — this was actually the bigger source of noise locally
  • .agents/ ignore (subagent tooling dir)
  • Just ported your out/ symmetric block + dependency-reduced-pom.xml into chore: stop tracking IDE personal config & test-data runtime files #40 (74d7344) — credit kept in the commit message 🙏

Two files your PR removes that #40 deliberately leaves for now:

  • .idea/codeStyles/Project.xml + codeStyleConfig.xml — left so they can be replaced atomically alongside your Spotless + checkstyle work in build: add spotless, checkstyle, and enforcer plugin configuration #23, avoiding a brief window with no code-style source of truth
  • .idea/misc.xml, .idea/vcs.xml — pure IDE workspace state; happy to drop them in a follow-up if you'd prefer

Going to close this in favor of #40 to avoid duplicate review effort. Really appreciate the cleanup work — would love your eyes on #23 / #24 progress when you're back. 🙏

@fightBoxing
Copy link
Copy Markdown
Collaborator

Closing in favor of #40 (which is a superset and now also includes the out/ + dependency-reduced-pom.xml ignores ported from this PR). See above comment for the full diff comparison.

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

Labels

chore Maintenance and chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants