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

Delete workflow runs #26219

Open
sebthom opened this issue Jul 29, 2023 · 9 comments
Open

Delete workflow runs #26219

sebthom opened this issue Jul 29, 2023 · 9 comments
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@sebthom
Copy link

sebthom commented Jul 29, 2023

Feature Description

GitHub Actions allows to delete single workflow runs. Would be nice to have this in Gitea Actions too.

My use case would be to delete some obsolete failed runs on branches where the corresponding commit was removed from a branch via a force push.

Screenshots

No response

@sebthom sebthom added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 29, 2023
@wolfogre wolfogre added the topic/gitea-actions related to the actions of Gitea label Jul 31, 2023
@cassiozareck
Copy link
Contributor

Is there anyone working on this? I'm interested in implement this functionality.

My steps would be create a new function in actions/run.go that can do almost the opposite of InsertRun, creating a transaction to erase tables associate with the Run as well its jobs. Also implement a higher-level function on view.go so that the router can use it and pass the parameter of the workflow run ID through the web.

@steadfasterX

This comment was marked as duplicate.

@Enrico204
Copy link
Contributor

I am interested too, although the time I have to work on is very limited. @cassiozareck have you started working on some code?

@cassiozareck
Copy link
Contributor

cassiozareck commented Jul 20, 2024

Hi Enrico! I'm no longer working on this feature and gitea in general. Ive wrote some code you can check out here #26275 but its a bit outdated and It's a slight more complex feature than I thought. I think @wolfogre may help you in this case

@wolfogre
Copy link
Member

Thank you for your work on this. I'll pick it up later once I have time.

@tycho
Copy link

tycho commented Aug 6, 2024

I'd like to see this feature too. I'm specifically interested in some kind of cron task to delete runs older than a certain duration (e.g. 1 month or something). They take up tons of space in the database, so it'd be ideal to prune them when they're no longer needed.

And of course the GitHub-style "delete run" button would be nice.

@Enrico204
Copy link
Contributor

Unfortunately, I won't be able to contribute for the time being. It is not clear to me whether Gitea requires a CLA or not (by reading the "Contributing" page), and I don't want to be considered a "Gitea Author" also for the code I haven't written. I will probably continue to report typos and code that I am sure it won't create a "creative work" as defined by laws.

@inxcts
Copy link

inxcts commented Oct 13, 2024

I would love to see this feature too.

@Tockra
Copy link

Tockra commented Nov 26, 2024

Is there currently some progress?
I built our deploy pipeline and I had a lot of issues there.... Try and error... So I run the workflows e.t 60 times last week. But now I have 60 entries in my action section which have no benefit. It just worse the overview of the action page. I want to delete them but I found this issue here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

8 participants