# Google Managed Airflow Agent: How to Check DAGs Before an Upgrade

Use the read-only DAG report alongside the package checker, then verify unresolved dependencies and task behavior in staging.

By Paras Madan | 2026-11-27


A package check can pass while one of your Airflow DAGs still imports an operator that moved. Google's [November 26 Managed Airflow release note](https://docs.cloud.google.com/composer/docs/release-notes) adds an agentic upgrade check for that second problem. It inspects the DAG code against a version you select; it doesn't run the DAG or start an upgrade.

That's a useful first pass, especially for old pipelines. Treat it as a list of things to verify, not the result of a rehearsal.

## Run the right check for the failure you expect

The existing PyPI compatibility check looks for dependency conflicts. The [Managed Airflow Gen 3 upgrade guide](https://docs.cloud.google.com/composer/docs/composer-3/upgrade-environments) says it does not inspect DAG source. The new read-only check can inspect DAG code, supporting files in the environment bucket, custom packages and Airflow configuration overrides as accessible to your account.

Use both if your DAGs depend on a private operator package and call it through code that has changed between Airflow versions. A compatible package set does not prove the import path is still right. A readable import line does not prove dependencies can be resolved in the target environment.

## Set the target before asking for analysis

In the console for your Gen 3 environment, open the environment version upgrade panel and select the intended Airflow version or build. Choose **Upgrade check** in the **Agentic upgrade check** section, not the upgrade action. Google says the panel closes, the report opens under **Ask agent**, and the environment does not enter an updating state.

Run with the account and access your team has approved. Use the exact target image from your change plan, so the answers are about the settings you will actually deploy.

## Turn the report into a verification list

The report can call out modules, plugins and custom packages it could not read. Treat an unread import as an unresolved item, not as a compatibility pass. Record which DAG and task use it, who owns the dependency, and how to test it.

For example, suppose a nightly report imports a custom CSV validator. Recreate one small batch in staging and verify the DAG imports successfully on the target build. Then check that a deliberately invalid fixture still fails the right task, with no production files or notifications involved. A report saying the import looks safe doesn't establish that the task behaves correctly.

## Rehearse the upgrade outside production

After making code or dependency changes, rerun the checks for the same target. Run representative DAGs in staging with isolated inputs and destinations. Cover schedule parsing, setup and teardown, retries and any custom plugins your group depends on. Keep an agreed rollback or redeployment plan before promoting the change.

Google's docs describe a separate Gen 2 to Gen 3 migration path; these Gen 3 console instructions do not convert an older environment in place. Confirm the generation first.

I would use the agent to shorten the list of places engineers must inspect. I wouldn't use it to skip testing the two or three tasks whose failure would leave an overnight pipeline half finished.

I help technical teams explain AI changes with practical examples. [Book a 30-minute call](https://cal.com/paras-madan/30min).
