Skip to content
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

Fix make test to unbreak make clean #429

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

gkurz
Copy link
Member

@gkurz gkurz commented Jul 15, 2024

- Description of the problem which is fixed/What is the use case

make test is known to be failing since a long time. An issue is that it thus leaks a directory that prevents make clean to succeed because of restrictive file access modes.

- What I did

Separate the building of the test, which introduces the file access mode issue, from the actual test run. This allows to fully benefit from the access mode fixing introduced by PR #240.

- How to verify it

  • make test # which will likely fail
  • make clean # always succeed with this PR, fail otherwise

`make test` is known to be failing since a long time. An issue is that
it thus leaks a directory that prevents `make clean` to succeed because
of restrictive file access modes.

Separate the building of the test, which introduces the file access mode
issue, from the actual test run. This allows to fully benefit from the
access mode fixing introduced by PR openshift#240.

Signed-off-by: Greg Kurz <[email protected]>
@openshift-ci openshift-ci bot requested review from littlejawa and pmores July 15, 2024 14:29
@gkurz gkurz requested a review from tbuskey July 15, 2024 14:36
Copy link
Contributor

@tbuskey tbuskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the k8s directory need to have chmod as well?
chmod -R +w $(LOCALBIN)/k8s # should do it

Copy link
Contributor

@littlejawa littlejawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
Thanks @gkurz !

@gkurz
Copy link
Member Author

gkurz commented Jul 15, 2024

Does the k8s directory need to have chmod as well? chmod -R +w $(LOCALBIN)/k8s # should do it

Why would it need it ? Do you have a case where this PR isn't enough for make clean to succeed @tbuskey ?

Copy link

openshift-ci bot commented Jul 15, 2024

@gkurz: 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/sandboxed-containers-operator-e2e c35ed6d link false /test sandboxed-containers-operator-e2e
ci/prow/check c35ed6d link false /test check

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.

@tbuskey
Copy link
Contributor

tbuskey commented Jul 15, 2024

I thought the bin/k8s directory was created read only.
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 15, 2024
@gkurz
Copy link
Member Author

gkurz commented Jul 15, 2024

I thought the bin/k8s directory was created read only. /lgtm

It isn't. Thanks !

@gkurz gkurz merged commit 4457085 into openshift:devel Jul 15, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants