Commit Graph

10282 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
5da75638ee Merge pull request #129545 from pohly/test-ginkgo-progress
hack/ginkgo-e2e.sh: forward TERM/INT to Ginkgo
2025-01-17 17:52:48 -08:00
Patrick Ohly
ce9e398641 hack/ginkgo-e2e.sh: forward TERM/INT to Ginkgo
What happens at the moment in e.g. pull-kubernetes-e2e-kind in case of a
timeout is that ginkgo-e2e.sh gets killed with SIGTERM. This is not propagated
to the E2E test suite processes, therefore there is no "Interrupted by User"
report and no JUnit file, depending on timing during the process shutdown.

Running the Ginkgo CLI with job control enabled creates a new process group,
which then can be used to kill the Ginko CLI and the E2E test suite
processes. With these changes, more information is produced. Some of it seems
a bit redundant, but it's better than none:

*** hack/ginkgo-e2e.sh: received termination signal -> asking Ginkgo to stop.
***
*** Beware that a timeout may have been caused by some earlier test,
*** not necessarily the one which gets interrupted now.
*** See the "Spec runtime" for information about how long the
*** interrupted test was running.

  ------------------------------
  Interrupted by User
  First interrupt received; Ginkgo will run any cleanup and reporting nodes but will skip all remaining specs.  Interrupt again to skip cleanup.
  Here's a current progress report:
    [sig-node] DRA [Feature:DynamicResourceAllocation] [FeatureGate:DynamicResourceAllocation] [Beta] ResourceSlice Controller creates slices (Spec Runtime: 9
.065s)
      k8s.io/kubernetes/test/e2e/dra/dra.go:812
      In [It] (Node Runtime: 9.044s)
        k8s.io/kubernetes/test/e2e/dra/dra.go:812
        At [By Step] Creating slices (Step Runtime: 8.884s)
          k8s.io/kubernetes/test/e2e/dra/dra.go:847
...
        Begin Additional Progress Reports >>
          There is no failure as the matcher passed to Consistently has not yet failed
        << End Additional Progress Reports
  ------------------------------
• [INTERRUPTED] [11.955 seconds]
[sig-node] DRA [Feature:DynamicResourceAllocation] [FeatureGate:DynamicResourceAllocation] [Beta] ResourceSlice Controller [It] creates slices [sig-node, Feature:DynamicResourceAllocation, FeatureGate:DynamicResourceAllocation, Feature:Beta]
k8s.io/kubernetes/test/e2e/dra/dra.go:812

  Timeline >>
  STEP: Creating a kubernetes client @ 01/09/25 17:18:59.769
...
  [FAILED] in [It] - k8s.io/kubernetes/test/e2e/dra/dra.go:881 @ 01/09/25 17:19:08.835
  I0109 17:19:11.703212 302727 helper.go:125] Waiting up to 7m0s for all (but 0) nodes to be ready
  STEP: dump namespace information after failure @ 01/09/25 17:19:11.706
  STEP: Collecting events from namespace "dra-7998". @ 01/09/25 17:19:11.706
  STEP: Found 0 events. @ 01/09/25 17:19:11.708
...
  STEP: Destroying namespace "dra-7998" for this suite. @ 01/09/25 17:19:11.72
  << Timeline

  [INTERRUPTED] Interrupted by User
  In [It] at: k8s.io/kubernetes/test/e2e/dra/dra.go:812 @ 01/09/25 17:19:08.833

  This is the Progress Report generated when the interrupt was received:
    [sig-node] DRA [Feature:DynamicResourceAllocation] [FeatureGate:DynamicResourceAllocation] [Beta] ResourceSlice Controller creates slices (Spec Runtime: 9
.065s)
...

  [FAILED] An interrupt occurred and then the following failure was recorded in the interrupted node before it exited:
  Context was cancelled (cause: Interrupted by User) after 0.329s.
  There is no failure as the matcher passed to Consistently has not yet failed
  In [It] at: k8s.io/kubernetes/test/e2e/dra/dra.go:881 @ 01/09/25 17:19:08.835
