Skip to content

Conversation

@chrishenzie
Copy link
Contributor

@chrishenzie chrishenzie commented Jan 11, 2022

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Removes the hack/ directory because the scripts inside it are unused.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@pohly @xing-yang

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 11, 2022
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 11, 2022
@chrishenzie
Copy link
Contributor Author

It looks like this URL doesn't work anymore, we'll need to change how we fetch the csi-sanity binary

@pohly
Copy link
Contributor

pohly commented Jan 12, 2022

It looks like this URL doesn't work anymore, we'll need to change how we fetch the csi-sanity binary

Just build it with go install. But where is hack/get-sanity.sh used? Should we perhaps remove it entirely?

The Prow jobs install it through code in prow.sh, which comes from csi-release-tools:
https://github.com/kubernetes-csi/csi-release-tools/blob/4aedf357cac90c044cf3c2b8ff189520e3fd37b2/prow.sh#L231-L241

@andyzhangx
Copy link
Member

@pohly so this sanity test suite does not work?
I set up sanity test in nfs repo like this, maybe we should switch to this way?
https://github.com/kubernetes-csi/csi-driver-nfs/blob/master/test/sanity/run-test.sh

@pohly
Copy link
Contributor

pohly commented Jan 12, 2022

prow.sh works just fine for csi-sanity, no need to change anything there.

What would need further work is hack/get-sanity.sh but as it is unused (?) we perhaps should better remove it.

@chrishenzie
Copy link
Contributor Author

Thanks for catching that. I'll update the CSI sanity test suite here: kubernetes-csi/csi-release-tools#182

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 14, 2022
@chrishenzie chrishenzie changed the title Update csi-sanity test suite to v4.3.0 Remove hack/ directory Jan 14, 2022
@chrishenzie
Copy link
Contributor Author

chrishenzie commented Jan 14, 2022

Repurposed this PR to remove the unused scripts in the hack/ directory.

Edit: I had also removed bump-image-versions.sh but I suspect we may need this

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 14, 2022
@chrishenzie chrishenzie changed the title Remove hack/ directory Remove unused scripts in hack/ directory Jan 14, 2022
@mauriciopoppe
Copy link
Member

Edit: I had also removed bump-image-versions.sh but I suspect we may need this

yeah, there might be some scripts that aren't called from this repo but that are called from other repos like test-infra, I saw the same in local volume provisioner so it might be worth looking into the test-infra config jobs too

@pohly
Copy link
Contributor

pohly commented Jan 17, 2022

I had also removed bump-image-versions.sh but I suspect we may need this

Correct. I can be invoked manually to update the YAML files. If that wasn't clear, then adding a section for it under "repository maintenance" or "development" might help to avoid future confusion.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 24, 2022
@chrishenzie
Copy link
Contributor Author

chrishenzie commented Jan 26, 2022

Updated script to exclude paths for Kubernetes 1.19 and 1.20. Please let me know if this is aligned with your expectations.

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 26, 2022
e2e-hostpath.sh and get-sanity.sh aren't used, e2e testing should be
covered by prow script
@pohly
Copy link
Contributor

pohly commented Jan 27, 2022

/lgtm

I'll leave approval to @xing-yang.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 27, 2022
@pohly
Copy link
Contributor

pohly commented Jan 27, 2022

/cancel lgtm

Documentation still needs to be updated.

@pohly
Copy link
Contributor

pohly commented Jan 27, 2022

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 27, 2022
@chrishenzie
Copy link
Contributor Author

@pohly Can you help me to understand what documentation changes we want to make?

From my understanding, we just need to delete any pre-1.17 markdown docs. Is this correct?

@xing-yang
Copy link
Contributor

There are still a few places in the top level README that need to be updated. For example:
https://github.com/kubernetes-csi/csi-driver-host-path/tree/v1.7.3#deployment

These versions are no longer tested as part of our CI
@chrishenzie
Copy link
Contributor Author

@xing-yang Updated README to remove references to docs for 1.16 and earlier.

@chrishenzie
Copy link
Contributor Author

@xing-yang @pohly Updated documentation. Please let me know if there are any other doc changes you would like included here.

@xing-yang
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 11, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrishenzie, xing-yang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2022
@k8s-ci-robot k8s-ci-robot merged commit 0b59e31 into kubernetes-csi:master Feb 11, 2022
@xing-yang
Copy link
Contributor

@chrishenzie We missed updating the snapshot image.
Can you submit a follow-up PR to update the csi-snapshotter image to k8s.gcr.io/sig-storage/csi-snapshotter:v5.0.1?
https://github.com/kubernetes-csi/csi-driver-host-path/blob/master/deploy/kubernetes-1.21/hostpath/csi-hostpath-plugin.yaml#L357

@chrishenzie chrishenzie deleted the update-csi-sanity branch February 12, 2022 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants