| Files | Last commit | Last update |
|---|---|---|
| 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> | 23 days ago | |
ci: run verify-all.sh in its own job (#3722) Part of #3721. `run-tests` ran the unit tests (about 6.5 min) and then `hack/verify-all.sh` (about 5.5 min). Running verify as a separate job lets the two run in parallel, which takes about 6 minutes off `run-tests`. `verify` is not a required check yet. A maintainer needs to add it to the `protect-main` and `protect-release-branches` rulesets after this merges. AI use: Claude Code helped find the slow steps and drafted the change. I reviewed it. - [ ] Tests pass - [x] Docs updated π€ Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io> | 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> | 23 days ago | |
CI: Add the upgrade E2E test for each release (#2712) This adds an e2e suite and a workflow that upgrade a running install with actors on it, following `docs/upgrade.md` step by step. The workflow installs the newest earlier release on the branch with that release's own installer, and the suite starts counter actors that are running, paused, or suspended. One job runs them on gVisor and one on microVM. It then runs each runbook step with this checkout's `ate-setup` and a copy of the install record: podcertificate-controller, atelet, the WorkerPool's `workerImage`, the API server, ate-controller, atenet, the SandboxConfig, then `deploy ate-system --setup-csi=none`. While it runs, it acts as the actors' harness and suspends an actor as soon as its worker pod starts terminating. After each step, the step's component has to run new images and no actor may be `CRASHED`. Only the pool roll may roll the workers and evict actors, plus ate-controller if its pod template changed. At the end, every actor, plus one created after the upgrade, has to resume on a new worker with its counter intact. ----- ### Cadence Patch releases are cut by merging fixes into `release-X.Y` and tagging there. The workflow runs on every push to a `release-X.Y` branch and upgrades from the newest earlier tag on that branch, so the commit that becomes v0.6.1 is tested as `v0.6.0` β `v0.6.1` before it is tagged. A push with no earlier tag yet, such as the branch cut itself, is skipped with a notice. It also runs on demand. It doesn't run on pull requests or on pushes to main. After GA 1.0 we support upgrading to the next minor, for example 1.1.x β 1.2.y, so a push to `release-1.2` should also upgrade from the newest 1.1 release. That second lane comes with 1.0. -------- #### Tested - main β this PR, on GitHub runners in my fork: both lanes pass all 8 steps, in about 15 and 18 minutes. The microVM lane needs KVM, so I only runs it on GitHub runners. Not covered yet: rollback. I used Claude Code to help write the suite and to run the tests above. Part of #1784 - [x] Tests pass - [x] Appropriate changes to documentation are included in the PR --------- Signed-off-by: Haven Xia <haoyuxia@google.com> | 23 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> | 10 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> | 23 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> | 23 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> | 23 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> | 10 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 10 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 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> | 23 days ago |
E2E testing
$ source .ate-dev-env.sh
$ go test -v ./internal/e2e/suites/... -args --e2e
Principles
- Keep it simple -- use go test for the harness.
- e2e tests live under
internal/e2e/suites/<suite>. The upgrade suite lives ininternal/e2e/upgradeinstead, so the default run leaves it out: it upgrades the cluster it runs on..github/workflows/upgrade-e2e.yamlruns it. - Each suite should implement TestMain using e2e.RunTestMain()
- e2e tests will be skipped for ordinary unit tests unless the
--e2eflag is set e.g.go test ./internal/e2e/suites/... -args --e2e
- e2e tests will be skipped for ordinary unit tests unless the
- Helper libraries live under
internal/e2e - Setup and Teardown are on a per-component basis and the component's author's responsibility.
Preconditions
The e2e tests assume you have a cluster set up with Agent Substrate installed
with the --e2e-tuning component, for example via
go run ./cmd/ate-setup deploy ate-system --e2e-tuning --credential-provider='{"name":"k8s.io"}'
(add --kind for a local Kind cluster).
The egress credential injection suite needs that bundled provider, which is
what CI installs on the envoy lane; see internal/e2e/suites/egresscredinject.
Sandbox classes
The suites are runtime-agnostic: the same tests run against gVisor and against
the microVM (kata + cloud-hypervisor) sandbox class. E2E_SANDBOX_CLASS
selects which, by repointing every fixture at its variant --- see
e2e.CounterFixture, e2e.EgressFixture and e2e.RenderFixtureManifest in
sandbox.go. Unset means gVisor.
# gVisor (the default), against the counter and egress demos
$ hack/run-e2e-kind.sh -v -args --no-color
# microVM, against the counter-microvm and egress-microvm demos
$ E2E_SANDBOX_CLASS=microvm hack/run-e2e-kind.sh -v -args --no-color
The microVM lane needs its fixtures installed first, which also needs a node
with /dev/kvm (hack/create-kind-cluster.sh detects one and labels the node):
$ go run ./cmd/ate-setup --kind deploy demo counter-microvm # counter-microvm
$ go run ./cmd/ate-setup --kind deploy demo egress-microvm # egress-microvm
A handful of knobs override the class defaults, mostly for a cluster that
installs the fixtures elsewhere: E2E_SUBSTRATE_TEMPLATE_ATESPACE /
E2E_SUBSTRATE_TEMPLATE_NAME / E2E_SUBSTRATE_POOL_NAMESPACE /
E2E_SUBSTRATE_POOL_NAME point the counter fixture somewhere else, and
E2E_TEMPLATE_READY_TIMEOUT replaces the golden-snapshot budget (90s on
gVisor, 10m on microVM, where the golden is a cloud-hypervisor cold boot plus
a checkpoint). The upgrade suite runs ate-setup with --config $E2E_ATE_SETUP_CONFIG when it is set, and otherwise with --kind, which
E2E_ATE_SETUP_FLAGS replaces. With a record of pre-built images, it rolls the
pool to the worker image for its sandbox class at the record's tag.
Settings
The installer reads these settings in addition to those in docs/guides/operator-install.md, through the same flag, environment variable, and configuration document channels:
e2e.tuninglayersmanifests/ate-install/components/e2eover control plane and data plane applies, configuring short atelet snapshot delays for end-to-end test runs.e2e.envoyConcurrencysets the worker thread count (--concurrency) of the Envoy container inatenet-egress;0leaves the manifest unchanged. The nighthawk egress benchmark sets it to1to measure single-CPU Envoy performance.
| Key | Environment variable | Flag | Default | Applies to |
|---|---|---|---|---|
e2e.envoyConcurrency |
E2E_ATE_ENVOY_CONCURRENCY |
--e2e-envoy-concurrency |
0 |
(global) |
e2e.tuning |
ATE_INSTALL_E2E_TUNING |
--e2e-tuning |
false |
(global) |
Preview features
Tests of a preview feature start with e2e.RequirePreview(t, preview.Gate...),
which skips them unless the --preview flag names that gate. It takes the same
syntax as ATE_PREVIEW and should match what the cluster was installed with:
$ hack/run-e2e-kind.sh -v -args --no-color --preview=ALL
Unset or empty means no gates. CI must pass it, even if only as empty, so a lane that forgets cannot silently skip every preview test; see preview.go.
GCS-only suites
internal/e2e/suites/snapshotcredentials runs only against an install that
stores snapshots in GCS, which it reads from the objectstore-plugin sidecar on
ate-api-server, and skips on any other backend, such as the kind lane's
S3-compatible service. A lane that is meant to be GCS sets
E2E_REQUIRE_GCS=true, which turns that skip into a failure, so a lane
misconfigured as S3 cannot pass by running nothing.
After a failure
A suite deletes the namespaces it created only when it passed. A failed run keeps them, because the failure is usually explained inside a worker pod (the worker logs, and for a microVM worker the guest's console tail), and deleting the namespace takes those pods with it:
$ kubectl logs -n <kept-namespace> <worker-pod>
Nothing reclaims them afterwards, and each namespace holds a WorkerPool's worth of running pods, so clean up once you are done reading:
$ hack/cleanup-e2e.sh # deletes every namespace labeled ate.dev/e2e
Creating a new test suite
Copy testmain_test.go from internal/e2e/suites/example into your new suite. It will
look like this:
func run(m *testing.M) int {
Setup()
defer Teardown()
// return allows the deferred Teardown to run.
return e2e.RunTestMain(m)
}
func TestMain(m *testing.M) { os.Exit(run(m)) }
This will handle the standard flags and checks for running an e2e test suite.