Skip to content

Fix Azure Data Factory test broken by azure-mgmt-datafactory update#69785

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-adf-test-factory-list-response
Jul 12, 2026
Merged

Fix Azure Data Factory test broken by azure-mgmt-datafactory update#69785
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-adf-test-factory-list-response

Conversation

@potiuk

@potiuk potiuk commented Jul 12, 2026

Copy link
Copy Markdown
Member

The Azure Data Factory hook test imported FactoryListResponse from
azure.mgmt.datafactory.models only to use it as an arbitrary non-empty
placeholder in a mocked factories.list() iterator — test_connection
never inspects the returned item. A recent azure-mgmt-datafactory
release removed that model class, so test collection failed with
ImportError: cannot import name 'FactoryListResponse' in the
uncapped-dependency Compat CI jobs, breaking the scheduled main build
(and every PR that runs the full matrix, e.g. #69737).

Replace the placeholder with a neutral object() so the test no longer
depends on a specific SDK model.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

The test imported FactoryListResponse purely as an arbitrary non-empty
placeholder for the mocked factories.list() iterator; test_connection
never inspects the returned item. A recent azure-mgmt-datafactory release
removed that model, so test collection failed in the uncapped-dependency
Compat CI jobs on main. Use a neutral placeholder object so the test no
longer depends on a specific SDK model.
@potiuk potiuk merged commit 6bef6a5 into apache:main Jul 12, 2026
72 of 77 checks passed
@potiuk potiuk deleted the fix-adf-test-factory-list-response branch July 12, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants