Comments (6)
hi @pankajbokdia , thanks for reaching out.
Unfortunately I can't reproduce your problem. I just created a test repo with a minimal github workflow that creates two artifacts and then triggers this action to delete them. The deletion just worked fine.
Here's the test repo (feel free to use it as a reference):
https://github.com/christian-korneck/test322
That's from the log of the workflow run:
Run christian-korneck/delete-run-artifacts-action@v1
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
artifacts before deletion: 2
processing artifact: test1 18080653
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
status: 204
processing artifact: test2 18080654
status: 204
artifacts after deletion: 0
🎉 all artifacts deleted
Is your repo available publicly somewhere? Or could you share the relevant parts of the workflow? Thanks.
from delete-run-artifacts-action.
i got the same error but looks is randomly if i re-run the action works!!
from delete-run-artifacts-action.
Thanks @joeleduardo for the comment. Sounds a bit like a github reliability issue. However, I've never seen it and also couldn't reproduce it even with a high number of test runs. How often do you see this happen? (I could imagine that these are rare partial server side outages of certain github services?). Is there anything special about the way you handle artifacts in your workflow (i.e. very large artifacts, etc)?
(If someone would point me to a public repo with a failed run I could contact github support?)
from delete-run-artifacts-action.
We also get this error intermittently, but artifacts are always deleted, to us it seems like a cache issue or similar, simply that Github reports artifacts that have actually been deleted.
We could be interested in adding a retry option, if you're open for that.
from delete-run-artifacts-action.
ok, judging from the number of reports in this issue this seems to happen more often than I expected.
We could be interested in adding a retry option, if you're open for that.
sounds like a good idea. Feel free to send a PR, if you like.
from delete-run-artifacts-action.
I've now added this backoff retry behaviour:
- when no artifacts are found, retry for up to ~ 4 minutes
- when we end up with undeleted artifacts, retry for up to ~ 20 minutes
I hope this solves your problems @Asamsig @joeleduardo @pankajbokdia . If not, let me know. Thanks a lot for your feedback!
from delete-run-artifacts-action.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delete-run-artifacts-action.