-
Notifications
You must be signed in to change notification settings - Fork 194
OTA-1403: Update and Verify Test Metadata Using Makefile #1179
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
base: main
Are you sure you want to change the base?
OTA-1403: Update and Verify Test Metadata Using Makefile #1179
Conversation
@DavidHurta: This pull request references OTA-1403 which is a valid jira 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DavidHurta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I am gonna wait for https://www.github.com/openshift/cluster-version-operator/pull/1177 to merge before requesting a review. |
/hold Wait for openshift/release#63274 to merge. I do not want to mix additional logic into the verify job while it's getting functional. |
To reuse the logic across multiple files.
21de6e5
to
bd148dd
Compare
/unhold |
bd148dd
to
a90e78e
Compare
/label no-qe The code adds metadata and new make targets. Nothing that requires QE capacity. The PR updates the script, which is used to build the CVO; however, only refactoring is made. Regression should be observable by a failing CI due to a failed image build. |
@DavidHurta: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
export BIN_PATH=_output/${GOOS}/${GOARCH} | ||
fi | ||
# Source build variables | ||
source hack/build-info.sh |
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.
I was wondering if there was a way to set up this import without relying on "assume build-go.sh
is being called from the repository's root directory". But it seems like there may not be, so probably fine to stick with that assumption and not worry about the BASH_SOURCE
and similar semi-reliable approaches.
@@ -0,0 +1,12 @@ | |||
[ |
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.
The .openshift-tests-extension/openshift_payload_cluster-version-operator.json
path here diverges from the hack/.openshift-tests-exension/product/type/component/*
pattern claimed by the extension you'd linked from the pull-request opening comment. Is the extension text stale? Is our cluster-version-operator-tests
binary feeding the wrong location? Other? I guess the update logic living in a vendored directory tips us towards "enhancement text is stale"?
Create an update target in the Makefile to execute the tests-extension update logic to update/validate test metadata. Add
git diff
logic to the verify target to make sure any uncommitted changes fail the execution of the target. This will be run on PRs to make sure the test metadata is commited and valid.For more info on the update subcommand, see Update - Metadata Validation