Repository navigation
Run the common.ai agent framework adapter tests in CI - #73912
Merged
Merged
Conversation
kaxil
force-pushed
the
ci-agent-framework-tests
branch
from
September 29, 2026 16:00
ae44920 to
c1fa3e4
Compare
Strands Agents caps mcp below the version uv.lock resolves, so it cannot be installed in the workspace and the common.ai adapter tests for it were skipped in every CI job. A new job installs the framework into the CI image and runs the tests of the framework-neutral tools and their adapters. Outside a canary run every package already in the image is held at its version with uv's --override, so the adapters are tested against the same dependencies as the rest of Airflow. On a canary run the framework's own pins win, which is what a user installing it gets. The job runs on main when common.ai or common.sql code, the common.ai dependencies or uv.lock change. It is not a dependency of finalize-tests, so a breaking framework release does not stop the image cache push, and notify-slack waits for it so a canary failure is reported.
ADK caps opentelemetry and websockets below the locked versions, the same way Strands caps mcp, so its adapter tests were skipped everywhere too. Both modes of the job install it now and check that it imports.
kaxil
force-pushed
the
ci-agent-framework-tests
branch
from
September 30, 2026 11:26
c1fa3e4 to
c3953a1
Compare
kaxil
marked this pull request as ready for review
September 30, 2026 11:29
kaxil
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl,
potiuk and
vatsrahul1001
as code owners
September 30, 2026 11:29
Each matrix entry installs a single framework, so a breaking release of one cannot hide the other's result, and the entries run in parallel. The job is gated to amd64 inside the reusable workflow, since ci-amd.yml and ci-arm.yml must stay in sync.
Lee-W
approved these changes
Sep 30, 2026
amoghrajesh
approved these changes
Sep 30, 2026
Drop the one-element framework array, fail with a message when the installed framework is missing from the freeze output instead of dying silently under pipefail, and document run-agent-framework-tests in the selective checks table.
Contributor
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 16f974f v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Strands Agents caps
mcpbelow 2.2, and Google ADK capsopentelemetryat 1.42 andwebsocketsbelow 16, whileuv.lockresolvesmcp2.2.0,opentelemetry1.44 andwebsockets16.1. Neither framework can be installed in the workspace. The common.ai adapter tests for them (tools/test_strands.py,tools/test_adk.py) skip themselves when their framework is missing, so no CI job has ever run them.This adds a small job, one matrix entry per framework, that installs that framework into the CI image and runs
providers/common/ai/tests/unit/common/ai/tools(the other framework's tests skip themselves). Frameworks are isolated so a breaking release of one does not hide the other's result, and the entries run in parallel. The job runs on amd64 only for now. Each entry runs in one of two modes:uv pip install --overrideat its installed version. The frameworks' caps are overridden and the adapters are tested against the same dependencies as the rest of Airflow. The script then checks that no package the image ships changed.--framework-pinslets the frameworks' own requirements win, which is the environment a user who installs them gets. This is what catches a framework release that breaks an adapter.The job runs on
mainonly: when common.ai or common.sql code, the common.ai dependencies oruv.lockchange, or when the run tests everything. It is not a dependency offinalize-tests, so a bad upstream release does not stop the image cache push.notify-slackwaits for it, so a canary failure still reaches Slack.Run locally with the same
breeze shell --backend none --skip-db-testscommand the workflow uses, each framework passes in both modes (Strands: 53 tests with the ADK module skipped; ADK: 49 with the Strands module skipped), including the adapter tests CI skips today. In the default mode, installing a framework left every package in the image at its version; with the frameworks' pins, Strands resolvesmcpto 2.1.1 and ADK resolvesopentelemetryto 1.42.1 andwebsocketsto 15.0.1.Design rationale
Why a script and not a breeze flag like
--upgrade-boto. The boto upgrade is wired through the workflow inputs, the breeze options, shell params, both test commands andentrypoint_ci.sh, because it reruns whole test suites. This job runs one directory of one provider, so a script underscripts/in_containerand a reusable workflow keep it to the files it needs. It could move behind abreeze testing providers-testsflag instead, which would also give it the junit and warnings uploads; I kept it small for a first cut.Why not add Strands to the lock with
override-dependencies. The rootpyproject.tomlalready does that foropenai, and the comment aboveconstraint-dependenciesrecords the cost: an override replaces every package's requirement, so the resolver stopped rejectingazure-ai-projectswhen it moved toopenai>=3. Overridingmcpfor the whole workspace to test one adapter would trade a skipped test for a hidden conflict. Holding versions only inside this job keeps the lock honest.{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.