-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: rename test/utils
-> test/internal
#1171
refactor: rename test/utils
-> test/internal
#1171
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Tal-or 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 |
/hold depends on #1169 |
7506d1e
to
5457026
Compare
/hold cancel |
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.
Some NITs, but overall LGTM
/lgtm
5457026
to
47a9d41
Compare
@swatisehgal Thank you for the review I fixed the typo, please approve again when possible |
47a9d41
to
0b64f49
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
/hold PTAL to the inline comments |
0b64f49
to
3a71f5c
Compare
/hold cancel |
/lgtm cancel linter lane failures |
Fixed. |
Previously that package was ignored by the linter, we need to update the linter config. That package was copy/pasted from upstream kubernetes, better to keep it 1:1 unchanged. IOW we either update our local clone or fix the linter config to ignore it. Or both. |
Even the most updated package from k8s contains the same lint error. |
let's update the linter config to update that specific part then, and we move on. |
85cf887
to
0675de2
Compare
renaming to emphasis the tools under tests are internal only and should be used solely by test code. Signed-off-by: Talor Itzhak <[email protected]>
There is a test code which is complex enough and used wide enough so it worth running unit-tests for it. Changing the makefile so it will consider unit-tests under `test/internal` as well. Signed-off-by: Talor Itzhak <[email protected]>
Explain the purpose `test/internal` and its alternatives. Signed-off-by: Talor Itzhak <[email protected]>
This dir contains helper which were copied verbatim from k/k repo. we prefer to keep the match 1:1 than fixing the linter issues, so let exclude this directoy from the lint config. Signed-off-by: Talor Itzhak <[email protected]>
0675de2
to
9f62b43
Compare
/lgtm |
/retest |
/test ci-e2e-install-hypershift |
Force the convention that test code cannot be used outside of
test
package.In addition allow running unit-tests for files under
test/internal
because there is a test code which is complex and/or being used wide enough that it's worth running unit-tests on it.