Closed Rajalakshmi-Girish closed 1 year ago
@mkumatag ^^
/cc @amwat
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
fixed by your pending PR https://github.com/kubernetes-sigs/kubetest2/pull/183, right?
fixed by your pending PR #183, right?
This seems to be fixed by https://github.com/kubernetes-sigs/kubetest2/pull/162
Closing this issue as we no longer encounter this after upgrading to latest kubetest2
This error started coming back after moving metadata.json from RunDir to ARTIFACTS via https://github.com/kubernetes-sigs/kubetest2/pull/221
IMO, if a second kubetest2
command is not allowed to run from the same path as the first kubetest2
, The error message has to suggest what can be done.
tester-version
key in metadata.json if kubetest2
is run a second time from same path.
@BenTheElder your thoughts on this, please.IMHO: metadata.json should be part of ARTIFACTS, it's expected to be uploaded in CI and read by the CI tools.
We should probably just overwrite or amend the existing file.
In the meantime, kubetest2 should probably be used with unique $ARTIFACTS, maybe we should instead use a tempdir for the ARTIFACTS location if it's not explicitly set.
I've stepped down to emeritus_approver in this project though, I switched roles / transferred teams earlier this year and this was on my "I am still doing too many things" list.
Unable to reproduce this now! Seems some change to the metadata package fixed this.
Summary: We are unable to use kubetest2 to test kubernetes more than once from a same path.
metadata.json
generated by kubetest2 command is objecting to runkubetest2
second time from same path stating the following error: Example using gingko tester:Expected result: Should be able to run kubetest2 any number of times from a given path. There should ether be a flag to ignore metadata.json or overwrite the metadata with latest kubetest2 run
In order to run k8s conformance tests by following option B at https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/conformance-tests.md#running-conformance-tests-with-kubetest, we are required to trigger kubetest2 command twice.
is the error thrown when run from same path.
Note: This started happening after the below commit to fail if key is already present in metadata.json. https://github.com/kubernetes-sigs/kubetest2/pull/162/commits/ac36e3203cb49dce808f5bc211e1decc63956d93 Expect this check to be more liberal https://github.com/kubernetes-sigs/kubetest2/blob/master/pkg/metadata/metadata.go#L49
Sample job that threw this error: https://prow.ppc64le-cloud.org/view/gs/ppc64le-kubernetes/logs/test-periodic-kubernetes-conformance-test-ppc64le/1468899640811196416