| Files | Last commit | Last update |
|---|---|---|
Update OpenTelemetry Go to v1.47.0 (#4067) Replaces #4065 and #4066, which fail `verify` because otel v1.47.0 deprecates `go.opentelemetry.io/otel/log/global` (staticcheck SA1019). The `global` functions now just call `otel.GetLoggerProvider` / `otel.SetLoggerProvider`, so we switch to those directly. AI use: AI-assisted, I reviewed and tested it. - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 7 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
| 9 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
apierror: preserve error cause and expose it via DebugInfo (#4043) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) Adds explicit cause tracking to `apierror` so underlying errors stay visible in server RPC logs without changing client-facing status messages. An opt-in `include_error_debug_info` flag on `APIConfig` (default `false`) attaches the full error to gRPC responses as `google.rpc.DebugInfo`, which `kubectl-ate` prints when present. Key changes: - Export `apierror.Error` with `WithCause(err)` returning a shallow copy. `Error()` includes the cause for logging, while `FromError()` and `Unwrap()` keep it out of client messages and outer `errors.Is` checks. - Add `include_error_debug_info` to `APIConfig` and wire it through `ateinterceptors.NewServerUnaryInterceptor` to attach `google.rpc.DebugInfo` when enabled. - Print `DebugInfo` details and stack entries in `kubectl-ate` `executeRoot`. - Wire `WithCause` into `actor.go` handlers (remaining `ateapi` call sites will follow in a separate PR). Part of #3546. AI use: AI-assisted for implementation, tests, and diff review; I reviewed all changes. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [ ] Docs updated Signed-off-by: pranshul gupta <pranshulg01@gmail.com> | 5 days ago | |
apierror: preserve error cause and expose it via DebugInfo (#4043) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) Adds explicit cause tracking to `apierror` so underlying errors stay visible in server RPC logs without changing client-facing status messages. An opt-in `include_error_debug_info` flag on `APIConfig` (default `false`) attaches the full error to gRPC responses as `google.rpc.DebugInfo`, which `kubectl-ate` prints when present. Key changes: - Export `apierror.Error` with `WithCause(err)` returning a shallow copy. `Error()` includes the cause for logging, while `FromError()` and `Unwrap()` keep it out of client messages and outer `errors.Is` checks. - Add `include_error_debug_info` to `APIConfig` and wire it through `ateinterceptors.NewServerUnaryInterceptor` to attach `google.rpc.DebugInfo` when enabled. - Print `DebugInfo` details and stack entries in `kubectl-ate` `executeRoot`. - Wire `WithCause` into `actor.go` handlers (remaining `ateapi` call sites will follow in a separate PR). Part of #3546. AI use: AI-assisted for implementation, tests, and diff review; I reviewed all changes. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [ ] Docs updated Signed-off-by: pranshul gupta <pranshulg01@gmail.com> | 5 days ago | |
| 9 days ago | ||
| 9 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
apierror: preserve error cause and expose it via DebugInfo (#4043) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) Adds explicit cause tracking to `apierror` so underlying errors stay visible in server RPC logs without changing client-facing status messages. An opt-in `include_error_debug_info` flag on `APIConfig` (default `false`) attaches the full error to gRPC responses as `google.rpc.DebugInfo`, which `kubectl-ate` prints when present. Key changes: - Export `apierror.Error` with `WithCause(err)` returning a shallow copy. `Error()` includes the cause for logging, while `FromError()` and `Unwrap()` keep it out of client messages and outer `errors.Is` checks. - Add `include_error_debug_info` to `APIConfig` and wire it through `ateinterceptors.NewServerUnaryInterceptor` to attach `google.rpc.DebugInfo` when enabled. - Print `DebugInfo` details and stack entries in `kubectl-ate` `executeRoot`. - Wire `WithCause` into `actor.go` handlers (remaining `ateapi` call sites will follow in a separate PR). Part of #3546. AI use: AI-assisted for implementation, tests, and diff review; I reviewed all changes. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [ ] Docs updated Signed-off-by: pranshul gupta <pranshulg01@gmail.com> | 5 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Assign execution identities in the API server (#3735) Part of #3733. A delayed crash report can outlive an Actor execution while its Actor UID, worker and assignment stay the same. `ate-api-server` assigns a fresh UUID to each Run/Restore call and saves it with the RUNNING write. Atelet forwards the UUID; gVisor and microVM bind it to the runtime they start. Re-entry keeps the existing runtime replacement behavior. This is the preparation minor release agreed in #3733. Workers store the UUID and keep their existing crash-report format. The API accepts the report field without comparing it. Upgrade atelet and workers before the API. Draft #3736 enables reporting and comparison in the following minor. Validation on [Linux GitHub Actions](https://github.com/lilong555/substrate/actions/runs/44865317150) at `24ad2acd`: - `go test -race ./...` passes. - `go test -race -count=3 -shuffle=on ./cmd/ateworker-gvisor` passes, including both shutdown tests updated for the execution identity argument. - `hack/verify-all.sh` passes. Installed-runtime upgrade and rollback still need cluster CI. AI use: Codex assisted with implementation, testing and independent source review. --------- Signed-off-by: liyinlong <173714821+lilong555@users.noreply.github.com> Co-authored-by: liyinlong <173714821+lilong555@users.noreply.github.com> | 4 days ago | |
Upgrade Kubernetes libraries to v0.38.0-beta.0 (#4053) <!-- The PR title becomes the release note. Write it for users. --> `go.mod` replaced `k8s.io/apimachinery` with an untagged commit, and `hack/tools/code-generator` pinned the generators the same way, because declarative validation needs changes that first ship in Kubernetes 1.38. `v0.38.0-beta.0` has them, so the `k8s.io/*` modules move to that tag and the `replace` is gone. controller-runtime is pinned to a commit on `main`. Its releases still use structured-merge-diff v6, so their fake client does not compile against apimachinery v0.38. Only the first and last commits are hand edits. The rest are tool output: `go get` and `go mod tidy` for the two bump commits, and the script named in the title for the others. Runtime changes that come with the new modules: - atecontroller prints klog text lines on stderr at startup. The pinned controller-runtime logs its cache sync waits through klog. - Range errors on enum fields name the constant: `must be less than or equal to ACTOR_STATE_REVERTING`, where it was `7`. - atecontroller's metrics port serves OpenMetrics to scrapers that ask for it. - gRPC moves to v1.85.0 and OTel to v1.47.0. The regenerated validation code accepts and rejects the same input as before. The WorkerPool CRD diff is description text. Part of #3821 <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: AI-assisted with Claude Code. It ran the bump and the generators, and drafted the commit messages and this description. I reviewed the diff. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass (e2e and the root-gated tests were not run locally) - [x] Docs updated --------- Signed-off-by: Yongrui Lin <yongrlin@outlook.com> | 4 days ago | |
| 8 days ago | ||
benchmarking(agentsession): spread requests per second over a second (#3981) Benchmarking-only change. Currently, `--target-rps 10` means "consecutive bursts of 10 swaps, spaced exactly 1 second away from one another". This PR makes it mean the more intuitive and obvious "10 swaps per second, evenly spaced over time". AI use: AI-assisted, manually reviewed. - [x] Tests pass: Yes - [x] Docs updated: No docs to update, but updated comment. Signed-off-by: Etienne Perot <eperot@google.com> | 9 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Upgrade Kubernetes libraries to v0.38.0-beta.0 (#4053) <!-- The PR title becomes the release note. Write it for users. --> `go.mod` replaced `k8s.io/apimachinery` with an untagged commit, and `hack/tools/code-generator` pinned the generators the same way, because declarative validation needs changes that first ship in Kubernetes 1.38. `v0.38.0-beta.0` has them, so the `k8s.io/*` modules move to that tag and the `replace` is gone. controller-runtime is pinned to a commit on `main`. Its releases still use structured-merge-diff v6, so their fake client does not compile against apimachinery v0.38. Only the first and last commits are hand edits. The rest are tool output: `go get` and `go mod tidy` for the two bump commits, and the script named in the title for the others. Runtime changes that come with the new modules: - atecontroller prints klog text lines on stderr at startup. The pinned controller-runtime logs its cache sync waits through klog. - Range errors on enum fields name the constant: `must be less than or equal to ACTOR_STATE_REVERTING`, where it was `7`. - atecontroller's metrics port serves OpenMetrics to scrapers that ask for it. - gRPC moves to v1.85.0 and OTel to v1.47.0. The regenerated validation code accepts and rejects the same input as before. The WorkerPool CRD diff is description text. Part of #3821 <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: AI-assisted with Claude Code. It ran the bump and the generators, and drafted the commit messages and this description. I reviewed the diff. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass (e2e and the root-gated tests were not run locally) - [x] Docs updated --------- Signed-off-by: Yongrui Lin <yongrlin@outlook.com> | 4 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
| 8 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
| 7 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
| 9 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Upgrade Kubernetes libraries to v0.38.0-beta.0 (#4053) <!-- The PR title becomes the release note. Write it for users. --> `go.mod` replaced `k8s.io/apimachinery` with an untagged commit, and `hack/tools/code-generator` pinned the generators the same way, because declarative validation needs changes that first ship in Kubernetes 1.38. `v0.38.0-beta.0` has them, so the `k8s.io/*` modules move to that tag and the `replace` is gone. controller-runtime is pinned to a commit on `main`. Its releases still use structured-merge-diff v6, so their fake client does not compile against apimachinery v0.38. Only the first and last commits are hand edits. The rest are tool output: `go get` and `go mod tidy` for the two bump commits, and the script named in the title for the others. Runtime changes that come with the new modules: - atecontroller prints klog text lines on stderr at startup. The pinned controller-runtime logs its cache sync waits through klog. - Range errors on enum fields name the constant: `must be less than or equal to ACTOR_STATE_REVERTING`, where it was `7`. - atecontroller's metrics port serves OpenMetrics to scrapers that ask for it. - gRPC moves to v1.85.0 and OTel to v1.47.0. The regenerated validation code accepts and rejects the same input as before. The WorkerPool CRD diff is description text. Part of #3821 <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: AI-assisted with Claude Code. It ran the bump and the generators, and drafted the commit messages and this description. I reviewed the diff. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass (e2e and the root-gated tests were not run locally) - [x] Docs updated --------- Signed-off-by: Yongrui Lin <yongrlin@outlook.com> | 4 days ago | |
atenet-router: add safe actor assignments caching and retry logic (#2420) Every ingress request calls `ext_proc` in `atenet-router`, which calls `ResumeActor` on the ATE API server to find the actor's worker. This adds an Envoy Rust dynamic module (`envoy_substrate_ingress_cache`) that caches `<atespace>/<actor> -> worker IP` in Envoy, so bodiless requests to a warm actor skip that call. It's behind the `IngressCache` preview gate, off by default. - **Cache hit**: the HTTP filter, ahead of `ext_proc`, reads the actor from `dev.ate.target.actor` filter state or a single `ate-target-actor` header (an inner header on a terminated CONNECT tunnel is ignored). It sets the `envoy.filters.listener.original_dst` metadata (worker `ip:atunnel_port`, actor port, worker SPIFFE ID), `x-ate-target-port` and `ate-target-actor`, plus `ate.ingress_cache` `hit` dynamic metadata, and clears the route cache. A dedicated route that matches that metadata, which clients can't set, has `ext_proc` disabled. - **Cache miss**: the request goes through `ext_proc` unchanged. On a successful response the filter learns the binding from the `original_dst` metadata. Failures aren't learned. - **Requests with a body**: only requests that end with their headers or have `content-length: 0` use the cache, because Envoy doesn't buffer bodies for replay. Everything else, including all gRPC, chunked or HTTP/2 GETs and upgrades, skips the lookup (`bypass`). Their responses still refresh the cache if successful. - **Eviction**: a hit that fails with `421` + `x-ate-assignment-stale: true`, `503` with `UF`/`UH`/`UC`/`UR` (Envoy flags), or `grpc-status: 14` evicts the binding it used, but not a newer one. Application 503s without flags are left alone. - **Tunnel Watcher**: on the CONNECT path a refused tunnel (never established) and a tunnel cut off mid-request looks the same to the router (`503 UC`). The `tunnel_watcher` is a network filter on the `actor_connect` internal listener, before `tcp_proxy`, that can them apart from byte direction alone. A close with `UF` marks the actor's entries for that worker **stale**; an mid-flight close with a request outstanding marks them **spoiled**. Its close callback runs inside `tcp_proxy`'s close, so the mark always lands before the router's `503`. - **Replay**: requests with no body that hit stale cache are replayed through `ext_proc` with `recreate_stream` (restoring `ate-target-actor`; the new stream starts without the hit metadata) only when we have **certainty** an actor did NOT receive it: `421` stale, `503` `UF`/`UH`, or `503 UC` with `upstream_reset_before_response_started` details AND only when the cache entry is **stale and not spoiled**. Replay of requests with body, including all gRPC is left out of scope of this initial implementation. - As of this implementation, the cache is **per Envoy worker thread** (no locks). It can be configured with `atenet-router`'s `--ingress-cache-ttl` (default 5s) and `--ingress-cache-max-cached-actors` (default 10,000 per thread) set its TTL and size. Known limitations are in the module README. On kind with the router at 2 CPUs and 50 actors, the cache raised the max RPS within a 25ms tail-latency SLO from 3936 to 3968, cut p50 from 3.77ms to 1.03ms, and cut `ext_proc` calls by ~96%. AI was used to assist with the development of this change: including knowledge gathering, adversarial testing and review, test coverage writing, refactoring, and all code writing. Line by line read of all deltas by the human author (except for autogenerated vendor/ dir), as well as benchmark and test results review. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR --------- Signed-off-by: Pancho <panchoruy@google.com> | 9 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
A gVisor actor whose sandbox dies gets a final usage record with its CPU up to the crash (#3174) When a gVisor sandbox dies on its own (#2695), the ateworker tears the actor down and writes its final usage record. That record repeated the last periodic sample, because the code assumed "the sandbox, and its cgroup, are gone". The cgroup and its counters stay until the teardown's `runsc delete` removes them (#2258 relies on the same thing), so the CPU used since the last sample, up to one `--usage-sample-interval`, was missing. Found on ate-dev: after killing a running actor's sandbox, its final record was dated at the initial reading, 37s before the kill, with the initial reading's CPU. - **CPU at death, no memory.** The crash path now reads the cgroup before the teardown (`readDeadFinal`). Its CPU counter and memory peak are still right, but its memory went with the processes, so memory usage and working set are left out: no one measured them at the death. `WorkloadStatsSample` gets a new `memory_unmeasured` field, so a sample can say "CPU measured, memory not" without changing the existing fields; the worker sets it for any reading of a sandbox with no process left, and `UsageAttrs` leaves the two keys out when it is set. That also covers `GetActiveWorkloadStats`, which can serve the stored sample before the teardown. This follows kubelet, whose memory series for a dead container just ends. Checkpoint and Terminate read while the sandbox runs, so their records keep every measurement. - **One order for every teardown.** `endActivation` reads, tears down, then writes the final record. TerminateWorkload and the crash path both use it, so the order is pinned in one place. - **Tests.** `TestWatchSandboxCrashWritesFinal` drives the watcher through a sandbox that exits, with a fake teardown that removes the cgroup as `runsc delete` does, and checks the emitted final record: CPU and peak at death, no memory usage or working set, and the crash reported. `TestEndActivationLiveFinalKeepsMemory` checks that a terminate's final record keeps all four, and `TestUsageAttrsUnsetMemory` the key omission. With the crash path reverted to skip the read, the watcher test fails with `final cpu.time = "1.234567", want 2`; without the clearing, the crash tests fail on memory. - **Docs.** The events registry, the `final` brief, and the guide no longer say a crashed activation has no final record. A sandbox that dies on its own gets one on both runtimes (since #2695); a lost worker still does not. The registry also says the two memory keys are absent on a gVisor crash's final record. The micro-VM path is unchanged: once the VM is down, there is no guest to read, so its newest sample stands in. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR --------- Signed-off-by: Tim Bai <timbai@google.com> | 4 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update OpenTelemetry Go to v1.47.0 (#4067) Replaces #4065 and #4066, which fail `verify` because otel v1.47.0 deprecates `go.opentelemetry.io/otel/log/global` (staticcheck SA1019). The `global` functions now just call `otel.GetLoggerProvider` / `otel.SetLoggerProvider`, so we switch to those directly. AI use: AI-assisted, I reviewed and tested it. - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 7 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
| 9 days ago | ||
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
Update Copyright for CNCF. All Code was donated, accept only "The Agent Substrate Authors" going forward (#3644) <!-- The PR title becomes the release note. Write it for users. --> Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) This project was donated to the CNCF sandbox, for some time now we've accepted either Google LLC or The Agent Substrate Authors. Consolidate on the latter, and stop accepting new files with the former. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: .... technically to help vet the bash command, but this is a mechanical change. The bash fu is included in the commit message. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Benjamin Elder <bentheelder@google.com> | 22 days ago | |
A gVisor actor whose sandbox dies gets a final usage record with its CPU up to the crash (#3174) When a gVisor sandbox dies on its own (#2695), the ateworker tears the actor down and writes its final usage record. That record repeated the last periodic sample, because the code assumed "the sandbox, and its cgroup, are gone". The cgroup and its counters stay until the teardown's `runsc delete` removes them (#2258 relies on the same thing), so the CPU used since the last sample, up to one `--usage-sample-interval`, was missing. Found on ate-dev: after killing a running actor's sandbox, its final record was dated at the initial reading, 37s before the kill, with the initial reading's CPU. - **CPU at death, no memory.** The crash path now reads the cgroup before the teardown (`readDeadFinal`). Its CPU counter and memory peak are still right, but its memory went with the processes, so memory usage and working set are left out: no one measured them at the death. `WorkloadStatsSample` gets a new `memory_unmeasured` field, so a sample can say "CPU measured, memory not" without changing the existing fields; the worker sets it for any reading of a sandbox with no process left, and `UsageAttrs` leaves the two keys out when it is set. That also covers `GetActiveWorkloadStats`, which can serve the stored sample before the teardown. This follows kubelet, whose memory series for a dead container just ends. Checkpoint and Terminate read while the sandbox runs, so their records keep every measurement. - **One order for every teardown.** `endActivation` reads, tears down, then writes the final record. TerminateWorkload and the crash path both use it, so the order is pinned in one place. - **Tests.** `TestWatchSandboxCrashWritesFinal` drives the watcher through a sandbox that exits, with a fake teardown that removes the cgroup as `runsc delete` does, and checks the emitted final record: CPU and peak at death, no memory usage or working set, and the crash reported. `TestEndActivationLiveFinalKeepsMemory` checks that a terminate's final record keeps all four, and `TestUsageAttrsUnsetMemory` the key omission. With the crash path reverted to skip the read, the watcher test fails with `final cpu.time = "1.234567", want 2`; without the clearing, the crash tests fail on memory. - **Docs.** The events registry, the `final` brief, and the guide no longer say a crashed activation has no final record. A sandbox that dies on its own gets one on both runtimes (since #2695); a lost worker still does not. The registry also says the two memory keys are absent on a gVisor crash's final record. The micro-VM path is unchanged: once the VM is down, there is no guest to read, so its newest sample stands in. - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR --------- Signed-off-by: Tim Bai <timbai@google.com> | 4 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 7 days ago | ||
| 22 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 9 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 5 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 4 days ago | ||
| 4 days ago | ||
| 8 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 4 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 8 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 7 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 4 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 4 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 7 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 9 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 22 days ago | ||
| 4 days ago |