Skip to content

Feature branch sync - pub/q2_upgrade to staging#4818

Open
abhishek-sa1 wants to merge 1 commit into
stagingfrom
pub/q2_upgrade
Open

Feature branch sync - pub/q2_upgrade to staging#4818
abhishek-sa1 wants to merge 1 commit into
stagingfrom
pub/q2_upgrade

Conversation

@abhishek-sa1

Copy link
Copy Markdown
Collaborator

Feature branch sync - pub/q2_upgrade to staging

…istory regression tests (#4804)

* Add unit test coverage for deploy, cleanup, validate retry, and git-history regression tests

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* Fix generate-input-files tests after source revert and skip DB tests gracefully

- Remove client_id tests from test_generate_input_files_command.py since the
  client_id field was reverted from the command DTO source
- Relocated catalog tests from source dir to tests dir.
- Make SQL repository integration tests skip cleanly when no live PostgreSQL
  is reachable, instead of erroring on a missing/polluted postgresql dialect

Signed-off-by: venu 236371043+Venu-p1@users.noreply.github.com

* fix: diff testcase

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* refactor: consolidate test structure by migrating integration tests to unit/

- Migrated all tests from tests/integration/ to tests/unit/ subfolders
- Created per-folder conftest.py files with proper fixtures (mocked auth,
  temp SQLite DB) for test isolation without polluting global namespace
- Removed tests/integration/ directory entirely (orphaned Vault/E2E conftest
  had no consuming test files)
- Fixed performance tests by adding stage repository mocks for
  GENERATE_INPUT_FILES and CREATE_LOCAL_REPOSITORY stages
- Updated tests/README.md to reflect consolidated structure
- Fixed stale path comments in test files
- All tests pass: 1268 passed, 22 skipped, 2 pre-existing failures
  (dependency rule violations in api/jobs/routes.py)

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* fix: resolve pylint issues in test conftest files

- Add pylint disable for import-outside-toplevel in conftest files
- Wrap jwt.exceptions import in try/except to handle missing module
- Remove unused Path import
- Fix unnecessary elif after return in mock function
- Add missing final newline in tests/conftest.py

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* fix: resolve f-string quote syntax error in api/dependencies.py

Fixed nested quote issue in f-string that caused syntax error and prevented
imports across test files. Changed outer quotes from double to single to allow
nested double quotes in token_data access.

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* fix: improve pylint score from 7.88 to 9.95 by resolving critical errors

- Fix E0001 syntax error in api/dependencies.py line 168 (f-string quote issue)
- Add comprehensive pylint disables for test-specific patterns (import-outside-toplevel,
  too-many-arguments, line-too-long, etc.)
- Add pylint disable for ungrouped-imports and import-error in test conftest files
- Add pylint disable for too-few-public-methods on JWT exception classes
- Remove unused imports from performance test file
- Score improved from 7.88/10 to 9.95/10, exceeding 8.0 target

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

---------

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: venu 236371043+Venu-p1@users.noreply.github.com
@abhishek-sa1 abhishek-sa1 marked this pull request as ready for review July 7, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants