-
Notifications
You must be signed in to change notification settings - Fork 2k
machine-config-operator: Make all tests run when requested #3635
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
Conversation
Today we spawn *three* clusters every time someone does a `git push`. That's pretty nuts, and IMO doing this type of thing across all the repos is both an unnecessary waste of money, and also exacerbates issues with AWS resource limits. I sometimes hesitate at doing `git push` to fix a typo in a comment as part of a PR review because I know that push may end up stealing an AWS NAT limit that's going to be used by an actually important job. For the MCO specifically many of our changes are extremely unlikely to break `e2e-aws`, and if they did they'd break `e2e-aws-op` too. So we'll do e.g. `/test e2e-aws` on demand in PRs, or `/test all`, etc.
|
/hold |
|
More detail from @cgwalters for folks like me who are shaky on these job properties:
|
|
We're debating whether or not this actually works. The intended semantics are still to have all the jobs run after My reading of the Prow docs implied it was, but I could be wrong! (Do we have a "test repo" setup where we can play with job configs?) Or with Prow and this type of config today do we need to do when setting up to merge? |
|
@cgwalters: you cannot LGTM your own PR. DetailsIn 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. |
|
I'm doing this for a whole lot of reasons; another example is that right now at the moment I'd like to iterate on |
|
/approve As an aside, we should also be looking into measuring the cloud API requirements for our cluster tests so that we can determine what the maximum number of jobs we can run concurrently while ensuring a high rate of success. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, sdodson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Interesting idea and seems possible. I think you need to create a trigger based on /lgtm: https://github.com/kubernetes/test-infra/blob/master/prow/jobs.md#triggering-jobs-with-comments |
it looks great to me, assuming we clear out confusion on how triggers work |
I don't see such a key in the Prow docs nor in any of our jobs. |
|
I'm super on board with not running e2e on each and every push before my PR is ready for review and would love for these tests to be on-demand until I'm looking for a final approval. |
|
|
I don't know why you are worried about this. You aren't the problem, the infra is the problem. Our spend is a tiny fraction of the cost of business. Not a significant worry. |
|
/hold |
|
Some weird side effects of what you are doing:
I don't think this is what you want to do. |
|
A cluster run costs us between $0.25 and $0.50 |
|
If we get some idea of how many resources a job uses, we can have a throttle on the total number of concurrent jobs hitting the AWS API in a given zone. |
|
The current priority is
|
But also something we can do ourselves without waiting on AWS; #3615. |
@stevekuznetsov which team would be best equipped to measure that? |
|
@sdodson it's work that DPTP may take on for 4.2 |
|
@cgwalters: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. I understand the commands that are listed here. |
|
/close Looks stale, please reopen & rebase if still needed. |
|
@petr-muller: Closed this PR. DetailsIn 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. |
Today we spawn three clusters every time someone does a
git push.That's pretty nuts, and IMO doing this type of thing across
all the repos is both an unnecessary waste of money, and also
exacerbates issues with AWS resource limits.
I sometimes hesitate at doing
git pushto fix a typo in a commentas part of a PR review because I know that push may end up
stealing an AWS NAT limit that's going to be used by an actually
important job.
For the MCO specifically many of our changes are extremely
unlikely to break
e2e-aws, and if they did they'd breake2e-aws-optoo.So we'll do e.g.
/test e2e-awson demand in PRs, or/test all, etc.