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

GH actions: purge expired artifacts #4565

Merged
merged 1 commit into from Feb 3, 2021
Merged

GH actions: purge expired artifacts #4565

merged 1 commit into from Feb 3, 2021

Conversation

juergba
Copy link
Member

@juergba juergba commented Feb 3, 2021

Description

Since recently the ESLint Check in GH actions is failing:
Error: HttpError: Failed to generate URL to download artifact
Error: Failed to generate URL to download artifact

GH does not delete expired artifacts.
https://api.github.com/repos/mochajs/mocha/actions/artifacts shows aprox. 20 artifacts, all of them expired.
When eslint-plus-action@v3.4.2 is trying to download an expired artifact, it fails. => see issue
It's unclear to me why we have artifact at all on that job.

{
  "total_count": 20,
  "artifacts": [
    {
      "id": 24440022,
      "node_id": "MDg6QXJ0aWZhY3QyNDQ0MDAyMg==",
      "name": "eslint-cache-key-lint-results-Tests-4498",
      "size_in_bytes": 5477,
      "url": "https://api.github.com/repos/mochajs/mocha/actions/artifacts/24440022",
      "archive_download_url": "https://api.github.com/repos/mochajs/mocha/actions/artifacts/24440022/zip",
      "expired": true,
      "created_at": "2020-11-03T05:04:09Z",
      "updated_at": "2020-11-03T05:04:17Z",
      "expires_at": "2021-02-01T04:53:25Z"
    },
....

Description

Add a scheduled action which deletes all expired artifacts.

@juergba juergba merged commit 3c2f82f into master Feb 3, 2021
@juergba juergba self-assigned this Feb 3, 2021
@juergba juergba added the qa label Feb 3, 2021
@juergba juergba added this to the next milestone Feb 3, 2021
@juergba juergba deleted the juergba/artifacts branch February 3, 2021 14:23
@juergba juergba modified the milestones: next, v8.3.0 Feb 11, 2021
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.

None yet

1 participant