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

[Bug]: Nightly job is failing as step to clean previous tag cannot find it #483

Open
cmoulliard opened this issue Jan 28, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Contributor

cmoulliard commented Jan 28, 2025

What is your environment, configuration, and command?

Issue

The Github Workflow Nightly job is failing since a few days as the step to clean a previous tag cannot find it and generates this error


Run actions/github-script@v7
RequestError [HttpError]: Not Found
    at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:9537:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35424:16), <anonymous>:3:23)
    at async main (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35522:20) {
  status: 404,
  response: {
    url: 'https://api.github.com/repos/cnoe-io/idpbuilder/releases/tags/v0.9.0-nightly.20250123',
    status: 404,
    headers: {
      'access-control-allow-origin': '*',
      'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
      'content-encoding': 'gzip',
      'content-security-policy': "default-src 'none'",
      'content-type': 'application/json; charset=utf-8',
      date: 'Fri, 24 Jan 2025 07:13:11 GMT',
      'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
      server: 'github.com',
      'strict-transport-security': 'max-age
Image

What did you do and What did you see instead?

n/a

Additional Information. Logs.

n/a

@cmoulliard cmoulliard added the bug Something isn't working label Jan 28, 2025
@connorkuehl
Copy link

I think it is able to find the previous tag, but is failing to find a previous GitHub Release.

For example, here is the nightly job that pushed the tag in this bug report: https://github.com/cnoe-io/idpbuilder/actions/runs/12924109657/job/36042538900

Which then triggers the release workflow:

- 'v[0-9]+.[0-9]+.[0-9]+-nightly.[0-9]+'

Which failed for that tag before creating a GitHub release from it: https://github.com/cnoe-io/idpbuilder/actions/runs/12924112357/job/36042545223

Which resulted in a lack of a GitHub release for that nightly tag, causing the lookup to fail in the nightly's clean step.

I think the nightly's clean step should be able to degrade gracefully here, either by catching a 404 exception and going green and/or splitting the clean step into discrete fetch and delete steps, where the delete step is skipped if the fetch step catches a 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants