-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Unknown-fields fixes - Cleanup #27389
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
Unknown-fields fixes - Cleanup #27389
Conversation
…ptional,privileged
|
Hi @asim-reza. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
| testgrid-tab-name: gubernator | ||
|
|
||
| # Please keep this in sync with the `ci-test-infra-prow-checkconfig` job | ||
| - name: pull-test-infra-prow-checkconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't modify this job in place. Duplicate this job instead, aka creating a new job called pull-test-infra-prow-checkconfig-beta which is optional and validates with unknown-fields-all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
|
as mentioned in #27386 , please revert all changes other than the config validation job |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: asim-reza The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Please squash the commits, it's weird that such a small change has 13 commits |
|
Issue
Unknown field checks are not enabled for ProwJob configuration. #26368
Description
Prow's checkconfig tool is responsible for presubmit validation of ProwJob configuration. It has an optional check for unknown fields in ProwJob config that can be enabled with --warnings=unknown-fields-all. We currently do not have this check enabled.
As a result it is possible to add configuration that is not recognized by Prow, causing it to be silently ignored. Common examples of this are typos in a field name and incorrect indentation.
What was done
All errors in the configs were fixed (of which there were alot) ....
docker run -i --rm -v "${PWD}:${PWD}" -w "${PWD}" gcr.io/k8s-prow/checkconfig:v20220905-8bcebc6376 --config-path=config/prow/config.yaml --job-config-path=config/jobs --plugin-config=config/prow/plugins.yaml --strict --warnings=mismatched-tide-lenient --warnings=tide-strict-branch --warnings=needs-ok-to-test --warnings=validate-owners --warnings=missing-trigger --warnings=validate-urls --warnings=unknown-fields --warnings=duplicate-job-refs --warnings=unknown-fields-allwas used to perform the tests
Note:
The commits were made by type of errors and there were 2 merges with the main branch as there were changes made to the repo as I was working