Commit Graph

20 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
9f0bb640ce gha: apply zizmor fixes
Results of automated fixes using;

    zizmor --fix=all --min-severity medium .

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-06-26 18:53:36 +02:00
dependabot[bot]
38aaa269c7 build(deps): bump actions/checkout from 6 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-23 17:22:48 +00:00
Maksym Pavlenko
948f292e44 Merge pull request #13229 from containerd/dependabot/github_actions/actions/upload-artifact-7.0.1
build(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1
2026-04-22 21:09:59 +00:00
Chris Henzie
270916ad15 Parameterize K8s version in node-e2e workflow
Add inputs to workflow_call in node-e2e.yml to allow specifying
Kubernetes branch or tag to test against. Update checkout step
to use this input, defaulting to master.

This enables testing containerd against specific Kubernetes release
branches, which is required for verifying compatibility with extended
support windows for Kubernetes distros that require them.

Signed-off-by: Chris Henzie <chrishenzie@gmail.com>
Assisted-by: Antigravity
2026-04-14 09:31:41 -07:00
dependabot[bot]
bf57a0df59 build(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](bbbca2ddaa...043fb46d1a)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 23:31:57 +00:00
dependabot[bot]
12cbacee69 build(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b7c566a772...bbbca2ddaa)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 11:52:35 -08:00
Akhil Mohan
3f133acd42 set fetch-depth for containerd to 0 for version parsing
image volume e2e tests in k/k uses containerd version
to trigger tests for some features. ref: bfafa32d90/test/e2e_node/image_volume.go (L64)

The current CI builds have only the SHA as the version since
the tags are not present. setting fetch-depth makes sure the tags
are present and will be used while testing.

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2026-02-03 18:27:24 +05:30
Davanum Srinivas
b58f6579c7 Drop skip for [Feature:ResourceMetrics] in node e2e tests
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-22 10:13:17 -05:00
Davanum Srinivas
635b301430 Ensure ListMetricDescriptors gets tested with latest k/k
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-19 19:40:17 -05:00
dependabot[bot]
e191976e0c build(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](330a01c490...b7c566a772)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 23:08:26 +00:00
Mike Brown
f9b7482b66 Merge pull request #12629 from dims/updates-for-better-cri-resource-metrics
cri: Add background stats collector to calculate UsageNanoCores
2025-12-09 21:14:50 +00:00
dependabot[bot]
b0946006fa build(deps): bump actions/checkout from 6.0.0 to 6.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...8e8c483db8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 23:07:38 +00:00
Davanum Srinivas
9d5ee65014 cri: Add background stats collector to calculate UsageNanoCores
adds a background stats collector that calculates `UsageNanoCores` for containers and pod sandboxes.

- run in the background every second to collect CPU metrics for all containers and sandboxes (similar to what cAdvisor does)
- keep a rolling buffer of CPU samples and calculates the instantaneous CPU usage rate from consecutive samples
- read pod-level CPU stats from the parent cgroup rather than the pause container
- add cgroupv2 Pressure Stall Information for CPU, memory, and IO
- add missing `Timestamp` and `Interfaces` fields

when Kubernetes runs with `PodAndContainerStatsFromCRI=true`, it expects `UsageNanoCores` to be set in stats responses.
This value represents how much CPU is being used right now (as opposed to `UsageCoreNanoSeconds` which is cumulative).
To calculate it, we need to compare CPU samples over time to replicate what is in cadvisor.

we can't yet really test this in CI as some changes in kubernetes has to land for `--feature-gates=PodAndContainerStatsFromCRI=true`

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-12-08 16:03:06 -05:00
dependabot[bot]
dfb8bffb9a build(deps): bump actions/checkout from 5.0.1 to 6.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.1 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](93cb6efe18...1af3b93b68)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-27 10:15:08 -05:00
dependabot[bot]
83a5208a60 build(deps): bump actions/checkout from 5.0.0 to 5.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](08c6903cd8...93cb6efe18)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 23:08:31 +00:00
dependabot[bot]
94c2d3853c build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.2 to 5.0.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](ea165f8d65...330a01c490)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 23:13:31 +00:00
Chris Henzie
de20021f52 Make E2E workflow a required check
The Kubernetes Node E2E workflow has proven to be stable. To ensure
these tests pass before merging, this change integrates the workflow
into the required CI checks.

Signed-off-by: Chris Henzie <chrishenzie@google.com>
2025-09-24 12:04:25 -07:00
dependabot[bot]
8d275704ad build(deps): bump actions/checkout from 4.2.2 to 5.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](11bd71901b...08c6903cd8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 08:42:51 +00:00
Phil Estes
4f95737e1c Remove Alpha gate from k8s e2e runs
Copying the same change made to k8s infra testing to remove Alpha gated
features from standard end to end testing runs

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-07-29 05:57:36 -04:00
Chris Henzie
b92e8b544a Add GitHub Action for k8s node e2e tests
Introduces a workflow to run Kubernetes node e2e tests against
containerd pull requests. This is the first step in migrating
containerd's CI off of the community-owned prow.k8s.io infrastructure.

This new workflow is modeled after the existing presubmit job:
https://github.com/kubernetes/test-infra/blob/master/config/jobs/containerd/containerd/containerd-presubmit-jobs.yaml

Initially this workflow will not be required to pass on PRs. We can make
it required later once it's proven to be stable.

Signed-off-by: Chris Henzie <chrishenzie@google.com>
2025-07-01 10:46:17 -07:00