← 输入框|github.com|刷新
Skip to content

Fixed Scan not marked as Errored when exceeding the Job BackoffLimit - #2568

Merged
Weltraumschaf merged 2 commits into
mainfrom
bugfix/fix-backofflimit
Jul 31, 2024
Merged

Weltraumschaf merged 2 commits into
mainfrom
bugfix/fix-backofflimit

Conversation

@Ilyesbdlala

@Ilyesbdlala Ilyesbdlala commented Jul 9, 2024 •

Copy link
Copy Markdown
Member

Description

Add isBackoffLimitExceeded function to check if a job has failed due to exceeding the backoff limit

we had the assumption that job.Status.Failed calculates the number of times the job failed. it is actually the number of pods that failed due to this job. In this case it will always be a max of 1.
Supplemented it with job.Status.Conditions[].Reason

closes #2326

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

…d due to exceeding the backoff limit

we had the assumption that job.Status.Failed calculates the number of times the job failed. it is actually the number of pods that failed due to this job. In this case it will always be a max of 1. Supplemented it with job.Status.Conditions[].Reason

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
@netlify

netlify Bot commented Jul 9, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-securecodebox ready!

Name Link
🔨 Latest commit e4c54e3
🔍 Latest deploy log https://app.netlify.com/sites/docs-securecodebox/deploys/66a90e69f913f0000874f313
😎 Deploy Preview https://deploy-preview-2568--docs-securecodebox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions

github-actions Bot commented Jul 9, 2024 •

Copy link
Copy Markdown

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
⚠️ GO golangci-lint yes 1 0.42s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
@sonarqubecloud

Copy link
Copy Markdown

@Weltraumschaf
Weltraumschaf merged commit b29dfa9 into main Jul 31, 2024
@Weltraumschaf
Weltraumschaf deleted the bugfix/fix-backofflimit branch July 31, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

The scan status displays 'Scanning,' even though the job has reached the specified backoff limit

4 participants