-
Notifications
You must be signed in to change notification settings - Fork 10
chore: release main #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stainless-app
wants to merge
6
commits into
main
Choose a base branch
from
release-please--branches--main--changes--next
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore: release main #520
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
94335d7
feat(registration): report the agent's commit and source repo at regi…
max-parke-scale 53ab900
feat(tracing): stamp __commit_sha__ automatically when AGENT_COMMIT_S…
max-parke-scale d88fac6
feat(obs): wire sgp-obs from the SDK for traces, metrics and logs (#518)
stephen-wang24 687ebfb
revert(obs): remove sgp-obs beta changes (#522)
stephen-wang24 a90f622
feat(cli): stamp global.agent.version from the image tag on helm depl…
max-parke-scale 3f9fbc2
chore: release main
stainless-app[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| ".": "0.26.0", | ||
| "adk": "0.26.0" | ||
| ".": "0.27.0", | ||
| "adk": "0.27.0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
|
||
| __title__ = "agentex" | ||
| __version__ = "0.26.0" # x-release-please-version | ||
| __version__ = "0.27.0" # x-release-please-version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| """Tests for the helm values merge_deployment_configs assembles for `agentex agents deploy`.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
| from agentex.config.agent_config import AgentConfig | ||
| from agentex.config.build_config import BuildConfig, BuildContext | ||
| from agentex.config.agent_manifest import AgentManifest | ||
| from agentex.config.deployment_config import ImageConfig, DeploymentConfig | ||
| from agentex.config.environment_config import AgentAuthConfig, AgentEnvironmentConfig | ||
| from agentex.lib.cli.handlers.deploy_handlers import InputDeployOverrides, merge_deployment_configs | ||
|
|
||
| MANIFEST_TAG = "sha-manifest" | ||
|
|
||
|
|
||
| def _manifest(env: dict[str, str] | None = None) -> AgentManifest: | ||
| return AgentManifest( | ||
| build=BuildConfig(context=BuildContext(root=".", dockerfile="Dockerfile", dockerignore=None)), | ||
| agent=AgentConfig(name="emu-tax", description="Files emu taxes", acp_type="async", env=env), | ||
| deployment=DeploymentConfig(image=ImageConfig(repository="registry.example.com/emu-tax", tag=MANIFEST_TAG)), | ||
| ) | ||
|
|
||
|
|
||
| def _env_config(helm_overrides: dict[str, Any]) -> AgentEnvironmentConfig: | ||
| return AgentEnvironmentConfig(auth=AgentAuthConfig(principal={"user_id": "u-1"}), helm_overrides=helm_overrides) | ||
|
|
||
|
|
||
| def _merge( | ||
| manifest: AgentManifest, | ||
| env_config: AgentEnvironmentConfig | None = None, | ||
| image_tag: str | None = None, | ||
| ) -> dict[str, Any]: | ||
| overrides = InputDeployOverrides(image_tag=image_tag) | ||
| return merge_deployment_configs(manifest, env_config, overrides, "/nonexistent/manifest.yaml") | ||
|
|
||
|
|
||
| class TestAgentVersion: | ||
| def test_stamped_from_the_deploy_image_tag(self): | ||
| values = _merge(_manifest(), image_tag="sha-cli") | ||
|
|
||
| assert values["global"]["agent"]["version"] == "sha-cli" | ||
|
|
||
| def test_follows_an_image_tag_overridden_in_helm_overrides(self): | ||
| values = _merge(_manifest(), _env_config({"global": {"image": {"tag": "sha-env"}}})) | ||
|
|
||
| assert values["global"]["image"]["tag"] == "sha-env" | ||
| assert values["global"]["agent"]["version"] == "sha-env" | ||
|
|
||
| def test_explicit_helm_override_of_the_version_wins(self): | ||
| values = _merge(_manifest(), _env_config({"global": {"agent": {"version": "pinned"}}})) | ||
|
|
||
| assert values["global"]["agent"]["version"] == "pinned" | ||
|
|
||
| def test_skipped_when_the_manifest_env_declares_agent_version(self): | ||
| values = _merge(_manifest(env={"AGENT_VERSION": "v1.2.3"})) | ||
|
|
||
| assert "version" not in values["global"]["agent"] | ||
| assert {"name": "AGENT_VERSION", "value": "v1.2.3"} in values["env"] | ||
|
|
||
| def test_skipped_when_the_environment_env_declares_agent_version(self): | ||
| values = _merge(_manifest(), _env_config({"env": [{"name": "AGENT_VERSION", "value": "v9"}]})) | ||
|
|
||
| assert "version" not in values["global"]["agent"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_enable_from_environment()runs once whencode_revisionis imported. Normal worker startup importsregister_agentbeforeEnvironmentVariables.refresh()loads supported.envand.env.localfiles. A validAGENT_COMMIT_SHAfrom those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.Knowledge Base Used:
Prompt To Fix With AI