openshift / hypershift

Hyperscale OpenShift - clusters with hosted control planes
https://hypershift-docs.netlify.app
Apache License 2.0
416 stars 309 forks source link

OCPBUGS-38967: [release-4.17] Remove go workspaces #4620

Closed csrwng closed 2 weeks ago

csrwng commented 2 weeks ago

What this PR does / why we need it: Removes the go.work and go.work.sum files from the repository. Updates the Makefile to not use go workspaces. Updates the vendored staticcheck so it won't fail on new style range statements. Makes minor fixes flagged by staticcheck Adds instructions for setting up a Go workspace in HACKING doc

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story: Fixes #OCPBUGS-38755

Checklist

openshift-ci[bot] commented 2 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csrwng

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: - ~~[OWNERS](https://github.com/openshift/hypershift/blob/release-4.17/OWNERS)~~ [csrwng] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
csrwng commented 2 weeks ago

/jira cherry-pick OCPBUGS-38755

openshift-ci-robot commented 2 weeks ago

@csrwng: Detected clone of Jira Issue OCPBUGS-38755 with correct target version. Will retitle the PR to link to the clone. /retitle OCPBUGS-38967: [release-4.17] Remove go workspaces

In response to [this](https://github.com/openshift/hypershift/pull/4620#issuecomment-2312731820): >/jira cherry-pick OCPBUGS-38755 Instructions for interacting with me using PR comments are available [here](https://prow.ci.openshift.org/command-help?repo=openshift%2Fhypershift). If you have questions or suggestions related to my behavior, please file an issue against the [openshift-eng/jira-lifecycle-plugin](https://github.com/openshift-eng/jira-lifecycle-plugin/issues/new) repository.
openshift-ci-robot commented 2 weeks ago

@csrwng: This pull request references Jira Issue OCPBUGS-38967, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to [this](https://github.com/openshift/hypershift/pull/4620): >**What this PR does / why we need it**: >Removes the go.work and go.work.sum files from the repository. Updates the Makefile to not use go workspaces. >Updates the vendored staticcheck so it won't fail on new style range statements. >Makes minor fixes flagged by staticcheck >Adds instructions for setting up a Go workspace in HACKING doc > >**Which issue(s) this PR fixes** *(optional, use `fixes #(, fixes #, ...)` format, where issue_number might be a GitHub issue, or a Jira story*: >Fixes # > >**Checklist** >- [x] Subject and description added to both, commit and PR. >- [x] Relevant issues have been referenced. >- [x] This change includes docs. Instructions for interacting with me using PR comments are available [here](https://prow.ci.openshift.org/command-help?repo=openshift%2Fhypershift). If you have questions or suggestions related to my behavior, please file an issue against the [openshift-eng/jira-lifecycle-plugin](https://github.com/openshift-eng/jira-lifecycle-plugin/issues/new) repository.
csrwng commented 2 weeks ago

/jira refresh

openshift-ci-robot commented 2 weeks ago

@csrwng: This pull request references Jira Issue OCPBUGS-38967, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug * bug is open, matching expected state (open) * bug target version (4.17.0) matches configured target version for branch (4.17.0) * bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST) * release note type set to "Release Note Not Required" * dependent bug [Jira Issue OCPBUGS-38755](https://issues.redhat.com//browse/OCPBUGS-38755) is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED) * dependent [Jira Issue OCPBUGS-38755](https://issues.redhat.com//browse/OCPBUGS-38755) targets the "4.18.0" version, which is one of the valid target versions: 4.18.0 * bug has dependents

No GitHub users were found matching the public email listed for the QA contact in Jira (jiezhao@redhat.com), skipping review request.

In response to [this](https://github.com/openshift/hypershift/pull/4620#issuecomment-2312736577): >/jira refresh Instructions for interacting with me using PR comments are available [here](https://prow.ci.openshift.org/command-help?repo=openshift%2Fhypershift). If you have questions or suggestions related to my behavior, please file an issue against the [openshift-eng/jira-lifecycle-plugin](https://github.com/openshift-eng/jira-lifecycle-plugin/issues/new) repository.
bryan-cox commented 2 weeks ago

/lgtm

csrwng commented 2 weeks ago

Backport of PR https://github.com/openshift/hypershift/pull/4582

openshift-ci-robot commented 2 weeks ago

/retest-required

Remaining retests: 0 against base HEAD 1827c48af209708896f7a0f74f22a64dec0c4bec and 2 for PR HEAD 67baa6fc805aa4826da3238f146e0d4ccf3bdcab in total

csrwng commented 2 weeks ago

/retest-required

openshift-ci[bot] commented 2 weeks ago

@csrwng: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
openshift-ci-robot commented 2 weeks ago

@csrwng: Jira Issue OCPBUGS-38967: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-38967 has been moved to the MODIFIED state.

In response to [this](https://github.com/openshift/hypershift/pull/4620): >**What this PR does / why we need it**: >Removes the go.work and go.work.sum files from the repository. Updates the Makefile to not use go workspaces. >Updates the vendored staticcheck so it won't fail on new style range statements. >Makes minor fixes flagged by staticcheck >Adds instructions for setting up a Go workspace in HACKING doc > >**Which issue(s) this PR fixes** *(optional, use `fixes #(, fixes #, ...)` format, where issue_number might be a GitHub issue, or a Jira story*: >Fixes #[OCPBUGS-38755](https://issues.redhat.com//browse/OCPBUGS-38755) > >**Checklist** >- [x] Subject and description added to both, commit and PR. >- [x] Relevant issues have been referenced. >- [x] This change includes docs. Instructions for interacting with me using PR comments are available [here](https://prow.ci.openshift.org/command-help?repo=openshift%2Fhypershift). If you have questions or suggestions related to my behavior, please file an issue against the [openshift-eng/jira-lifecycle-plugin](https://github.com/openshift-eng/jira-lifecycle-plugin/issues/new) repository.