-
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
Kubernetes CI Policy: all prow.k8s.io jobs must have testgrid alerts configured #18599
Comments
Some prior art to serve as starting points:
|
/help |
@spiffxp, myself, @ScrapCodes and @rayandas will do work together on the test. Coordinating with them both now. |
So @rayandas @ScrapCodes and myself met up to do exploratory work on this and as result we learned a little bazel! To run the test above we need to invoke bazel as follows :
Worth noting that we must use bazel to run this test and not the go test runner. The bazel build file is used to pull in test-grid runtime configuration using the
and also to pass in parameters to the test
|
/assign |
To run the specific test use
|
/remove help-wanted |
@RobertKielty the command is |
Reviewed #19286 (review) |
Reviewing this now. |
I want to talk about to @spiffxp about this when he gets back. |
Spoke with @spiffxp about this issue where I proposed writing a helper function to decouple selection of Kubernetes jobs from testing their policy conformance. |
/remove help |
/remove-help |
/milestone v1.21 |
Might be a good idea to hand off to someone else. |
/help I don't really see any way around having to use the tests in config/tests/testgrid. It's the only way you can guarantee you're walking testgrid configs that are the result of both whatever prowjob annotations exist, and whatever manually defined testgrids there are. And testgrid config is where the alerting is defined. Like, you have my full support if you want to try suggesting:
Because then if you could just use prowjob annotations it's way faster/easier to run But if you're not willing to tackle that to simplify the problem space, then... The slowest-but-it-already-works way to do this is use bazel to run the tests. The first time takes a long time (if I've timed it, I've forgotten, but longer than 10min), you end up recompiling the world, and you get a tiny space heater for a while. But then it's faster and you can iterate relatively quickly. There is a way you can use go to run the configurator to generate the testgrid proto, then run the testgrid tests point at that, but it's too easy to get tripped up and use stale data. Things you could start with:
|
@spiffxp: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed 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. |
/kind cleanup |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. 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. |
/reopen |
@ameukam: Reopened this issue. 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. |
/milestone clear |
Part of #18551
Why this is important:
TODO:
Other thoughts / notes:
/sig testing
The text was updated successfully, but these errors were encountered: