-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cross-version API Compatibility - Follow up changes on test results and additional tests #26
Cross-version API Compatibility - Follow up changes on test results and additional tests #26
Conversation
0f2b32f
to
51ec95e
Compare
…ts involving multiple context objects
Makefile
Outdated
cd ./test/compatibility/framework/compatibilitytests && ${GINKGO} --keep-going --fail-fast --race -r --randomize-all --trace --output-dir ./../../../../testresults --junit-report compatibility-tests.xml; \ | ||
|
||
.PHONY: debug-compatibility-tests | ||
debug-compatibility-tests: ## Run Compatibility tests |
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.
My preference, to reduce duplication, and so the developer doesn't have to deal with multiple targets, is to use a variable to control -v or not, not unlike what is used in https://github.com/vmware-tanzu/tanzu-cli/blob/main/Makefile#L198
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.
Updated the scripts
c62dbdd
to
3798ffe
Compare
Makefile
Outdated
context-api-compatibility-tests: ## Run Compatibility tests | ||
${GO} test `go list ./test/compatibility/framework/compatibilitytests/context...` -v -timeout 60m -race;\ | ||
|
||
cd ./test/compatibility/framework/compatibilitytests && ${GINKGO} --keep-going --fail-fast --race -r --randomize-all --trace --output-dir ./../../../../testresults --junit-report compatibility-tests.xml; \ |
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.
what happened to the equivalent of debug-compatibility-tests?
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.
added debug-compatibility-tests with ${GOTEST_VERBOSE}
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.
What I meant, in an earlier comment, was to update run-compatibility-tests to take a flag that is configurable.
If that flag is not ${GOTEST_VERBOSE} because the default value does not match the default behavior, then create one for the compat tests.
3798ffe
to
b0caf60
Compare
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, thanks for the updates. Just a small markdown nit.
| Client Options APIs | TBA | TBA | TBA | TBA | | ||
| Repositories APIs | TBA | TBA | TBA | TBA | | ||
|
||
- For the latest test results check the most recent job that is run for the workflow [Tanzu Plugin Runtime Cross-version API Compatibility Tests](https://github.com/vmware-tanzu/tanzu-plugin-runtime/actions/workflows/compatibility_tests.yaml?query=branch%3Amain) |
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.
let see as a followup if we can make the results more accessible. Even if I bookmark the link it takes 4 clicks just to get to what the results.
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.
Added a JIRA to track this changes. https://jira.eng.vmware.com/browse/TANZUCLI-409
|
||
- For the latest test results check the most recent job that is run for the workflow [Tanzu Plugin Runtime Cross-version API Compatibility Tests](https://github.com/vmware-tanzu/tanzu-plugin-runtime/actions/workflows/compatibility_tests.yaml?query=branch%3Amain) | ||
|
||
*TBA - to be added in future sprints |
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.
nit: space after *
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.
added space
1b4bf22
to
8711568
Compare
… flag in run-compatibility-tests
8711568
to
efe6353
Compare
What this PR does / why we need it
Follow up PR addresses
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
make compatibility-tests
Output:
![Screenshot 2023-03-22 at 19 48 07](https://user-images.githubusercontent.com/106101699/227070653-d074933e-06c7-459e-8f77-daa1652ed53e.png)
More details on test output can be found from the Github workflow that is run on the PR https://github.com/vmware-tanzu/tanzu-plugin-runtime/actions/runs/4495795430/jobs/7909811037?pr=26
For more details on Cross-version API compatibility testing refer to https://github.com/vmware-tanzu/tanzu-plugin-runtime/blob/main/test/compatibility/docs/cross-version-api-compatibility.md
Release note
Additional information
Special notes for your reviewer