Skip to content

Wait for whale tag erasure to finish and check its status - #47

Open
barislabs wants to merge 2 commits into
Project-CETI:mainfrom
barislabs:fix/42-wait-for-tag-erasure
Open

barislabs wants to merge 2 commits into
Project-CETI:mainfrom
barislabs:fix/42-wait-for-tag-erasure

Conversation

@barislabs

Copy link
Copy Markdown

Hi! I’m a big fan of Project CETI and its mission, and I wanted to help with this small fix.

Fixes #42.

clean_tag() currently starts the erase command and closes SSH without waiting for the result. This waits for completion and reports success only after exit status 0. A nonzero or missing status raises an error with the remote output.

The existing preflight checks and deletion command are unchanged. Combined output is drained before waiting for status so a full SSH output window cannot block completion.

Checks

  • 13 offline regression tests pass on Python 3.12.14. They cover success, nonzero/missing status, interrupted reads, diagnostics and the preflight guards.
  • The regression suite fails against unchanged main.
  • An in-memory Paramiko channel check confirmed buffered stderr is preserved when combining streams.
  • Syntax and whitespace checks pass. Independent reviews found no remaining blocking issue.

The tests use dependency doubles and block socket connections. No real tag, AWS service or live deletion was used. Full platform CI and hardware validation have not been run.

Related work

This is based on current main and stays separate from #36 and #46. The premature success message quoted in #42 appears in #36, not main. #46 changes the surrounding connection ownership; a locally reconciled copy passed 34 offline tests after updating its mocks for the new command result. If either PR lands first, this patch will need reconciliation.

assisted by Agentic methodologies; outputs reviewed by Barış.

@barislabs
barislabs marked this pull request as ready for review November 22, 2026 00:24
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.

clean_tag() doesn't verify deletion succeeded

1 participant