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

Import 'cpuset' from kubernetes repository in kubernetes/utils #267

Merged
merged 45 commits into from
Mar 13, 2023

Commits on Aug 22, 2017

  1. Configuration menu
    Copy the full SHA
    b85b369 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2017

  1. Configuration menu
    Copy the full SHA
    d1715d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4fa778d View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2017

  1. Configuration menu
    Copy the full SHA
    ddade34 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. Configuration menu
    Copy the full SHA
    f1d8919 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2017

  1. Un-revert "CPU manager wiring and none policy"

    This reverts commit 8d2832021ad049eee6f184315a10f3abe18036f9.
    ConnorDoyle committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    29447ad View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2017

  1. update BUILD files

    ixdy committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    ec56fa4 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2017

  1. Autogenerate BUILD files

    ixdy committed Dec 23, 2017
    Configuration menu
    Copy the full SHA
    cff40fd View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2018

  1. Configuration menu
    Copy the full SHA
    7eb02a2 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2018

  1. Move from glog to klog

    - Move from the old github.com/golang/glog to k8s.io/klog
    - klog as explicit InitFlags() so we add them as necessary
    - we update the other repositories that we vendor that made a similar
    change from glog to klog
      * github.com/kubernetes/repo-infra
      * k8s.io/gengo/
      * k8s.io/kube-openapi/
      * github.com/google/cadvisor
    - Entirely remove all references to glog
    - Fix some tests by explicit InitFlags in their init() methods
    
    Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
    dims committed Nov 10, 2018
    Configuration menu
    Copy the full SHA
    7e40445 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2019

  1. Configuration menu
    Copy the full SHA
    4b7ce99 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2019

  1. Configuration menu
    Copy the full SHA
    698abcb View commit details
    Browse the repository at this point in the history
  2. Union all CPUSets in one round

    tedyu authored and yutedz committed May 3, 2019
    Configuration menu
    Copy the full SHA
    c6ec728 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2019

  1. Add test for CPUSet#UnionAll

    Signed-off-by: Ted Yu <yute@vmware.com>
    tedyu authored and yutedz committed May 16, 2019
    Configuration menu
    Copy the full SHA
    784b297 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #77421 from tedyu/cpu-free-no-sort

    Obtain unsorted slice in cpuAccumulator#freeCores
    k8s-ci-robot authored May 16, 2019
    Configuration menu
    Copy the full SHA
    f80a642 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2019

  1. Merge pull request #77609 from tedyu/union-all-test

    Add test for CPUSet#UnionAll
    k8s-ci-robot authored May 17, 2019
    Configuration menu
    Copy the full SHA
    e9313b0 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. switch over k/k to use klog v2

    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed May 16, 2020
    Configuration menu
    Copy the full SHA
    095fd5a View commit details
    Browse the repository at this point in the history
  2. Run hack/update-vendor.sh

    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed May 16, 2020
    Configuration menu
    Copy the full SHA
    6a3eb90 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2020

  1. Configuration menu
    Copy the full SHA
    a30212f View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2021

  1. Provide additional methods under the CPUSet

    - ToSliceInt64 returns sorted slice of cores IDs in int64 format
    - ToSliceNoSortInt64 returns slice of cores IDs in int64 format
    
    Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
    Artyom Lukianov committed Jan 20, 2021
    Configuration menu
    Copy the full SHA
    3daa5f4 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2021

  1. hack/update-bazel.sh

    BenTheElder committed Feb 28, 2021
    Configuration menu
    Copy the full SHA
    8ad3669 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2021

  1. e2e: node: add tests for GetAllocatableResources

    Add e2e tests for the new GetAllocatableResources API.
    The tests are added in the `podresources_test` suite
    created previously in this series.
    
    Signed-off-by: Francesco Romani <fromani@redhat.com>
    ffromani committed Mar 9, 2021
    Configuration menu
    Copy the full SHA
    c292b98 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d75b841 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Merge pull request #100007 from utsavoza/ugo/issue-98976/09-03-2021

    Migrate remaining pkg/kubelet/cm/ top level files to structured logging
    k8s-ci-robot authored Mar 16, 2021
    Configuration menu
    Copy the full SHA
    799a0c9 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2021

  1. cpuset.Parse: Fix edge cases and add negative tests

    The cpuset.Parse function missed a couple bad input cases, specifically
    "1--3" and "10-6".  These were silently ignored when they should instead
    be flagged as invalid.
    
    This now catches these cases and expands the unit tests for cpuset to
    cover them (and other negative test cases as well).
    
    Signed-off-by: Jim Ramsay <jramsay@redhat.com>
    lack committed May 11, 2021
    Configuration menu
    Copy the full SHA
    0e7c4f7 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2021

  1. Fix kubelet cpuset typo

    saintube authored Jun 10, 2021
    Configuration menu
    Copy the full SHA
    df4f9fd View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. Configuration menu
    Copy the full SHA
    f2bcb51 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2021

  1. Check in OWNERS modified by update-yamlfmt.sh

    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    0e0c352 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Cleanup OWNERS files (No Activity in the last year)

    Signed-off-by: Davanum Srinivas <davanum@gmail.com>
    dims committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    4104a4e View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2022

  1. Fix comment typo

    Signed-off-by: chymy <chang.min1@zte.com.cn>
    chymy committed Mar 14, 2022
    Configuration menu
    Copy the full SHA
    6dd4eaf View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. Configuration menu
    Copy the full SHA
    fd3ebb5 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2023

  1. cpuset: Convert Union arguments to variadic

    This allows Union to implement UnionAll easily.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    145217e View commit details
    Browse the repository at this point in the history
  2. cpuset: Remove 'MustParse' method

    Removes exit/fatal from cpuset library.
    
    Usage in podresources test was not necessary.
    
    Library reference in cpu_manager_test was moved to a local function, and
    converted to use e2e test framework error catching.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    1d9bc82 View commit details
    Browse the repository at this point in the history
  3. cpuset: Remove *Int64 methods

    These are rarely used and can be accommodated with a trivial helper.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    0ac3d42 View commit details
    Browse the repository at this point in the history
  4. cpuset: Make 'ToSlice*' methods look like 'set' methods

    In 'set', conversions to slice are done also, but with different names:
    
    ToSliceNoSort() -> UnsortedList()
    ToSlice() -> List()
    
    Reimplement List() in terms of UnsortedList to save some duplication.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    8370a8e View commit details
    Browse the repository at this point in the history
  5. cpuset: hide 'Filter' API

    FilterNot is only used in this file, and is trivially converted to a
    'filter' call site by inverting the predicate.
    
    Filter is only used in this file, so don't export it.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    d373be6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    26783f0 View commit details
    Browse the repository at this point in the history
  7. cpuset: Delete 'builder' methods

    All usage of builder pattern is convertible to cpuset.New()
    with the same or fewer lines of code.
    
    Migrate Builder.Add to a private method of CPUSet, with a comment
    that it is only intended for internal use to preserve immutable
    propoerty of the exported interface.
    
    This also removes 'require' library dependency, which avoids
    non-standard library usage.
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    4477621 View commit details
    Browse the repository at this point in the history
  8. cpuset: Add package comment

    Describe use cases (node IDs, HT siblings, etc)
    
    Call out novelty (Linux CPU list parse/dump)
    
    Describe future work (relax immutable, refactor to use 'set')
    iancoolidge committed Jan 6, 2023
    Configuration menu
    Copy the full SHA
    0ab6448 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2023

  1. cpuset: Fix Parse() error message for n-k s.t. k<n

    This case is tested extensively in cpuset_test.go, but the error message
    needs a small adjustmnet.
    iancoolidge committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    b911e13 View commit details
    Browse the repository at this point in the history
  2. cpuset: Add a few more test cases

    Feedback from kubernetes#267 and related
    reviews.
    
    * Equality when insertion order is different
    * UnsortedList contents
    * Not-Subset cases
    * Clone coverage
    iancoolidge committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    2160ea2 View commit details
    Browse the repository at this point in the history
  3. cpuset: Convert Fatalf to Errrof in tests

    Use of Fatalf is not apppropriate in any of these cases:
    None of these failures are prerequisites.
    iancoolidge committed Feb 21, 2023
    Configuration menu
    Copy the full SHA
    005e850 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    da7083c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    442de19 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. cpuset: Fixup owners and add origin comment

    * Note that this came from kubernetes repository
    * Remove emeritus owners
    * Add klueska, dchen1107, ffromani, klueska, SergeyKanzhelev to owners
    iancoolidge committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    3aa0d1f View commit details
    Browse the repository at this point in the history