GithubHelp home page GithubHelp logo

Comments (6)

christian-korneck avatar christian-korneck commented on May 21, 2024

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.

joeleduardo avatar joeleduardo commented on May 21, 2024

i got the same error but looks is randomly if i re-run the action works!!

from delete-run-artifacts-action.

christian-korneck avatar christian-korneck commented on May 21, 2024

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.

Asamsig avatar Asamsig commented on May 21, 2024

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.

christian-korneck avatar christian-korneck commented on May 21, 2024

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.

christian-korneck avatar christian-korneck commented on May 21, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.