-
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?
Changes from all commits
289e976
54da06c
15bdbcc
8a5364f
a90e78e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"name": "[cvo-testing] cluster-version-operator-tests should support passing tests", | ||
"labels": {}, | ||
"resources": { | ||
"isolation": {} | ||
}, | ||
"source": "openshift:payload:cluster-version-operator", | ||
"lifecycle": "blocking", | ||
"environmentSelector": {} | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,29 +2,11 @@ | |
|
||
set -eu | ||
|
||
REPO=github.com/openshift/cluster-version-operator | ||
GOFLAGS=${GOFLAGS:--mod=vendor} | ||
GLDFLAGS=${GLDFLAGS:-} | ||
|
||
eval $(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH") | ||
|
||
GOOS=${GOOS:-${GOHOSTOS}} | ||
GOARCH=${GOARCH:-${GOHOSTARCH}} | ||
|
||
# Go to the root of the repo | ||
cd "$(git rev-parse --show-cdup)" | ||
|
||
VERSION_OVERRIDE=${VERSION_OVERRIDE:-${OS_GIT_VERSION:-}} | ||
if [ -z "${VERSION_OVERRIDE:-}" ]; then | ||
echo "Using version from git..." | ||
VERSION_OVERRIDE=$(git describe --abbrev=8 --dirty --always) | ||
fi | ||
|
||
eval $(go env) | ||
|
||
if [ -z ${BIN_PATH+a} ]; then | ||
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 commentThe 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 |
||
|
||
echo "Building binaries into ${BIN_PATH}" | ||
mkdir -p ${BIN_PATH} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
REPO=github.com/openshift/cluster-version-operator | ||
GOFLAGS=${GOFLAGS:--mod=vendor} | ||
GLDFLAGS=${GLDFLAGS:-} | ||
|
||
eval $(go env | grep -e "GOHOSTOS" -e "GOHOSTARCH") | ||
|
||
GOOS=${GOOS:-${GOHOSTOS}} | ||
GOARCH=${GOARCH:-${GOHOSTARCH}} | ||
|
||
VERSION_OVERRIDE=${VERSION_OVERRIDE:-${OS_GIT_VERSION:-}} | ||
if [ -z "${VERSION_OVERRIDE:-}" ]; then | ||
echo "Using version from git..." | ||
VERSION_OVERRIDE=$(git describe --abbrev=8 --dirty --always) | ||
fi | ||
|
||
eval $(go env) | ||
|
||
if [ -z ${BIN_PATH+a} ]; then | ||
export BIN_PATH=_output/${GOOS}/${GOARCH} | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
source hack/build-info.sh | ||
|
||
# Update test metadata | ||
eval "${BIN_PATH}/cluster-version-operator-tests" "update" |
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 thehack/.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 ourcluster-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"?