-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
⚠️ Migrate scaffolding of v3 / v4-alpha to ginkgo v2 #2939
⚠️ Migrate scaffolding of v3 / v4-alpha to ginkgo v2 #2939
Conversation
Hi @jakobmoellersap. Thanks for your PR. I'm waiting for a kubernetes-sigs 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. |
/ok-to-test |
In the upstream In .PHONY: test
test: manifests generate fmt vet envtest ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test ./... -coverprofile cover.out -ginkgo.junit-report=junit-report.xml
ARTIFACTS="./artifacts" hack/aggregate-junit-reports.sh Then in #!/usr/bin/env bash
set -e
if [[ -n ${ARTIFACTS:-} ]]; then
mkdir -p "${ARTIFACTS}"
fi
find . -name '*junit-report.xml' -print0 | while IFS= read -r -d '' file
do
((count++))
new_file=${file#./}
new_file=${new_file%/junit-report.xml}
new_file=${new_file//"/"/"-"}
mv "$file" "$ARTIFACTS/junit_${new_file}.xml"
echo "aggregated $file to $ARTIFACTS/junit_${new_file}.xml"
done |
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 changes show fine.
Great work 🥇
I am looking on your comments.
Hi @jakobmoellersap, Regaads #2939 (comment) it seems out of the scope right? I think we do not need this aggregation by default either. Also, I am not sure about we add another sh Regards the changes on this PR all show fine for we move forward. /approved |
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.
Just a minor typo in the docs. Other than that looks great! Once the typo is fixed I'll approve and LGTM.
Co-authored-by: Bryce Palmer <everettraven@gmail.com>
/label tide/merge-method-squash |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, everettraven, jakobmoellersap 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 |
This PR is updating the v3 and v4-alpha plugins to use ginkgo v2. It purposefully does not introduce ginkgo cli as most options can be added onto
go test
instead. It is a follow up for #2532Currently it does not use the NewLineReporter from the old scaffolding, but it can be manually added back (it is not recommended to do so by Ginkgo but possible with a custom hook into the rpeorting lifecycle). If this is wanted we can add docs on how to do that.
Currently the scaffolding does not automatically do this and people can manually add it.