Closed justinsb closed 1 week ago
I think this might be what currently blocks builds on a bunch of PRs; if I do this locally (including adding the submodules) the tests that fail on those PRs start passing again.
Is there a reason to not just check in the workspace file in the repo (and use it "always" and not just in the test runs)?
I think this might be what currently blocks builds on a bunch of PRs; if I do this locally (including adding the submodules) the tests that fail on those PRs start passing again.
So I've re-discovered what I had forgotten, we already do this in hack/ci/test.sh
. I've started putting those under dev/presubmits/...
(or dev/ci/presubmits/...
) so maybe that would be more discoverable.
That said, I think we should also ensure that dev/update-golden
either requires a go.work or creates one temporarily, and probably nudge developers to run dev/update-golden
when the other tests fail.
Is there a reason to not just check in the workspace file in the repo (and use it "always" and not just in the test runs)?
The only reason is that I haven't seen it done elsewhere. But I agree with you, I'm increasingly wondering when we would not want it. My biggest concern is that it breaks usage as a library somehow, in the same way that go.mod rewrites can sometimes cause problems.
I though the whole point of go.work was to enable rewrites and similar tweaks in development while explicitly not affecting usage when importing the module. Maybe worth verifying, but unless I'm completely off here I think it'd be nice to just commit this and ensure the normal workflows with eg plain go test
Just Works:tm:
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the PR is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closed this PR.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: justinsb
The full list of commands accepted by this bot can be found here.
The pull request process is described here