Skip to content

test(durable-kernel): CLI integration test for storage inspect/upgrade (EG-DURABLE-KERNEL-R007) - #105

Closed
Knucklessg1 wants to merge 1 commit into
mainfrom
test/eg-durable-r007-storage-upgrade-cli
Closed

Knucklessg1 wants to merge 1 commit into
mainfrom
test/eg-durable-r007-storage-upgrade-cli

Conversation

@Knucklessg1

Copy link
Copy Markdown
Member

Summary

  • Adds tests/operator_command_store_upgrade_cli.rs, spawning the real epistemic-graph-server binary to exercise the store-upgrade inspect/store-upgrade apply operator-command subcommands end to end against a disposable empty data directory.
  • Closes the gap between R007's verification clause ("a CLI integration test exercising storage inspect and storage upgrade") and the existing coverage, which was library-level only (store_upgrade::inspect/apply unit tests in src/server/persistence/store_upgrade/tests.rs, plus a clap-parse-only unit test in src/operator_command.rs). Nothing previously spawned the compiled binary and asserted its exit status/stdout JSON report.
  • The underlying feature (the store-upgrade inspect/apply CLI surface itself) landed on main in PR feat(storage): operator command to inspect and apply offline store upgrades #56 (feat/operator-store-upgrade, commit 8dbb5bd9d) for EG-DURABLE-KERNEL-R070; this PR adds the CLI-level test specifically required by EG-DURABLE-KERNEL-R007's own verification clause.

Requirement delivered: EG-DURABLE-KERNEL-R007

Test plan

  • New integration test added: storage_inspect_reports_nothing_to_do_on_an_empty_data_directory, storage_apply_without_confirm_is_refused_and_opens_nothing, storage_apply_with_confirm_reports_nothing_to_do_on_an_empty_data_directory.
  • CI: cargo test -p epistemic-graph --features full --test operator_command_store_upgrade_cli (submitted to the R820/R510 lane-run pool; result not awaited in this PR per the spec-lane protocol — hosted CI is authoritative).

🤖 Generated with Claude Code

…e (EG-DURABLE-KERNEL-R007)

Spawns the real epistemic-graph-server binary and exercises the
store-upgrade inspect/apply subcommands against a disposable empty data
directory, proving the CLI wiring (clap subcommand parsing, exit status
propagation) end to end. Prior coverage was library-level only
(store_upgrade::inspect/apply unit tests), leaving the actual command-line
surface named by EG-DURABLE-KERNEL-R007 untested.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Knucklessg1 added a commit that referenced this pull request Oct 9, 2026
…gration branch

- orphan-modules: wire crates/eg-capabilities/tests/consistency/row_count.rs
  (added by #123) into tests/consistency.rs's mod tree.
- registry-test-ownership: add tests/operator_command_store_upgrade_cli.rs
  (added by #105) to eg.binary-composition's test_roots.
- contract-method-reachability: add the missing QueryForeignColumns
  contract/methods.json entry (#123 added the wire Method variant and the
  schemas but never the catalog row); bump method_count 462 -> 463 in both
  contract/methods.json and its epistemic_graph/ mirror, and in receipt.json.
- security/check_secret_history: add 5 reviewed, digest-pinned exceptions
  for already-pushed commits carrying synthetic/documentation DSN fixtures
  (RFC-reserved .invalid/.internal hosts, documented placeholder words) --
  manually verified none are live credentials.

All three local fast gates (orphan-modules, registry-test-ownership,
contract-method-reachability) plus check_public_specs, check_tracked_privacy
and check_secret_history now pass locally.
@Knucklessg1

Copy link
Copy Markdown
Member Author

Superseded by integration batch #211, which carries this PR's commits. They land on main with the batch.

@Knucklessg1 Knucklessg1 closed this Oct 9, 2026
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