------------------------------
Checking for custom logdump instances, if any
----------------------------------------------------------------------------------------------------
k/k version of the log-dump.sh script is deprecated!
Please migrate your test job to use test-infra's repo version of log-dump.sh!
Migration steps can be found in the readme file.
----------------------------------------------------------------------------------------------------
Sourcing kube-util.sh
Detecting project
Skeleton Provider: detect-project not implemented
Dumping logs from master locally to '/tmp/test'
Master SSH not supported for local
Dumping logs from nodes locally to '/tmp/test'
Node SSH not supported for local

Summarizing 1 Failure:
  [INTERRUPTED] [sig-node] DRA [Feature:DynamicResourceAllocation] [FeatureGate:DynamicResourceAllocation] [Beta] ResourceSlice Controller [It] creates slices [sig-node, Feature:DynamicResourceAllocation, FeatureGate:DynamicResourceAllocation, Feature:Beta]
  k8s.io/kubernetes/test/e2e/dra/dra.go:812

Ran 1 of 6644 Specs in 12.208 seconds
FAIL! - Interrupted by User -- 0 Passed | 1 Failed | 0 Pending | 6643 Skipped
--- FAIL: TestE2E (12.74s)
FAIL

Ginkgo ran 1 suite in 13.379078611s
2025-01-17 16:28:41 +01:00
Kubernetes Prow Robot
ab54e442c6 Merge pull request #128773 from bzsuni/bz/etcd/update/3.5.17
Update etcd from v3.5.16 to v3.5.17
2025-01-16 21:22:34 -08:00
Davanum Srinivas
43d86c2a3e Drop github.com/asaskevich/govalidator
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-14 15:53:49 -05:00
Davanum Srinivas
0d8a8fe306 Update to latest kustomize/v5.6.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-01-14 13:12:48 -05:00
bzsuni
df503e54c8 Update etcd from v3.5.16 to v3.5.17
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2025-01-02 10:20:42 +00:00
elieser pereira
35f584187a accept GINKGO_FLAGS for test-e2e-node.sh (#129215)
* accept GINKGO_FLAGS for test-e2e-node.sh

* Update Makefile to document LABEL_FILTER

* --label-filter part of ginkgoflags

* Update Makefile

* if label-filter then avoid skip and focus defaults

* LABEL_FILTER can be empty

* Update build/root/Makefile

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* skip defaults only if label-filter not set

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* focus and label_fiter can live together

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

* skip and label_filter can live together

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>

---------

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-12-24 02:48:10 +01:00
Kubernetes Prow Robot
e305c33988 Merge pull request #126387 from pohly/log-client-go-tools-cache-apis
client-go/tools/cache: add APIs with context parameter
2024-12-18 20:00:09 +01:00
Patrick Ohly
4638ba9716 client-go/tools/cache: add APIs with context parameter
The context is used for cancellation and to support contextual logging.

In most cases, alternative *WithContext APIs get added, except for
NewIntegerResourceVersionMutationCache where code searches indicate that the
API is not used downstream.

An API break around SharedInformer couldn't be avoided because the
alternative (keeping the interface unchanged and adding a second one with
the new method) would have been worse. controller-runtime needs to be updated
because it implements that interface in a test package. Downstream consumers of
controller-runtime will work unless they use those test package.

Converting Kubernetes to use the other new alternatives will follow. In the
meantime, usage of the new alternatives cannot be enforced via logcheck
yet (see https://github.com/kubernetes/kubernetes/issues/126379 for the
process).

Passing context through and checking it for cancellation is tricky for event
handlers. A better approach is to map the context cancellation to the normal
removal of an event handler via a helper goroutine. Thanks to the new
HandleErrorWithLogr and HandleCrashWithLogr, remembering the logger is
sufficient for handling problems at runtime.
2024-12-18 18:45:02 +01:00
yongruilin
e1ef9e40f5 chore: Update apidiff.sh script description 2024-12-16 13:44:48 -08:00
Sascha Grunert
c3a3a54822 Add github.com/golang/protobuf to unwanted dependencies
Follow-up on https://github.com/kubernetes/kubernetes/pull/128659 to
avoid reintroducing the dependency again.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-12-16 09:57:18 +01:00
Benjamin Elder
8fce9b0db6 apidiff: default from prowjob env if available, default before doing anything else 2024-12-12 09:34:49 -08:00
Kubernetes Prow Robot
e8615e2712 Merge pull request #129054 from pohly/remove-import-name
remove import doc comments
2024-12-12 09:58:35 +01:00
Kubernetes Prow Robot
410dd2969c Merge pull request #129107 from rphillips/wait_for_coredns
local-up-cluster: only wait for coredns if enabled
2024-12-12 06:40:39 +00:00
Kubernetes Prow Robot
5dd4e64dd9 Merge pull request #129021 from aojea/apidiff_generator
apidiff support internal go modules
2024-12-12 05:28:45 +00:00
Kubernetes Prow Robot
b9f3b2ae21 Merge pull request #128992 from BenTheElder/find-kubeadm
make test-cmd: use kube::util::find-binary to get kubeadm binary
2024-12-12 05:28:31 +00:00
Kubernetes Prow Robot
477d01588b Merge pull request #128915 from liggitt/modern-go
Add modern-go libraries to unwanted dependencies
2024-12-12 04:13:38 +00:00
Kubernetes Prow Robot
0f6bfaf21a Merge pull request #128887 from aojea/patch-4
Don't allow to tolerate flakes
2024-12-12 04:13:01 +00:00
Ryan Phillips
d1cc270f13 local-up-cluster: only wait for coredns if enabled 2024-12-06 09:13:34 -06:00
Patrick Ohly
0a02c74ca6 update-vanity-imports.sh: remove script
With the "// import ..." statements removed form all files, we no
longer need the update script which would add them back.
2024-12-02 17:00:41 +01:00
Antonio Ojea
e5ebbdc3c7 Ignore internal packages messages 2024-11-29 07:29:46 +00:00
Antonio Ojea
f92bde1894 parallalize the apidiff dump 2024-11-28 18:20:07 +00:00
Antonio Ojea
affafd906d improve report on failures summarizing the modules with incompatible changes 2024-11-28 18:20:04 +00:00
Antonio Ojea
7de94d43ca handle the case when modules are added or removed
don't compare modules that didn't or doesn't exist
2024-11-28 18:19:18 +00:00
Antonio Ojea
52386915a8 use relative paths and modules that are not visible to golagn workspaces 2024-11-28 18:19:12 +00:00
Antonio Ojea
e6fccc36d8 apidiff support internal go modules
The kubernetes repository contains some internal golang modules that are
not part of the golang global workspace. Because apidiff is currently
run from the root of the repository, it does not work against this
internal modules.

Instead of executing apidiff from the root we can just cd into the
passed path of the module to avoid this limitation.
2024-11-28 15:43:09 +00:00
Benjamin Elder
a43b00b429 make test-cmd: use kube::util::find-binary to get kubeadm binary
fixes finding the binary when dockerized builds vs host builds
2024-11-26 17:33:44 -08:00
Jordan Liggitt
3baa6f08c0 Add modern-go libraries to unwanted dependencies 2024-11-21 11:25:44 -05:00
Kubernetes Prow Robot
40f222b620 Merge pull request #128834 from pohly/scheduler-perf-pass-workaround
scheduler_perf: fix and enhance reporting
2024-11-21 16:08:55 +00:00
Antonio Ojea
7280d58f85 Don't allow to tolerate flakes
We have zero flake policy for a long time now (> 1 year) https://github.com/kubernetes/community/pull/7538, however , there are some places that are still tolerating flakes and retrying 

Flakes does not help,  to the point that when we have to take a hard decision it creates more iuncertainty.

It does not matter how, we should be always able to deal with flakes:
- if the software or algorithm is racy, we need to work to make deterministic
- if is deterministic, the test must be deterministic
- if the test is determinist but it depends on the environment, then we work on making the environment deterministci
2024-11-20 16:40:03 +01:00
Prince Pereira
07c79da04f vendoring changes for new hnslib v0.0.8. 2024-11-18 23:30:50 +05:30
Patrick Ohly
25a4758bcc testing: allow keeping detailed go test JUnit results
Pruning of tests to the top-level test was added for jobs like
pull-kubernetes-unit which run many tests. For other, more focused jobs like
scheduler-perf benchmarking it would be nice to keep the more detailed
information, in particular because it includes the duration per test case.
2024-11-18 12:44:34 +01:00
Kubernetes Prow Robot
45260fd76a Merge pull request #127857 from Jefftree/cle-v1alpha2
Coordinated Leader Election add v1alpha2
2024-11-08 07:10:43 +00:00
Bo Wang
495af2a3d4 Add missing comments in k8s.io/api/core/v1
Signed-off-by: Bo Wang <wangbob@uniontech.com>
2024-11-07 18:42:33 -08:00
Jefftree
0ce7b688a6 v1alpha2 LeaseCandidate API 2024-11-08 02:27:19 +00:00
Kubernetes Prow Robot
09e5e6269a Merge pull request #128626 from dims/add-go-spew-to-unwanted-dependencies-we-track
Add go-spew to unwanted dependencies we track
2024-11-07 08:51:38 +00:00
Harshal Neelkamal
6fdacf0411 Add plugin and key-cache for ExternalJWTSigner integration 2024-11-07 03:16:23 +00:00
Davanum Srinivas
199b7bdd1f Add go-spew to unwanted dependencies we track
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-06 17:41:56 -05:00
Kubernetes Prow Robot
0edef5aa91 Merge pull request #128447 from bart0sh/PR164-migrate-cadvisor-to-contextual-logging
kubelet: Migrate CAdvisor to contextual logging
2024-11-06 20:10:10 +00:00
Patrick Ohly
0b8a85c54a update-openapi-spec.sh: enable all alpha and beta APIs
This becomes relevant once DynamicResourceAllocation becomes beta with
"disabled" as default. Otherwise AllAlpha=true enables DRAAdminAccess which
depends on DynamicResourceAllocation, which is disabled.
2024-11-06 13:03:19 +01:00
Patrick Ohly
2e64c72249 DRA API: register v1beta1
This is the minimal set of changes that are needed to make the new version
usable. The storage version is still v1alpha3. More changes will follow.
2024-11-06 13:03:18 +01:00
Ed Bartosh
e5cb071c2e kubelet: Migrate CAdvisor to contextual logging 2024-11-06 01:49:20 +02:00
Kubernetes Prow Robot
9a2a7537f0 Merge pull request #128580 from jpbetz/bump-kube-openapi
Bump kube-openapi to latest
2024-11-05 21:45:41 +00:00
Joe Betz
bedfcc9331 Add gopkg.in/yaml.v2 to hack/unwanted-dependencies.json 2024-11-05 10:41:29 -05:00
Davanum Srinivas
054f0f7e96 Drop remnants as we switched hcsshim->hnslib
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-05 08:22:31 -05:00
Davanum Srinivas
2b0592ee77 Use k8s.io/utils/lru instead of github.com/golang/groupcache/lru
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-11-04 10:51:13 -05:00
Lubomir I. Ivanov
6928007087 vendor: update system-validators to v1.9.1 2024-11-04 13:25:28 +02:00
Kir Kolyshkin
1d4f88b1ee vendor: bump runc to v1.2.1
For one thing, this release decouples device management from
libcontainer/cgroups. You can see the result of this in a dropped
cilium/ebpf dependency (which is only needed for device management).

NOTE that due to an issue with go mod / go list,
github.com/opencontainers/runc had to be added to
hack/unwanted-dependencies.json under x/exp. This is bogus because
opencontainers/runc does not use x/exp directly, only via cilium/ebpf
dependency (which is not vendored here).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-11-01 17:26:09 -07:00
Kubernetes Prow Robot
d87bf75c29 Merge pull request #128439 from oxxenix/migrate-security-components-to-contextual-logging
clustertrustbundle, token_manager: migrate to contextual logging
2024-11-01 11:17:25 +00:00
Davanum Srinivas
e86d02b60c Copy ParseCgroupFileUnified and Drop rest of containerd/cgroups
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-10-31 13:42:39 -04:00