Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DavidHurta
Copy link
Contributor

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

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 22, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Apr 22, 2025

@DavidHurta: This pull request references OTA-1403 which is a valid jira issue.

In response to this:

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

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.

Copy link
Contributor

openshift-ci bot commented Apr 22, 2025

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 22, 2025
@DavidHurta
Copy link
Contributor Author

I am gonna wait for https://www.github.com/openshift/cluster-version-operator/pull/1177 to merge before requesting a review.

@DavidHurta
Copy link
Contributor Author

/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.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 25, 2025
To reuse the logic across multiple files.
@DavidHurta DavidHurta force-pushed the tests-extension-update-makefile branch from 21de6e5 to bd148dd Compare May 6, 2025 15:16
@DavidHurta DavidHurta changed the title OTA-1403: Update test metadata using Makefile OTA-1403: Update and Verify Test Metadata Using Makefile May 6, 2025
@DavidHurta
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 6, 2025
@DavidHurta DavidHurta force-pushed the tests-extension-update-makefile branch from bd148dd to a90e78e Compare May 7, 2025 14:42
@DavidHurta
Copy link
Contributor Author

/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.

@openshift-ci openshift-ci bot added the no-qe Allows PRs to merge without qe-approved label label May 7, 2025
Copy link
Contributor

openshift-ci bot commented May 7, 2025

@DavidHurta: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn a90e78e link false /test okd-scos-e2e-aws-ovn
ci/prow/e2e-agnostic-operator-devpreview a90e78e link false /test e2e-agnostic-operator-devpreview

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
Copy link
Member

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 @@
[
Copy link
Member

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. no-qe Allows PRs to merge without qe-approved label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants