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

datatug / datatug-cli / 42372393923
100%

Build:
DEFAULT BRANCH: main
Ran 07 Nov 2026 12:29PM UTC
Jobs 1
Files 725
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

07 Nov 2026 12:25PM UTC coverage: 99.998% (-0.001%) from 99.999%
42372393923

push

github

web-flow
fix(dbcopy): refuse to copy labelled columns of a project source (#590)

Builds on datatug/datatug-cli#589, which has landed on `main`; this PR targets `main` and has `main` merged in.

Source commits:

- 37c574e11116 fix(db copy, db export): refuse to copy labelled columns of a project source
  A datatug:// --from now has its Meaning Graph sensitivity labels checked
  before anything is written: a selected table with a protected effective
  column (owner label, pending proposal or read-time suggestion) refuses
  the copy or export with exit 5 and FIELD_PROTECTED, for every caller.
  No copy engine masks, so refusing is the only safe behaviour. Unlabelled
  tables (--include/--exclude) copy as before; non-project sources are
  unchanged. Reuses the label machinery of the project-read guard
  (loadLabels, EffectiveObject, projectRead.describe).
  Spec: REQ:project-source-labels in spec/features/cli/db/copy.
- d9472a734b94 fix(db copy, db export): check labels in the copy's schema, after usage checks
  Review round 1 (Reviewed-Head 37c574e1):
  - the label check opened the source with the default PostgreSQL schema, so
  --from-schema let a labelled table through; it now opens the source as
  the copy does (openCopySource with --from-schema);
  - usage errors (?records-format, non-faithful --json/--dry-run, sqlscript
  from a non-SQLite source, same file, existing script) are reported with
  their exit code before the label check opens the source;
  - a source whose tables cannot be listed now refuses even with no label
  stored for it: a copy writes every table;
  - the single-catalog lookup is documented as shared with query run
  --db datatug:// (alias catalogs are a follow-up);
  - tests: db copy --json refusal, datatug:///<db>, --filter-config,
  usage-before-labels ordering, schema passed to the open.
- 0331ac4be420 Merge remote-tracking branch 'origin/main' into copy-export-labels
- 4680689d58b9 fix(dbcopy): copy label guard follows the final #589... (continued)

85 of 85 new or added lines in 4 files covered. (100.0%)

1 existing line in 1 file now uncovered.

99026 of 99028 relevant lines covered (100.0%)

1.01 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
99.79
-0.21% pkg/incidentstore/task3_store.go
Jobs
ID Job ID Ran Files Coverage
1 42372393923.1 07 Nov 2026 12:29PM UTC 725
100.0
GitHub Action Run
Source Files on build 42372393923
  • Tree
  • List 725
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a5c7da1a on github
  • Prev Build on main (#42371275155)
  • Next Build on main (#42374465490)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc