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

Skip to content

Conversation

@haircommander
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

If InfraCtrCPUSet is configured, then there is an expectation that all commands land on certain CPUs. However, this isn't always the case. Thus, we need a way of spawning commands given a list of CPUs.

To do this, update cmdrunner to be a singleton object that stores an optional command and args to prepend to commands. Then use this singleton anytime exec.Command would be called.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Add functionality to use taskset to spawn new commands cri-o runs. Now, if InfraCtrCPUSet is called, all newly spawned commands will be placed in the InfraCtrCPUSet (as it's expected to be set to the reserved CPU set that system commands should run on).

@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jan 20, 2022
@openshift-ci openshift-ci bot requested a review from umohnani8 January 20, 2022 18:52
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 20, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2022
@haircommander
Copy link
Member Author

cherry-pick of #5547

@codecov
Copy link

codecov bot commented Jan 20, 2022

Codecov Report

Merging #5557 (4aa8a9c) into release-1.21 (91c3cb8) will increase coverage by 0.05%.
The diff coverage is 58.53%.

❗ Current head 4aa8a9c differs from pull request most recent head dc80caa. Consider uploading reports for the commit dc80caa to get more accurate results

@@               Coverage Diff                @@
##           release-1.21    #5557      +/-   ##
================================================
+ Coverage         44.99%   45.05%   +0.05%     
================================================
  Files               107      109       +2     
  Lines             11010    11038      +28     
================================================
+ Hits               4954     4973      +19     
- Misses             5577     5586       +9     
  Partials            479      479              

@haircommander
Copy link
Member Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 21, 2022

@haircommander: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/openshift-jenkins/integration_crun_cgroupv2 dc80caa link false /test integration_cgroupv2
ci/openshift-jenkins/e2e_crun_cgroupv2 dc80caa link false /test e2e_cgroupv2

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@wgahnagl wgahnagl left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2022
@openshift-merge-robot openshift-merge-robot merged commit aebb17b into cri-o:release-1.21 Jan 21, 2022
@haircommander
Copy link
Member Author

/cherry-pick release-1.20

@openshift-cherrypick-robot

@haircommander: #5557 failed to apply on top of branch "release-1.20":

Applying: cmdrunner: create singleton
Applying: cmdrunner: add tests for prepended commands
Applying: config: prepend commands with taskset if InfraCtrCPUSet is configured
Using index info to reconstruct a base tree...
M	pkg/config/config.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/config/config.go
CONFLICT (content): Merge conflict in pkg/config/config.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0003 config: prepend commands with taskset if InfraCtrCPUSet is configured
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Details

In response to this:

/cherry-pick release-1.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants