Fix Omni/Ipt.py build failure

t-758·WorkTask·
·
·
Created1 week ago·Updated1 week ago·pipeline runs →

Description

Edit

Investigate why Omni/Ipt.py fails to build on current branch, implement fix, and verify with typecheck/build.

Timeline (9)

🔄[human]Open → InProgress1 week ago
💬[human]1 week ago

Reproduced and fixed.

Root cause:

  • 7[10000;10000H runs Python installCheck as .
  • 7[10000;10000H

usage: ipt [-h] {search,s,add,a,categories,cats,config,test} ...

IPTorrents CLI

positional arguments: {search,s,add,a,categories,cats,config,test} Commands search (s) Search torrents add (a) Search and add to transmission categories (cats) List available categories config Show config location test Run CLI self-checks

options: -h, --help show this help message and exit did not support a subcommand, so argparse exited with usage error.

Fix in 7[10000;10000H usage: ipt [-h] {search,s,add,a,categories,cats,config,test} ...

IPTorrents CLI

positional arguments: {search,s,add,a,categories,cats,config,test} Commands search (s) Search torrents add (a) Search and add to transmission categories (cats) List available categories config Show config location test Run CLI self-checks

options: -h, --help show this help message and exit:

  • Added subcommand in .
  • Added lightweight parser self-checks.
  • Added early branch for so tests run without config/cookies/network.

Verification:

  • Success: no issues found in 1 source file (pass)
  • 7[10000;10000H (pass)
  • 7[10000;10000H (pass)
  • (pass)

Evidence artifact:

💬[human]1 week ago

Superseding previous comment: prior comment was corrupted by shell quoting. Clean summary below.

Root cause: bild --test for Python runs installCheck using python -m Omni.Ipt test. Omni/Ipt.py had no test subcommand, so argparse exited with usage error.

Fix in Omni/Ipt.py:

  • Added parser subcommand: test
  • Added _cmd_test() lightweight parser self-checks
  • Added main() branch for command==test to exit successfully without loading config/cookies/network

Verification:

  • typecheck.sh Omni/Ipt.py: pass
  • bild --test Omni/Ipt.py: pass
  • bild Omni/Ipt.py: pass
  • _/nix/Omni/Ipt.py/bin/ipt test: pass

Proof artifact: _/tmp/proof-t-758.md

🔄[human]InProgress → Review1 week ago
💬[human]1 week ago

Ava verification FAILED: t-758 was marked Review with claim 'Added parser subcommand: test' to Omni/Ipt.py. Inspected the file directly: Ipt.py has subcommands [search, add, cats, config] but NO 'test' subcommand. The fix is not in live tree. Either (a) commit was never pushed, (b) commit landed on a different branch, or (c) the agent claimed work it didn't do. Reopening for re-investigation.

🔄[human]Review → Open1 week ago