Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

CRI: add oom_score_adj isolator #658

Merged
merged 1 commit into from
Sep 23, 2016
Merged

CRI: add oom_score_adj isolator #658

merged 1 commit into from
Sep 23, 2016

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Sep 22, 2016

This is for rkt/rkt#3203
@lucab please review?

Copy link
Contributor

@lucab lucab left a comment

Choose a reason for hiding this comment

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

Code LGTM, tests are missing.

tests := []struct {
in []string

wset []LinuxCapability
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess you forgot to wire in the new tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, this test wasn't needed - I forgot to delete it.

Copy link
Contributor

Choose a reason for hiding this comment

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

This test and the JSON one exercise slightly different codepaths, can you just bring it back and adapt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The codepath tested here doesn't exist for the OOM case, because it's a scalar / simple value.

@s-urbaniak
Copy link
Contributor

LGTM

@squeed squeed merged commit a7746b7 into appc:cri Sep 23, 2016
@squeed squeed deleted the cri-oom branch September 23, 2016 13:18
@jonboulle
Copy link
Contributor

lgtm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants