Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(admin/clean): clean executable when build is cleaned #988

Merged
merged 4 commits into from
Oct 17, 2023

Conversation

ecrupper
Copy link
Contributor

As builds tend to get stuck in pending or running states, the clean endpoint has been great for routine clean up. However, it didn't clear the executable from the DB, which will only sit there forever without manual intervention before this change.

@ecrupper ecrupper requested a review from a team as a code owner October 13, 2023 22:18
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #988 (f5340fe) into main (bb35e76) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #988      +/-   ##
==========================================
+ Coverage   71.03%   71.10%   +0.06%     
==========================================
  Files         312      313       +1     
  Lines       13018    13028      +10     
==========================================
+ Hits         9247     9263      +16     
+ Misses       3303     3299       -4     
+ Partials      468      466       -2     
Files Coverage Δ
database/executable/clean.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

wass3r
wass3r previously approved these changes Oct 14, 2023
api/admin/clean.go Outdated Show resolved Hide resolved
@ecrupper ecrupper merged commit d90fdb7 into main Oct 17, 2023
11 of 13 checks passed
@ecrupper ecrupper deleted the fix/clean/executable branch October 17, 2023 15:34
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.

4 participants