Skip to content

Stop reporting failed scale set deletes as success - #928

Merged
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
LucaCappelletti94:upstream/garm-scaleset-delete-error-check
Oct 23, 2026
Merged

gabriel-samfira merged 1 commit into
cloudbase:mainfrom
LucaCappelletti94:upstream/garm-scaleset-delete-error-check

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

DeleteScaleSetByID inverted its ErrNotFound check. A GitHub failure returned success and kept the record, which then blocks deleting the entity, while a 404 on the scale set returned an error. The actions service also answers 404 on /actions/runner-registration for a renamed or transferred repository, which would then read as the scale set being gone. Map that to a conflict naming the entity, as #918 does for the registration token, so ErrNotFound from the scale set client only means the scale set or runner itself.

@gabriel-samfira

Copy link
Copy Markdown
Member

Ohh wow! I really need to sleep more. Great catch!

@LucaCappelletti94

Copy link
Copy Markdown
Contributor Author

Ohh wow! I really need to sleep more. Great catch!

We all do, we all do. I just happened to find this because I migrated setup between orgs.

@gabriel-samfira
gabriel-samfira merged commit 755258b into cloudbase:main Oct 23, 2026
5 checks passed
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.

2 participants