Part of https://github.com/kubernetes/test-infra/issues/18551
Why this is important:
TODO:
Other thoughts / notes:
/sig testing
Some prior art to serve as starting points:
go run ./experiment/prowjob-report/main.go --config ./config/prow/config.yaml --job-config ./config/jobs --format csv > jobs.csv which I periodically reimport into this spreadsheetowner_dash column is a guess on who should own the job based on which sig/wg-prefixed testgrid dashboard the job lives under--format json and pipe through to jq/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 :
cd TEST_INFRA_REPO_ROOT
bazel test //config/tests/testgrids:go_default_test --config--test_output=all
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
following dependencies :
"@com_github_googlecloudplatform_testgrid//config:go_default_library",
"@com_github_googlecloudplatform_testgrid//pb/config:go_default_library",
and also to pass in parameters to the test
"--config=$(location testconf.pb)",
"--prow-config=$(location //config/prow:config.yaml)",
"--job-config=config/jobs",
/assign
/remove help-wanted
To run the specific test use
bazel test //config/tests/testgrids:go_default_test \
--test_output=all \
--test_filter=TestReleaseBlockingJobsMustHaveTestgridDescriptions
/remove help-wanted
@RobertKielty the command is /remove help (not intuitive IMO)... but speaking of, are you still working on this?
Reviewed https://github.com/kubernetes/test-infra/pull/19286#pullrequestreview-522789040
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
Most helpful comment
Some prior art to serve as starting points:
go run ./experiment/prowjob-report/main.go --config ./config/prow/config.yaml --job-config ./config/jobs --format csv > jobs.csvwhich I periodically reimport into this spreadsheetowner_dashcolumn is a guess on who should own the job based on which sig/wg-prefixed testgrid dashboard the job lives under--format jsonand pipe through to jq