Skip to content

chore: delete the two SQLite databases committed into the tree - #366

Open
ywatanabe1989 wants to merge 1 commit into
developfrom
chore/remove-committed-sqlite-databases
Open

chore: delete the two SQLite databases committed into the tree#366
ywatanabe1989 wants to merge 1 commit into
developfrom
chore/remove-committed-sqlite-databases

Conversation

@ywatanabe1989

Copy link
Copy Markdown
Collaborator

Two real SQLite database files were tracked in this repository:

file size
.scitex/clew/runtime/db.sqlite 69,632 bytes
examples/_legacy/scitex/clew/multi_parent/scitex/clew.db 94,208 bytes

Neither is referenced by any code. Both are stale artefacts of a clew runtime that no longer exists — and the repository already says so, in two places, without ever having removed them:

.gitignore:930            **/scitex/clew.db
.scitex/dev/config.yaml   "stale orphan dir (clew.db inside; ...)"

An ignore rule does not untrack a file that is already tracked. That is the whole story of how a 94 KB database sat in a Python package's examples directory while being explicitly ignored.

How the other one got in

.gitignore listed db.sqlite3 and db.sqlite3-journal but not db.sqlite, so .scitex/clew/runtime/db.sqlite matched nothing at all. This PR adds db.sqlite beside db.sqlite3 in both ignore blocks (lines 147 and 393) so the same one-character gap cannot be walked through again.

Verification

After this change, git ls-files filtered on \.db$|\.sqlite$|\.sqlite3$ returns nothing in this repository.

Scope

Part of the fleet-wide SQLite eradication. Deliberately not touched: scitex-db, crossref-local and openalex-local — named exceptions whose databases must survive.

Two real SQLite database files were tracked in this repository:

  .scitex/clew/runtime/db.sqlite                             69,632 bytes
  examples/_legacy/scitex/clew/multi_parent/scitex/clew.db   94,208 bytes

Neither is referenced by any code. Both are stale artefacts of a clew
runtime that no longer exists, and the repository already says so in two
places without ever having removed them:

  .gitignore:930          **/scitex/clew.db
  .scitex/dev/config.yaml   "stale orphan dir (clew.db inside; ...)"

An ignore rule does not untrack a file that is already tracked, which is
why `clew.db` survived being explicitly ignored. That is the whole story
of how a 94 KB database sat in a Python package's examples directory.

WHY THE OTHER ONE GOT IN: .gitignore listed `db.sqlite3` and
`db.sqlite3-journal` but NOT `db.sqlite`, so `.scitex/clew/runtime/db.sqlite`
matched nothing. Added `db.sqlite` beside `db.sqlite3` in both ignore
blocks so the same gap cannot be walked through again.

After this, `git ls-files` matching `\.db$|\.sqlite$|\.sqlite3$` returns
nothing in this repository.

Part of the fleet-wide SQLite eradication. Deliberately NOT touched:
scitex-db, crossref-local and openalex-local, which are named exceptions
and whose databases must survive.
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