Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

Ilyesbdlala
Copy link
Member

@Ilyesbdlala Ilyesbdlala commented Jul 9, 2024

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 <[email protected]>
Copy link

netlify bot commented Jul 9, 2024

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.

Copy link

github-actions bot commented Jul 9, 2024

🦙 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

Copy link

@Weltraumschaf Weltraumschaf merged commit b29dfa9 into main Jul 31, 2024
54 checks passed
@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