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 a script to print summary of images used by jobs #21172

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

spiffxp
Copy link
Member

@spiffxp spiffxp commented Mar 5, 2021

it should probably turn into something not-bash if I'm going to lean on it too hard, but I found it useful for scoping out kubernetes/k8s.io#1523 and want to keep it somewhere shared

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 5, 2021
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Mar 5, 2021
@spiffxp
Copy link
Member Author

spiffxp commented Mar 5, 2021

/cc @chaodaiG @cjwagner
this is how I generated the snippet I shared
/cc @BenTheElder
E_TOOMUCHBASH

Sample output

# images used by prowjobs on prow.k8s.io
- total /                      2328 total, 53 unique
  - not gcr.io /               111 total, 13 unique
    - dockerhub /              106 total, 9 unique
    - quay.io /                5 total, 4 unique
  - gcr.io /                   2217 total, 40 unique
    - kubernetes.io
      - k8s-staging            22 total, 7 unique
      - k8s.gcr.io             10 total, 3 unique
    - google.com
      - k8s-prow               13 total, 6 unique
      - k8s-testimages         2148 total, 14 unique
        - kubekins-e2e         1867 total, 1 unique
        - image-builder        138 total, 1 unique
        - krte                 61 total, 1 unique
        - other                220 total, 12 unique
          - bazelbuild         5 total, 1 unique
          - benchmarkjunit     4 total, 1 unique
          - bigquery           2 total, 1 unique
          - bootstrap          9 total, 1 unique
          - e2e-kubemci        1 total, 1 unique
          - gcloud-bazel       23 total, 1 unique
          - gcloud-in-go       13 total, 1 unique
          - generic_autobump   2 total, 1 unique
          - gubernator         1 total, 1 unique
          - image-builder      138 total, 1 unique
          - krte               61 total, 1 unique
          - bazel              5 total, 1 unique
          - triage             1 total, 1 unique
    - other                    24 total, 10 unique
      - bazel                  25 total, 3 unique
      - ci                     2 total, 1 unique
      - mdlint                 3 total, 1 unique
      - shellcheck             3 total, 1 unique
      - minikube-e2e           1 total, 1 unique
      - minigo-prow-harness-v2 4 total, 1 unique
      - gcloud-bazel           24 total, 2 unique
      - bazel                  25 total, 3 unique
      - cip                    5 total, 1 unique
      - octodns                1 total, 1 unique

@chaodaiG
Copy link
Contributor

chaodaiG commented Mar 5, 2021

Since it serves its purpose, not going to nitpicking on bash styling. I think you should update the copyright header

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 10, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chaodaiG, spiffxp

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot merged commit 8c4374f into kubernetes:master Mar 10, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.21 milestone Mar 10, 2021
@spiffxp spiffxp deleted the print-job-image-summary branch March 29, 2021 14:23
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants