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

Create a plugin that tests job changes #18338

Closed
alvaroaleman opened this issue Jul 16, 2020 · 6 comments
Closed

Create a plugin that tests job changes #18338

alvaroaleman opened this issue Jul 16, 2020 · 6 comments
Labels
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@alvaroaleman
Copy link
Member

alvaroaleman commented Jul 16, 2020

What would you like to be added:

A way to test job changes. Openshift does this via a CLI that checks out the config repo, finds changed jobs and creates a so-called "rehearse" job": https://github.com/openshift/ci-tools/tree/master/cmd/pj-rehearse. What openshift does is highly specific because many jobs there rely on configmaps that then also need to be deployed. This shouldn't be the case for most jobs of other prow instances.

So basically a plugin that on config-repo (test-infra in kube casse) PRs:

  • Finds added/changed jobs
  • Creates an instance of them and reports that back to the job change pr
  • Potentially this needs opt out logic and/or a dedicated command to trigger this
  • Some railguards i.E. create at most N rehearse jobs

Why is this needed:

Because currently job config changes are untestable if access to the prow.k8s.io build cluster is not given.

/area prow
/cc @BenTheElder @fejta

@alvaroaleman alvaroaleman added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 16, 2020
@k8s-ci-robot k8s-ci-robot added the area/prow Issues or PRs related to prow label Jul 16, 2020
@BenTheElder
Copy link
Member

BenTheElder commented Jul 16, 2020 via email

@alvaroaleman
Copy link
Member Author

Yeah in my experience jobs that do not actually run in the real cluster are just different. mkpod requires to set up a different decoration config or know other intimate details. Many jobs generally assume the presence of certain secrets.

I just ran into the issue with my "increase CPU requests oh damn the cluster doesn't have nodes this size" change and since I am used to getting feedback on job changes, I wanted to leave the idea here.

I am not going to build this, it is just intended as an idea for the ppl that have to regularly deal with the fun of this.

@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 Oct 14, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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 rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 13, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

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

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
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants