-
Notifications
You must be signed in to change notification settings - Fork 9
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 artifact api request sometimes fails - add retry? #6
Comments
hi @pankajbokdia , thanks for reaching out. Here's the test repo (feel free to use it as a reference): That's from the log of the workflow run:
Is your repo available publicly somewhere? Or could you share the relevant parts of the workflow? Thanks. |
i got the same error but looks is randomly if i re-run the action works!! |
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?) |
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. |
ok, judging from the number of reports in this issue this seems to happen more often than I expected.
sounds like a good idea. Feel free to send a PR, if you like. |
I've now added this backoff retry behaviour:
I hope this solves your problems @Asamsig @joeleduardo @pankajbokdia . If not, let me know. Thanks a lot for your feedback! |
I am getting this error when using this
Run christian-korneck/delete-run-artifacts-action@v1
with:
parent_runid: 261405865
parent_repo: pankajbokdia/repoName
env:
GITHUB_TOKEN: ***
[@octokit/rest]
const Octokit = require("@octokit/rest")
is deprecated. Useconst { Octokit } = require("@octokit/rest")
instead[@octokit/rest]
const Octokit = require("@octokit/rest")
is deprecated. Useconst { Octokit } = require("@octokit/rest")
insteadartifacts before deletion: 1
processing artifact: build 18063905
status: 204
artifacts after deletion: 1
##[error]🛑 not all artifacts deleted (1 remaining)
Please help
The text was updated successfully, but these errors were encountered: