-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
added prow job for depstat #22137
added prow job for depstat #22137
Conversation
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Welcome @RinkiyaKeDad! |
Hi @RinkiyaKeDad. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @spiffxp |
BASE_SHA="${PULL_BASE_SHA:-""}"; ARTIFACTS="${ARTIFACTS:-tmp/artifacts}"; | ||
mkdir -p "${ARTIFACTS}"; | ||
export GO111MODULE=on; | ||
go get github.com/kubernetes-sigs/depstat; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go get
or go install
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also doesn't doing a go get in this directory impact the go.mod/sum of kubernetes itself? (leading to bad results)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
were you able to test this locally? you can use docker run
with the golang
image drop into shell and simulate the script. you can volume mount kubernetes/kubernetes as well.
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
/ok-to-test |
@RinkiyaKeDad you can run shell check on the snippet. see what popped when i tried it. (shellcheck.net). let's fix at least the |
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
@dims fixed all the ones shown except this: AFAIK we need to add a comment like |
containers: | ||
- image: golang | ||
command: ["/bin/bash"] | ||
args: ["-c", "set -euo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think one of the tests is failing because it expects a ]
at the end of this line. So should I have the entire thing in one line to fix this? '-'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the other pattern in general use : https://cs.k8s.io/?q=-%20%5C%7C&i=nope&files=&excludeFiles=&repos=kubernetes/test-infra
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
/uncc @BobyMCbobs |
git checkout -b base "${BASE_SHA}" \ | ||
write_report > "${ARTIFACTS}/stats-base.json" \ | ||
diff_reports "${ARTIFACTS}"/stats-base.json "${ARTIFACTS}"/stats.json \ | ||
fi \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove \
at the end of the last line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you may need to separate lines using ;
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
/label tide/merge-method-squash |
BASE_SHA="${PULL_BASE_SHA:-"09268c16853b233ebaedcd6a877eac23690b5190"}"; \ | ||
ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}"; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dims if I exclude these two lines and run bash -c "<rest of the script>"
it works. With them I get this error:
mkdir: missing operand
Try 'mkdir --help' for more information.
This is because these variables don't get set when the entire script is passed to bash -c
.
What I can't seem to understand is why this is happening because individually running these two commands and then passing the rest of the script works.
P.S. I'll remove the hardcoded SHA before we merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try this, note the quotes.
BASE_SHA=${PULL_BASE_SHA:-"09268c16853b233ebaedcd6a877eac23690b5190"}; \
ARTIFACTS=${ARTIFACTS:-/tmp/artifacts}; \
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not working 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try bash -c ''
(try single quote there with the change above too)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This didn't work too :(
Trying something simpler like: bash -c 'ARTIFACTS="/tmp/artifacts";'
is also not working.
Also the only test failing says:
Can you please point me to where I have to add this "testgrid"? EDIT: I guess somewhere here: https://github.com/kubernetes/test-infra/tree/master/testgrid, right? |
not sure what you are doing @RinkiyaKeDad :) |
good news is .. what you have in there works fine :) I had to fix the default for BASE_SHA
|
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
@RinkiyaKeDad ping me when this is green please |
Signed-off-by: RinkiyaKeDad <arshsharma461@gmail.com>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, RinkiyaKeDad 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 |
@RinkiyaKeDad: Updated the
In response to this:
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. |
Signed-off-by: RinkiyaKeDad arshsharma461@gmail.com
git checkout
to the base SHA (main branch of k/k) and then generate the stats for that and then finally diff the two results.Huge thanks to @spiffxp for helping out with this!
Link to the relevant slack discussion.
cc @dims