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

Better tool for Prow job debugging. #9970

Closed
erain opened this issue Oct 31, 2018 · 3 comments
Closed

Better tool for Prow job debugging. #9970

erain opened this issue Oct 31, 2018 · 3 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@erain
Copy link
Contributor

erain commented Oct 31, 2018

This is a feature request for better Prow debugging tooling / documents.

Currently, the only way to debug a Prow job is to use the docker image, however some of the kubetest images, e.g. kubekins-e2e, have non-trivial setup (its entrypoint, $GOPATH, etc.). It is lack of clear guidance for Prow users on how to start debugging.

It would be great to have tooling for such purpose. Just some ideas:

  1. local Prow: to have a Prow job running locally inside a docker container.
  2. debug image: the image contains everything (minus security key), and could "just run".

Also many to have documents on how to debug Prow job in general. Currently I come up with something like the following to mount every dependent source repo into the image, but I guess there is something better:

docker run -it --entrypoint "" --name kubetest-$RANDOM \
  -v $GOPATH/src/repo-1:/workspace/repo1 \
  -v $GOPATH/src/repo-2:/workspace/repo2 \
  -v $GOPATH/src/k8s.io/test-infra:/workspace/test-infra \
  -v $HOME/.ssh:/workspace/.ssh/ \
 kubekins-e2e:<version-tag> /bin/bash
...
scenarios/kubernetes_e2e.py --check-leaked-resources --env ...

Thanks!

@stevekuznetsov
Copy link
Contributor

There was an issue tracking this somewhere -- a tool to output the docker run command to debug locally. @BenTheElder do you remember where that was?

@BenTheElder
Copy link
Member

#6590

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 27, 2019
@erain erain closed this as completed Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

5 participants