• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ingitdb / ingitdb-cli / 25797828871
96%

Build:
DEFAULT BRANCH: main
Ran 13 May 2026 12:02PM UTC
Jobs 1
Files 105
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 May 2026 12:01PM UTC coverage: 80.411% (-0.2%) from 80.632%
25797828871

push

github

inGitDB Dev
feat(cli/drop): implement --remote via Git Data API (one atomic commit)

Drop now accepts --remote/--token/--provider with the same grammar as
every other verb. Unlike the per-file Contents API used by FileReader,
the remote drop path uses GitHub's Git Data API (blobs/trees/commits/
refs) so a collection drop that touches N files lands as exactly one
commit — honoring spec REQ:one-commit-per-write even when --cascade
drops multiple objects.

New: pkg/dalgo2ghingitdb/tree_writer.go
  - TreeChange{Path, Content []byte} — Content=nil means delete.
  - TreeWriter.ListFilesUnder(ctx, dir) — recursive tree walk with
    prefix filter; errors on truncated trees so partial views are
    never trusted.
  - TreeWriter.CommitChanges(ctx, msg, []TreeChange) — assembles a
    new tree from the base, creates the commit, updates the ref;
    returns the new commit SHA. Errors before any I/O on empty
    changes or empty message.
  - resolveBranch — honors cfg.Ref or falls back to the repo's
    default branch via Repositories.Get.

New: cmd/ingitdb/commands/drop_remote.go
  - dropCollectionRemote: read .ingitdb/root-collections.yaml,
    enumerate every blob under the collection's directory, build one
    TreeChange batch with the file deletions plus the rewritten
    root-collections.yaml, commit.
  - dropViewRemote: read root-collections, scope by --in or scan all
    collections, read the view file to discover its file_name for the
    materialized output, commit both deletions atomically. Ambiguous
    view names error out the same way as the local path.
  - Both honor --if-exists for idempotent "already gone" semantics.

Wiring:
  - cmd/ingitdb/commands/drop.go now registers --remote/--token/
    --provider as persistent flags; each subcommand's RunE rejects
    --path with --remote, then dispatches to the remote helper when
    --remote is set.
  - cmd/ingitdb/commands/seams.go adds the treeWriter interface and
    treeWriterFactory seam so tests can substitut... (continued)

215 of 301 new or added lines in 4 files covered. (71.43%)

7545 of 9383 relevant lines covered (80.41%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
51
65.77
cmd/ingitdb/commands/drop_remote.go
30
76.0
pkg/dalgo2ghingitdb/tree_writer.go
3
75.0
-25.0% cmd/ingitdb/commands/seams.go
2
85.62
1.12% cmd/ingitdb/commands/drop.go
Jobs
ID Job ID Ran Files Coverage
1 25797828871.1 13 May 2026 12:02PM UTC 105
80.41
GitHub Action Run
Source Files on build 25797828871
  • Tree
  • List 105
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7e460fba on github
  • Prev Build on main (#25789578953)
  • Next Build on main (#25802810467)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc