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

Fixed Scans being marked as Failed after the First Jobs has failed - #2205

Merged
Weltraumschaf merged 5 commits into
mainfrom
bugfix/fix-early-scan-failure
Feb 13, 2024
Merged

Weltraumschaf merged 5 commits into
mainfrom
bugfix/fix-early-scan-failure

Conversation

@Ilyesbdlala

@Ilyesbdlala Ilyesbdlala commented Jan 19, 2024 •

Copy link
Copy Markdown
Member

Description

Changed the condition for failed job to requiring exceding the specified BackoffLimit
BackoffLimit can be set in the values.yaml of scanners
This allows that a scan is only considered as Failed if all "retries" have failed
closes #238

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.

@netlify

netlify Bot commented Jan 19, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-securecodebox canceled.

Name Link
🔨 Latest commit 50f5d26
🔍 Latest deploy log https://app.netlify.com/sites/docs-securecodebox/deploys/65c65a7bfc2a690008eaed1b

@github-actions

github-actions Bot commented Jan 19, 2024 •

Copy link
Copy Markdown

🦙 MegaLinter status: ⚠️ WARNING

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

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

@Alon-Katz

Copy link
Copy Markdown

Hi, are there any updates on this PR? We are experiencing a serious issue that this PR could solve, and we would greatly appreciate it if we could proceed with it.

@Ilyesbdlala

Ilyesbdlala commented Jan 30, 2024 •

Copy link
Copy Markdown
Member Author

Hi, are there any updates on this PR? We are experiencing a serious issue that this PR could solve, and we would greatly appreciate it if we could proceed with it.

Working on it :) The tests just need to be updated, and the fix should be in the next release.

@Ilyesbdlala
Ilyesbdlala force-pushed the bugfix/fix-early-scan-failure branch 2 times, most recently from a6f3299 to 364ce25 Compare February 9, 2024 17:01
…fLimit

BackoffLimit can be set in the values.yaml of scanners
This allows that a scan  is only considered as Failed if all "retries" have failed
BackoffLimit is an int32; negative BackoffLimit values act like a value of 0, and non int
are not allowed when the helm chart is deployed
Co-authored-by: Boris Shek <boris.shek@iteratec.com>
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
This fits better the definition of BackOffLimit
https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
Default is 3. This avoid needless retries in jest intergration tests

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

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

Default is 3. This avoid needless retries in jest intergration tests

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
@Ilyesbdlala
Ilyesbdlala force-pushed the bugfix/fix-early-scan-failure branch from 364ce25 to 50f5d26 Compare February 9, 2024 17:01
@sonarqubecloud

sonarqubecloud Bot commented Feb 9, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

Scans are marked as Failed after the First Jobs has failed

5 participants