Skip to content

fix(prune-staging): recognise portal uploads by their manifest url - #208

Merged
eggfly merged 1 commit into
mainfrom
fix-prune-staging-names
Oct 26, 2026
Merged

eggfly merged 1 commit into
mainfrom
fix-prune-staging-names

Conversation

@eggfly

@eggfly eggfly commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Portal uploads are stored in staging as <login>__<file>, not the pool name. The prune rule (#207) therefore:

  • could not tell these uploads were already published, and
  • only compared open PRs' manifest filename, not the file their url downloads.

Open PR #206 (key-dash 0.4.2) downloads exactly such a file, which would have been deleted as stale on 2026-11-07, so the PR could no longer be promoted after merge.

Fix: match the url file name (URL-decoded) as well, and treat a prefixed upload as promoted when a manifest on main points at it and apt-pool holds that manifest's file.

Dry runs:

main (run) this branch (run)
Would delete 39 45 (the same 39 + 6 published prefixed uploads)
yuk1-kondo__key-dash_0.4.2-rev1_arm64.deb (used by #206) kept until day 14 kept while the PR is open

The other two kept files (a retro-zero test upload and key-dash 0.4.1) are unpublished and not used by any PR, so they are still removed once they are 14 days old.

🤖 Generated with Claude Code

Portal uploads are stored in staging as "<login>__<file>", not the pool
name, so the prune rule could neither tell they were published nor see
that an open PR still downloads one (it only compared manifest filename).
An open PR such as #206 would have lost its binary after 14 days.

Match the url file name too, and count a prefixed upload as promoted when
a manifest on main points at it and the pool holds that manifest file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eggfly
eggfly merged commit da6f6e0 into main Oct 26, 2026
1 check passed
@eggfly
eggfly deleted the fix-prune-staging-names branch October 26, 2026 15:11
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