Skip to content

smart-test command - #163

Merged
daniel-de-vera merged 6 commits into
mainfrom
git-tests-x-subcommands
Apr 4, 2025
Merged

daniel-de-vera merged 6 commits into
mainfrom
git-tests-x-subcommands

Conversation

@scott-cotton

@scott-cotton scott-cotton commented Apr 3, 2025 •

Copy link
Copy Markdown
Member

As discussed added prominently visible aliases to get, list, cancel tests subcommands.

After doing this I think I prefer back-pedalling and having signadot {t, test} run and signadot {tx,test-execution} {get, cancel,list}.

Thoughts? cc @foxish

25-04-03 scott@air cli % ./signadot t help
Signadot tests

Usage:
  signadot test [command]

Aliases:
  test, t

Available Commands:
  cancel-execution Cancel test executions (with alias cancelx)
  get-execution    Get a test execution (with alias getx)
  list-executions  List test executions (with alias listx)
  run              Run tests

Flags:
  -h, --help   help for test

Global Flags:
      --config string   config file (default is $HOME/.signadot/config.yaml)
      --debug           enable debug output
  -o, --output string   output format (json|yaml)

Use "signadot test [command] --help" for more information about a command.

@foxish

foxish commented Apr 3, 2025 •

Copy link
Copy Markdown
Member

After doing this I think I prefer back-pedalling and having signadot {t, test} run and signadot {tx,test-execution} {get, cancel,list}.

Thoughts? cc @foxish

I think unifying the entity still makes sense, since they are smart-tests / associated functionality after all. I've been instead thinking of suggesting signadot smart-test ... or signadot st ... to be consistent across more surfaces WDYT? IMO, the entity name is what we have as the sub-command (aka job, sandbox, rg) etc and this makes it consistent.

@foxish

foxish commented Apr 3, 2025

Copy link
Copy Markdown
Member

After doing this I think I prefer back-pedalling and having signadot {t, test} run and signadot {tx,test-execution} {get, cancel,list}.

Thoughts? cc @foxish

I think unifying the entity still makes sense, since they are smart-tests / associated functionality after all. I've been instead thinking of suggesting signadot smart-test ... or signadot st ... to be consistent across more surfaces WDYT? IMO, the entity name is what we have as the sub-command (aka job, sandbox, rg) etc and this makes it consistent.

If the verbosity of smart-test is worrisome, I think stest also works.

@scott-cotton

Copy link
Copy Markdown
Member Author

After doing this I think I prefer back-pedalling and having signadot {t, test} run and signadot {tx,test-execution} {get, cancel,list}.

Thoughts? cc @foxish
I think unifying the entity still makes sense, since they are smart-tests / associated functionality after all. I've been instead thinking of suggesting signadot smart-test ... or signadot st ... to be consistent across more surfaces WDYT? IMO, the entity name is what we have as the sub-command (aka job, sandbox, rg) etc and this makes it consistent.

If the verbosity of smart-test is worrisome, I think stest also works.

I will change it to smart-test with alias st

If you or anyone is available to sync up to address the problem of cognitive dissonance with the x subcommand I'm happy to.

@scott-cotton scott-cotton changed the title Git tests x subcommands smart-test command Apr 3, 2025
@scott-cotton

Copy link
Copy Markdown
Member Author

Following discussion, this now behaves as follows

25-04-03 scott@air cli % ./signadot st -h
Signadot smart tests

Usage:
  signadot smart-test [command]

Aliases:
  smart-test, st

Available Commands:
  execution   Work with smart test executions
  run         Run tests

Flags:
  -h, --help   help for smart-test

Global Flags:
      --config string   config file (default is $HOME/.signadot/config.yaml)
      --debug           enable debug output
  -o, --output string   output format (json|yaml)

Use "signadot smart-test [command] --help" for more information about a command.
25-04-03 scott@air cli % ./signadot st x -h
Work with smart test executions

Usage:
  signadot smart-test execution [command]

Aliases:
  execution, x

Available Commands:
  cancel      Cancel a test execution
  get         Get a test execution
  list        List test executions

Flags:
  -h, --help   help for execution

Global Flags:
      --config string   config file (default is $HOME/.signadot/config.yaml)
      --debug           enable debug output
  -o, --output string   output format (json|yaml)

Use "signadot smart-test execution [command] --help" for more information about a command.
25-04-03 scott@air cli %

@daniel-de-vera daniel-de-vera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daniel-de-vera
daniel-de-vera merged commit 786a5a6 into main Apr 4, 2025
@daniel-de-vera
daniel-de-vera deleted the git-tests-x-subcommands branch April 4, 2025 13:32
scott-cotton added a commit that referenced this pull request Jul 28, 2026
Picks up the fixes for foxish's review of signadot/libconnect#163:

- ipmap no longer hands a dropped host's address to a new host in the
  same Set, which was misrouting the tunnel's ORIG_DEST reverse lookup
  to whichever service inherited the address. This one also affects the
  default /etc/hosts resolver, not just --local-dns.
- Cluster domain and namespace names from the tunnel API are validated
  as DNS names before they become /etc/resolver file names and
  /etc/resolv.conf directives.
- Linux crash recovery keeps the resolv.conf backup when the file is
  missing, instead of deleting the only copy that could restore it.
- The macOS PATH prefix for scutil/dscacheutil/killall is now actually
  applied, flush failures are logged, and install reconciles against
  what is on disk rather than its own bookkeeping.
- Borrowed short-name zones are only claimed when off-zone misses can be
  forwarded upstream, and reserved single-label namespaces are skipped.

Verified end to end on macOS against signadot-staging with this pin:
225 hosts / 675 names, 30 resolver files registered in scutil, short and
fully-qualified names resolving to the same address, HTTP 200 through
the tunnel, no resolver-file churn across refresh ticks, clean restore
on disconnect, and zero WARN/ERROR for the session.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

3 participants