| 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 |
| ci: speed up dynamic module tests by using the image's clang (#4058) <!-- The PR title becomes the release note. Write it for users. --> Part of #3721. dynamic module tests ran apt-get update and installed clang and libclang on every run, but ubuntu-latest already ships them (clang 20, 21 and 22). The step took about 46s, and in 2 of 12 runs on my fork, apt stalled for ~11 minutes. Now the step only installs from apt when clang or libclang is missing. On my fork the step went from about 46s to 22s with no stalls. <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: AI-assisted benchmarking, I reviewed and tested it. <!-- Breaking change? Describe what users must do on upgrade and ask for the `breaking-change` label. --> - [x] Tests pass - [ ] Docs updated Signed-off-by: Ava Barron <717807+asbarron@users.noreply.github.com> | 7 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 |
| 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 |
| benchmarking: in-place orchestrator invocations (#1956) Running the benchmark orchestrator against a dev cluster meant pushing a branch for it to clone and staging a target-cluster script where the CronJob's ConfigMap would mount it. Two flags let it run from a workstation instead: - `--substrate-dir DIR` builds that checkout as it is, uncommitted changes included, instead of cloning `--repo` at `--branch`. A dirty tree tags its images and results `<commit>-dirty-<random>`, because the runner Jobs pull `IfNotPresent`. - `--env-file FILE` sources that file for every test, whatever its `targetCluster`, instead of `--target-cluster-dir/<targetCluster>.sh`. The checkout's own `.ate-dev-env.sh` is sourced where it is and left alone. Any other file is copied in for each test and removed after it. Each flag rejects the flags it replaces: `--substrate-dir` with `--repo` or `--branch`, and `--env-file` with `--target-cluster-dir`. One of `--repo` or `--substrate-dir` is required. Changes that also apply to the CronJob path: - Every run uses a kubeconfig of its own in a temporary directory, so `get-credentials` doesn't switch the caller's kubectl context. - Env files are checked before any docker work. The run refuses to start if a copied env file would overwrite the checkout's own `.ate-dev-env.sh`. - `source_env` parses `env -0`, so exported bash functions can't add bogus keys to the environment. - Flag paths resolve against the caller's directory before the chdir into the checkout. - `--manifests-dir` defaults to the `manifests/` next to `orchestrator.py`, which is the same path as before in the image. - A root `.dockerignore` keeps `.git`, venvs and `.ate-dev-env.sh` out of the runner image build context. ```bash benchmarking/automation/venv/bin/python -u benchmarking/automation/orchestrator.py \ --substrate-dir . --env-file .ate-dev-env.sh \ --dest gs://<bucket>/<prefix> \ --tests benchmarking/automation/tests.yaml --test-name <name> ``` I used AI to write and rebase this change, and reviewed the diff. Fixes #3955 - [x] Tests pass (`test_orchestrator.py` covers argument validation, the env file helpers and `build_tag`) - [x] Appropriate changes to documentation are included in the PR (README "Running from a workstation", `ateapi-cold-resume.md`) Signed-off-by: Max Smythe <smythe@google.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 |
| 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 |
| 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 |
| 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 |
| Logo cleanup (#3791) Use only fills and no strokes - strokes can scale up/down weirdly. Re-render the PNGs in can any pixel-level shfts (re-rendering them shows a diff but it is indiscernible). Document the names of the 3 robots. They are, of course, UUIDs. - [X] Tests pass - [X] Docs updated Signed-off-by: Tim Hockin <thockin@google.com> | 15 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 |
| 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 |
| build(deps): bump source-map-js from 1.2.1 to 1.2.4 in /site (#4062) Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/7rulnik/source-map-js/releases">source-map-js's releases</a>.</em></p> <blockquote> <h2>v1.2.4</h2> <h3>Index source maps</h3> <ul> <li> <p>Fix <code>originalPositionFor</code> returning nulls at the first column of a section (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/99">#99</a>)</p> <p>Reported by <a href="https://github.com/trackoor"><code>@trackoor</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/82">#82</a>.</p> </li> <li> <p>Fix a section's column offset being applied to its second line instead of its first (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/104">#104</a>)</p> <p>This affected sections with both a line and a column offset, in <code>eachMapping</code>, <code>generatedPositionFor</code>, <code>SourceMapGenerator.fromSourceMap</code> and <code>SourceNode.fromStringWithSourceMap</code>.</p> </li> <li> <p>Support <code>allGeneratedPositionsFor</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/105">#105</a>)</p> <p>It threw <code>TypeError: this._findSourceIndex is not a function</code>. It now returns the same results as for the equivalent map without sections, with positions from every section that has the source. <code>generatedPositionFor</code> on nested index maps threw the same error and works now too.</p> </li> <li> <p>Fix <code>generatedPositionFor</code> returning made-up positions (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/115">#115</a>)</p> <p>It only searched the first section that listed the source, and when that section had no match, it returned the section offset added to <code>null</code>. It now searches all sections, so <code>bias</code> picks the closest mapping across them, and returns nulls when nothing matches.</p> </li> <li> <p>Add <code>computeColumnSpans</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/116">#116</a>)</p> </li> </ul> <h3>Other fixes</h3> <ul> <li> <p>Fix <code>generatedPositionFor</code>, <code>allGeneratedPositionsFor</code> and <code>eachMapping</code> with <code>ORIGINAL_ORDER</code> throwing <code>TypeError</code> when a source has no mappings (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/100">#100</a>)</p> <p>Reported by <a href="https://github.com/trackoor"><code>@trackoor</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/83">#83</a>. This is common in bundles, where a source can be listed after its code was tree-shaken away.</p> </li> <li> <p>Fix <code>allGeneratedPositionsFor</code> returning positions that belong to a different source (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/102">#102</a>)</p> </li> <li> <p>Fix lookups throwing <code>RangeError: Maximum call stack size exceeded</code> on source maps with about 200,000 or more sources (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/113">#113</a>)</p> </li> <li> <p>Fix <code>SourceNode#replaceRight</code> throwing on a node without children (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/114">#114</a>)</p> </li> </ul> <h3>TypeScript</h3> <ul> <li> <p>Fix type definitions that didn't match the runtime, without breaking changes (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/117">#117</a>)</p> <ul> <li><code>SourceMapConsumer</code> accepts <code>version</code> as a number, <code>null</code> entries in <code>sourcesContent</code>, a missing <code>names</code>, index maps, JSON strings and the <code>sourceMapUrl</code> argument. Reported by <a href="https://github.com/linsk1998"><code>@linsk1998</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/43">#43</a>; a fix for <code>sourcesContent</code> was proposed by <a href="https://github.com/lahmatiy"><code>@lahmatiy</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/pull/75">#75</a>.</li> <li><code>SourceMapConsumer.fromSourceMap</code> is declared, and <code>allGeneratedPositionsFor</code> takes an optional <code>column</code> and returns <code>lastColumn</code>.</li> <li>The <code>skipValidation</code> and <code>ignoreInvalidMapping</code> options of <code>SourceMapGenerator</code> are typed.</li> <li><code>SourceNode</code> accepts <code>null</code>s and chunk arrays in the constructor, nested arrays in <code>add</code> and <code>prepend</code>, and a RegExp or a replacer function in <code>replaceRight</code>.</li> </ul> <p>Return types that would need a breaking change, such as the <code>null</code>s from <code>originalPositionFor</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/30">#30</a>), are documented in comments and left for the next major (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/118">#118</a>).</p> </li> </ul> <h3>Package</h3> <ul> <li> <p>Set <code>engines.node</code> to <code>>=6.0.0</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/97">#97</a>)</p> <p>The library already failed to load on older Node versions, so this only adds an install warning there.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md">source-map-js's changelog</a>.</em></p> <blockquote> <h2>1.2.4</h2> <h3>Index source maps</h3> <ul> <li> <p>Fix <code>originalPositionFor</code> returning nulls at the first column of a section (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/99">#99</a>)</p> <p>Reported by <a href="https://github.com/trackoor"><code>@trackoor</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/82">#82</a>.</p> </li> <li> <p>Fix a section's column offset being applied to its second line instead of its first (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/104">#104</a>)</p> <p>This affected sections with both a line and a column offset, in <code>eachMapping</code>, <code>generatedPositionFor</code>, <code>SourceMapGenerator.fromSourceMap</code> and <code>SourceNode.fromStringWithSourceMap</code>.</p> </li> <li> <p>Support <code>allGeneratedPositionsFor</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/105">#105</a>)</p> <p>It threw <code>TypeError: this._findSourceIndex is not a function</code>. It now returns the same results as for the equivalent map without sections, with positions from every section that has the source. <code>generatedPositionFor</code> on nested index maps threw the same error and works now too.</p> </li> <li> <p>Fix <code>generatedPositionFor</code> returning made-up positions (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/115">#115</a>)</p> <p>It only searched the first section that listed the source, and when that section had no match, it returned the section offset added to <code>null</code>. It now searches all sections, so <code>bias</code> picks the closest mapping across them, and returns nulls when nothing matches.</p> </li> <li> <p>Add <code>computeColumnSpans</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/116">#116</a>)</p> </li> </ul> <h3>Other fixes</h3> <ul> <li> <p>Fix <code>generatedPositionFor</code>, <code>allGeneratedPositionsFor</code> and <code>eachMapping</code> with <code>ORIGINAL_ORDER</code> throwing <code>TypeError</code> when a source has no mappings (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/100">#100</a>)</p> <p>Reported by <a href="https://github.com/trackoor"><code>@trackoor</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/83">#83</a>. This is common in bundles, where a source can be listed after its code was tree-shaken away.</p> </li> <li> <p>Fix <code>allGeneratedPositionsFor</code> returning positions that belong to a different source (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/102">#102</a>)</p> </li> <li> <p>Fix lookups throwing <code>RangeError: Maximum call stack size exceeded</code> on source maps with about 200,000 or more sources (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/113">#113</a>)</p> </li> <li> <p>Fix <code>SourceNode#replaceRight</code> throwing on a node without children (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/114">#114</a>)</p> </li> </ul> <h3>TypeScript</h3> <ul> <li> <p>Fix type definitions that didn't match the runtime, without breaking changes (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/117">#117</a>)</p> <ul> <li><code>SourceMapConsumer</code> accepts <code>version</code> as a number, <code>null</code> entries in <code>sourcesContent</code>, a missing <code>names</code>, index maps, JSON strings and the <code>sourceMapUrl</code> argument. Reported by <a href="https://github.com/linsk1998"><code>@linsk1998</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/issues/43">#43</a>; a fix for <code>sourcesContent</code> was proposed by <a href="https://github.com/lahmatiy"><code>@lahmatiy</code></a> in <a href="https://redirect.github.com/7rulnik/source-map-js/pull/75">#75</a>.</li> <li><code>SourceMapConsumer.fromSourceMap</code> is declared, and <code>allGeneratedPositionsFor</code> takes an optional <code>column</code> and returns <code>lastColumn</code>.</li> <li>The <code>skipValidation</code> and <code>ignoreInvalidMapping</code> options of <code>SourceMapGenerator</code> are typed.</li> <li><code>SourceNode</code> accepts <code>null</code>s and chunk arrays in the constructor, nested arrays in <code>add</code> and <code>prepend</code>, and a RegExp or a replacer function in <code>replaceRight</code>.</li> </ul> <p>Return types that would need a breaking change, such as the <code>null</code>s from <code>originalPositionFor</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/30">#30</a>), are documented in comments and left for the next major (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/118">#118</a>).</p> </li> </ul> <h3>Package</h3> <ul> <li> <p>Set <code>engines.node</code> to <code>>=6.0.0</code> (<a href="https://redirect.github.com/7rulnik/source-map-js/pull/97">#97</a>)</p> <p>The library already failed to load on older Node versions, so this only adds an install warning there.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/7rulnik/source-map-js/commit/adace91a04b510e419bde8b23b4c4ff0defb53b1"><code>adace91</code></a> 1.2.4</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/6ab4ccfaa85c02cc1572576d6c501c8c155ea467"><code>6ab4ccf</code></a> changelog for 1.2.4</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/338d7ad47eebe554930c6785eb2d6a16d34213ea"><code>338d7ad</code></a> Fix typings that don't match runtime, without breaking changes (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/117">#117</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/506b293fb3afd4394c4ed7c3c425fdf255ccf4df"><code>506b293</code></a> Add computeColumnSpans to IndexedSourceMapConsumer (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/116">#116</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/162f685c115f21299512a4b562291edd586426e5"><code>162f685</code></a> Search all sections at once in IndexedSourceMapConsumer#generatedPositionFor ...</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/2a7214fe6d7a7f0cd54f3a6efec5f731a2b35372"><code>2a7214f</code></a> Support allGeneratedPositionsFor on indexed source maps (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/105">#105</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/83a5133da495e08b1ea0d92771770b8deec7eeba"><code>83a5133</code></a> Apply an index map section's column offset to its first line only (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/104">#104</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/d7aa6984f94831849caacea626a7af025b558dd2"><code>d7aa698</code></a> Fix SourceNode#replaceRight on a node without children (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/114">#114</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/fe974a15ea9e2516eff92a28bd3b52cdb6cb2852"><code>fe974a1</code></a> Concat original mappings in chunks so huge maps don't overflow the stack (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/113">#113</a>)</li> <li><a href="https://github.com/7rulnik/source-map-js/commit/063a073c3a7d12cc3462fb8c0345df3005e77b6c"><code>063a073</code></a> Keep allGeneratedPositionsFor results to the requested source (<a href="https://redirect.github.com/7rulnik/source-map-js/issues/102">#102</a>)</li> <li>Additional commits viewable in <a href="https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.4">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/agent-substrate/substrate/network/alerts). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 7 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 |
| 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 |
| benchmarking: in-place orchestrator invocations (#1956) Running the benchmark orchestrator against a dev cluster meant pushing a branch for it to clone and staging a target-cluster script where the CronJob's ConfigMap would mount it. Two flags let it run from a workstation instead: - `--substrate-dir DIR` builds that checkout as it is, uncommitted changes included, instead of cloning `--repo` at `--branch`. A dirty tree tags its images and results `<commit>-dirty-<random>`, because the runner Jobs pull `IfNotPresent`. - `--env-file FILE` sources that file for every test, whatever its `targetCluster`, instead of `--target-cluster-dir/<targetCluster>.sh`. The checkout's own `.ate-dev-env.sh` is sourced where it is and left alone. Any other file is copied in for each test and removed after it. Each flag rejects the flags it replaces: `--substrate-dir` with `--repo` or `--branch`, and `--env-file` with `--target-cluster-dir`. One of `--repo` or `--substrate-dir` is required. Changes that also apply to the CronJob path: - Every run uses a kubeconfig of its own in a temporary directory, so `get-credentials` doesn't switch the caller's kubectl context. - Env files are checked before any docker work. The run refuses to start if a copied env file would overwrite the checkout's own `.ate-dev-env.sh`. - `source_env` parses `env -0`, so exported bash functions can't add bogus keys to the environment. - Flag paths resolve against the caller's directory before the chdir into the checkout. - `--manifests-dir` defaults to the `manifests/` next to `orchestrator.py`, which is the same path as before in the image. - A root `.dockerignore` keeps `.git`, venvs and `.ate-dev-env.sh` out of the runner image build context. ```bash benchmarking/automation/venv/bin/python -u benchmarking/automation/orchestrator.py \ --substrate-dir . --env-file .ate-dev-env.sh \ --dest gs://<bucket>/<prefix> \ --tests benchmarking/automation/tests.yaml --test-name <name> ``` I used AI to write and rebase this change, and reviewed the diff. Fixes #3955 - [x] Tests pass (`test_orchestrator.py` covers argument validation, the env file helpers and `build_tag`) - [x] Appropriate changes to documentation are included in the PR (README "Running from a workstation", `ateapi-cold-resume.md`) Signed-off-by: Max Smythe <smythe@google.com> | 4 days ago |
| Fix multiple issues in claude-code-multiplex demo (#3560) The claude-code-multiplex demo doesn't work as written: 1. `deploy demo claude-code-multiplex` creates the three agent templates but no actors, so the dashboard has no agents and "Give a task" fails with `no agents available in namespace`. 2. Even with actors created by hand, the agents can't reach the Anthropic API. Every actor starts with **no egress policy**, and the egress gateway blocks all traffic. 3. The WorkerPool sets no resource limits, so each pod advertises the whole node and all three agents run at once. The demo is about a third agent waiting for a free pod, and that never happens. How this PR fixes it: - It builds on Adam's change from #2982 is folded in, with him as co-author. Deploy creates the three actors, the dashboard resumes an agent when its task starts and suspends it when the task ends, and each pod is sized for one agent. - When both pods are busy, a new task stays queued until one finishes, instead of suspending an agent mid-task. - Gives each agent an egress policy that lets TLS to api.anthropic.com:443 pass through the gateway. - The pod memory is 2560Mi (request = limit), not 2Gi. The worker keeps part of it for itself, so a 2Gi agent didn't fit. - Update the README to match the code. #2488 by @Ziy1-Tan documents the same setup as manual steps. With this PR those steps aren't needed. Testing: tested on kind. AI use: Claude assisted and I reviewed - [x] Tests pass - [x] Docs updated Signed-off-by: Haven Xia <haoyuxia@google.com> Co-authored-by: Adam Wathieu <awathieu@google.com> | 24 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 |
| Extend CONTRIBUTING.md to discuss compatibility (#3646) Also reorder some sections, tweak words, and document release numbers and branches. Builds on @BenTheElder #3643 Signed-off-by: Tim Hockin <thockin@google.com> Signed-off-by: Tim Hockin <thockin@google.com> | 22 days ago |
| Do some prep work for a foundation (#1312) @BenTheElder @zlammerts-svg Thanks again for driving this Tim! | 2 months ago |
| clarify that an in-tree implementation is required for API changes (#4120) Why is this needed? (Or link the issue. Open one first for features, API, install or CI changes.) Docs - clarify that an in-tree implementation is required for API changes Fixes https://github.com/agent-substrate/substrate/issues/4121 <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: used claude - [x] Tests pass - [x] Docs updated --------- Signed-off-by: Lior Lieberman <liorlieberman@google.com> | 4 days ago |
| combine collaborating.md and contributing.md into the standard CONTRIBUTING.md, move it back to repo root (#3643) <!-- 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.) - Github treats CONTRIBUTING.md specially, it will point contributors to that file. - We weren't serving this content in the website anyhow. - These two files had a lot of overlap, consolidate the expectations to one place <!-- e.g. "AI-assisted, I reviewed and tested it." No AI co-author trailers. --> AI use: reviewed with AI. Largely manual. <!-- 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 |
| Remove merge markers from LICENSE (#14) This is my fault. I hang my head in shame. | 6 months ago |
| Add full name of sfunkenhauser to MAINTAINERS.md (#3384) Signed-off-by: Scott Funkenhauser <sfunkenhauser@google.com> | 30 days ago |
| Remove the Trendshift badge from the README (#3964) Removes the Trendshift "#1 repository of the day" badge from the top of the README. It's a bit confusing about what it means. AI use: Used AI agent to write the change. I reviewed it. Signed-off-by: Julian Gutierrez Oschmann <juliangut@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 |
| 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 |
| 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 |