Skip to content

fix(vertica): remove accidental pytest import from source file#16763

Merged
askumar27 merged 1 commit into
masterfrom
fix/vertica-remove-pytest-import
Mar 24, 2026
Merged

fix(vertica): remove accidental pytest import from source file#16763
askumar27 merged 1 commit into
masterfrom
fix/vertica-remove-pytest-import

Conversation

@askumar27
Copy link
Copy Markdown
Contributor

📋 Summary

Remove import pytest and pytestmark that were accidentally placed in the Vertica source file instead of the test file.

🎯 Motivation

The validate-plugin-deps CI job installs each plugin in an isolated venv and then verifies it is importable via datahub check plugins --source <plugin>. The Vertica plugin was failing this check because vertica.py imports pytest at module level — a test-only dependency that is not (and should not be) declared in the vertica extras.

This was a latent bug that went undetected until the import-check step was added to CI (#16749).

🔧 Changes Overview

Bug Fix:

  • Removed import pytest from vertica.py (line 7)
  • Removed pytestmark = pytest.mark.integration_batch_4 from vertica.py (line 60)

The pytestmark marker belongs in test files, not source files. It was already correctly defined in tests/integration/vertica/test_vertica.py, making the entry in the source file both redundant and harmful.

📊 Impact Assessment

  • Affected Components: metadata-ingestion — Vertica source plugin only
  • Breaking Changes: None — removing a misplaced test marker has no effect on source behavior or test execution
  • Risk Level: Low — two-line deletion of code that should never have been in a source file

🔗 References

@github-actions github-actions Bot added the ingestion PR or Issue related to the ingestion of metadata label Mar 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Linear: ING-2056

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown
Contributor

Your PR has been assigned to @kyungsoo-datahub (kyungsoo.lee) for review (ING-2056).

@datahub-connector-tests
Copy link
Copy Markdown

Connector Tests Results

All connector tests passed for commit 9cc1c41

View full test logs →

To skip connector tests, add the skip-connector-tests label (org members only).

Autogenerated by the connector-tests CI pipeline.

@askumar27 askumar27 merged commit 5b1a316 into master Mar 24, 2026
54 checks passed
@askumar27 askumar27 deleted the fix/vertica-remove-pytest-import branch March 24, 2026 22:03
david-leifker pushed a commit that referenced this pull request May 27, 2026
- docs(free trials): updating free trial links (#16758)
- docs(readme): Add link for Free Cloud Trial on Readme (#16753)
- fix(vertica): remove accidental pytest import from source file (#16763)
- docs(readme): Remove Roadmap link from README (#16765)
- chore(tests/mssql): update formatting of golden files (#16735)
- feat(ingest/powerbi): support 'Sql.Databases' M-Query data access function (#16616)
- fix(ingest/mssql): lowercase field paths when convert_urns_to_lowercase=True (#16736)
- feat(cli): add `datahub init --sso` for browser-based SSO login (#16715)
- feat(cli): add --context / -C flag for passing context in event properties (#16764)
- build(ingest): bump python-liquid from <2 to >=2.0.0,<3.0.0 (#16697)
- chore(docs): Update docs for summary pages, multiple data products, and ingestion (#16584)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ingestion PR or Issue related to the ingestion of metadata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants