SameerMesiah97 opened a new pull request, #72494: URL: https://github.com/apache/airflow/pull/72494
**Description** This change adds a `--dry-run` option to `airflow teams sync`. The new dry-run mode reports the teams and default team pools that would be created from the DAG bundle configuration without writing anything to the metadata database. The sync command also reports default team pool creation separately from team creation, making the output clearer when existing teams are missing their default pools. **Rationale** `airflow teams sync` can create teams and default team pools from DAG bundle configuration. In managed or production deployments, operators may want to preview those changes before applying them. A dry-run mode makes the command safer to use in deployment workflows and gives users visibility into pending multi-team synchronization changes. **Tests** Added unit tests verifying that: - `test_team_sync_dry_run_reports_changes_without_writing` confirms dry-run reports pending teams/default pools without creating them. - `test_team_sync_dry_run_reports_missing_default_pool_without_writing` confirms dry-run reports a missing default pool for an existing team without creating it. **Backwards compatibility** Existing `airflow teams sync` behavior is unchanged unless the new `--dry-run` flag is provided. ###### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: [GPT 5.6] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
