Skip to content

feat(worker): add delete_app_version to drop dev pre-releases#147

Merged
nilsmechtel merged 2 commits into
mainfrom
feat/delete-app-version
Jul 22, 2026
Merged

feat(worker): add delete_app_version to drop dev pre-releases#147
nilsmechtel merged 2 commits into
mainfrom
feat/delete-app-version

Conversation

@nilsmechtel

Copy link
Copy Markdown
Collaborator

Problem

The dev-iteration upload workflow (documented in the user-facing skill) publishes a clean X.Y.Z release after iterating on X.Y.Z-devN pre-releases, then wants to delete the throwaway pre-releases. Today delete_app only deletes the whole artifact, so cleanup has to reach past the worker into artifact_manager.delete(..., version=…) directly.

Solution

Add delete_app_version(artifact_id, version) to the worker admin API. Guards:

  • admin permission (same as delete_app);
  • only versions whose tag contains dev are deletable — released versions are immutable and may be referenced by test-reports / the website version list, so they're protected in code, not just docs;
  • refuse if that exact version is currently deployed on this worker (stop it first).

Test plan

Dev-image smoke test on a live worker: upload X.Y.Z-dev1/-dev2, deploy -dev1, then confirm delete_app_version (a) deletes a non-deployed -dev version, (b) refuses a released version, (c) refuses the currently-deployed -dev version.

Files

  • bioengine/apps/manager.py — the method.
  • bioengine/worker/worker.py — expose it on the service.

nilsmechtel and others added 2 commits July 21, 2026 23:11
Supports the dev-iteration upload workflow: iterate on X.Y.Z-devN pre-releases,
publish X.Y.Z once, then delete the throwaway pre-releases through the worker
admin API instead of reaching into the artifact manager directly.

Guards: admin permission; only versions whose tag contains 'dev' are deletable
(released versions are immutable and may be referenced by test-reports/website);
and the version must not be currently deployed on this worker.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nilsmechtel
nilsmechtel marked this pull request as ready for review July 21, 2026 21:14
@nilsmechtel
nilsmechtel merged commit 61dc902 into main Jul 22, 2026
1 check passed
@nilsmechtel
nilsmechtel deleted the feat/delete-app-version branch July 22, 2026 07:16
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