Skip to content

Remove the dead cloudant_fake module - #72457

Merged
shahar1 merged 1 commit into
apache:mainfrom
vitorantoniazzi:remove-dead-cloudant-fake
Sep 14, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
vitorantoniazzi:remove-dead-cloudant-fake

Conversation

@vitorantoniazzi

Copy link
Copy Markdown
Contributor

Summary

cloudant_fake.py is a pair of no-op stubs for CloudantV1 and CouchDbSessionAuthenticator. They were there for the Python 3.9 import fallback, back when the hook couldn't assume ibmcloudant was installed.

That situation is gone. #52072 dropped 3.9 support and took the sys.version_info guard with it, and the hook now imports from ibmcloudant directly.

I grepped the whole repo for anything touching the stub and came up empty, other than its own line in OVERLOOKED_TESTS. So this deletes the file and drops the entry.

Worth saying out loud: the issue author asked for a second opinion from someone with context on the original optional-import setup before the file goes away. This PR is that deletion, so take it as the invitation. If anyone knows a reason to keep the stub around, say so and I'll close this.

Closes: #72269

Test Plan

  • A repository-wide search for cloudant_fake returns only the OVERLOOKED_TESTS entry that this PR removes.
  • providers/cloudant/src/airflow/providers/cloudant/hooks/cloudant.py imports CloudantV1 and CouchDbSessionAuthenticator directly from ibmcloudant, with no sys.version_info guard left.
  • I have not run breeze run mypy providers/cloudant locally. Nothing imports the deleted module, so it cannot take part in type checking anything else, but the CI mypy run is the real confirmation here.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Change drafted with Claude Code (Opus 5); reviewed and verified by @vitorantoniazzi

cloudant_fake.py provided no-op CloudantV1 and CouchDbSessionAuthenticator
stubs for the Python 3.9 fallback import in the cloudant hook. apache#52072 dropped
Python 3.9 support and removed the version guard, so the hook imports both
names directly from ibmcloudant and nothing references the stub any more --
its only remaining mention in the repository was its own OVERLOOKED_TESTS
entry, which this also drops.

Closes: apache#72269
@vitorantoniazzi

Copy link
Copy Markdown
Contributor Author

Same situation as #72456: the workflow runs here have been in action_required since Sept 2 — Tests (AMD), CodeQL and Check newsfragment PR number are all waiting on maintainer approval, since this is my first contribution. The test suite hasn't run, so there's nothing for a reviewer to check against.

Could a committer approve the runs when convenient?

This removes the dead cloudant_fake module as discussed in #72269, taking the first of the two options in the issue. cc @jroachgolf84

@shahar1
shahar1 merged commit 503e807 into apache:main Sep 14, 2026
2 checks passed
@boring-cyborg

boring-cyborg Bot commented Sep 14, 2026

Copy link
Copy Markdown

Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions.

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.

Remove the dead cloudant_fake module, or add its missing tests

2 participants