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

🌱 Add soft mem limit to controller k8s spec #2362

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

spencerschrock
Copy link
Member

What kind of change does this PR introduce?

(Is it a bug fix, feature, docs update, something else?)

What is the current behavior?

What is the new behavior (if this is a feature change)?**

  • Docker images now use go1.19 like the rest of scorecard. (which was also needed for GOMEMLIMIT)
  • The controller now has a soft memory limit (with a 5-10% overhead as suggested by the GC guide). The controller failed in a recent run due to OOMKilled
  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

Will apply the config change to the release test first, and then the production controller after a few days

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Merging #2362 (ee3f29e) into main (c408592) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2362   +/-   ##
=======================================
  Coverage   40.55%   40.55%           
=======================================
  Files         112      112           
  Lines        8822     8822           
=======================================
  Hits         3578     3578           
  Misses       4984     4984           
  Partials      260      260           

@github-actions
Copy link

Integration tests success for
[ee3f29e]
(https://github.com/ossf/scorecard/actions/runs/3269345375)

Copy link
Member

@naveensrinivasan naveensrinivasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@naveensrinivasan naveensrinivasan merged commit 412de9c into ossf:main Oct 18, 2022
latortuga71 pushed a commit to latortuga71/scorecard that referenced this pull request Oct 27, 2022
* Bump golang docker to 1.19

Signed-off-by: Spencer Schrock <sschrock@google.com>

* Add soft memory limit for controller to address OOMKilled.

Signed-off-by: Spencer Schrock <sschrock@google.com>

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: latortuga <latortugaaaa>
N8BWert pushed a commit to N8BWert/scorecard that referenced this pull request Nov 28, 2022
* Bump golang docker to 1.19

Signed-off-by: Spencer Schrock <sschrock@google.com>

* Add soft memory limit for controller to address OOMKilled.

Signed-off-by: Spencer Schrock <sschrock@google.com>

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: nathaniel.wert <nathaniel.wert@kudelskisecurity.com>
N8BWert pushed a commit to N8BWert/scorecard that referenced this pull request Nov 28, 2022
* Bump golang docker to 1.19

Signed-off-by: Spencer Schrock <sschrock@google.com>

* Add soft memory limit for controller to address OOMKilled.

Signed-off-by: Spencer Schrock <sschrock@google.com>

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: nathaniel.wert <nathaniel.wert@kudelskisecurity.com>
raghavkaul pushed a commit to raghavkaul/scorecard that referenced this pull request Feb 9, 2023
* Bump golang docker to 1.19

Signed-off-by: Spencer Schrock <sschrock@google.com>

* Add soft memory limit for controller to address OOMKilled.

Signed-off-by: Spencer Schrock <sschrock@google.com>

Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock deleted the cron-go-1.19 branch May 24, 2023 17:01
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.

2 participants