Closed cardil closed 2 years ago
/assign @upodroid /assign @kvmware /cc @mgencur
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: cardil
The full list of commands accepted by this bot can be found here.
The pull request process is described here
/hold
We are landing a very large go.mod changes in #3509 next week which is required for the SLSA Generator that I'm working on.
Re @mgencur:
Sorry if this is a dumb question but this current PR should replace https://github.com/knative/test-infra/pull/3509 if I'm not mistaken. The current PR adds 2,822,424 lines and https://github.com/knative/test-infra/pull/3509 adds only 1,355,412 . Do we really need those files. Do we have a good reason to have this change?
That depends on what we want. This PR adds the "hidden" modules tools/configgen
, tools/release-jobs-syncer
, tools/rundk
to Go workspace. This makes them work properly. Together with https://github.com/knative/hack/issues/216 it ends up vendoring all thei dependencies in appopriate vendor
directories.
The #3509 is doing the oposite - it is removing the go.mod
for those tools. In effect all dependencies are being vendored on root level vendor
dir.
Both PRs are updating the deps, and fixing the invalid go modules structure.
The key difference between those is that mine is a bit safer, becouse the dependencies for those submodules are kept at the same version. #3509 is aliging all those version to one defined in root go.mod
.
I'm fine with both approaches.
I'm leaning towards #3509 as well (bit biased). In any case, Chris is working on removing vendor anyway so the line count doesn't really matter.
Just to note, no one should be using knative/test-infra
as a library so a messy root go.mod
is fine. The root go.mod
is a mess because of dependency on kubernetes/test-infra
and istio-test-infra
(istio relies on k8s/test-infra).
If life wasn't hard enough, our k8s version is determined by knative/pkg
which always lags
@cardil: The following test failed, say /retest
to rerun all failed tests or /retest-required
to rerun all mandatory failed tests:
Test name | Commit | Details | Required | Rerun command |
---|---|---|---|---|
unit-tests_test-infra_main | b181546bdffc03e0f3ca1215ef1c1fc744e9ab67 | link | true | /test unit-tests_test-infra_main |
Lets go with https://github.com/knative/test-infra/pull/3509 approach. It's simpler.
Related to #3509