Skip to content

ci: re-enable 3 excluded test files in CI and Makefile#54

Merged
dtsong merged 1 commit intomasterfrom
fix/31-reenable-excluded-tests
Mar 30, 2026
Merged

ci: re-enable 3 excluded test files in CI and Makefile#54
dtsong merged 1 commit intomasterfrom
fix/31-reenable-excluded-tests

Conversation

@dtsong
Copy link
Copy Markdown
Owner

@dtsong dtsong commented Mar 30, 2026

Summary

  • Fix test_dbt_config_validators.py: migrate parse_obj to model_validate (Pydantic v1 to v2)
  • Fix dbt_config_validators.py: add default=None for Optional fields (test_metadata, project_id, user_id) to match Pydantic v2 semantics where missing optional fields require explicit defaults
  • Remove --ignore flags for 3 test files from ci.yml, ci_full.yml, and Makefile
  • test_database_types.py and test_main.py self-filter based on available DB connections

Key Files

  • data_diff/dbt_config_validators.py -- Pydantic v2 Optional field defaults
  • tests/test_dbt_config_validators.py -- parse_obj to model_validate
  • .github/workflows/ci.yml -- remove --ignore flags
  • .github/workflows/ci_full.yml -- remove --ignore flags
  • Makefile -- remove --ignore flags

Test plan

  • test_dbt_config_validators.py passes locally (all 11 subtests)
  • test_database_types.py collects 182 tests (runs against available DBs)
  • test_main.py collects 11 tests (runs against available DBs)
  • CI remains green

Closes #31

Generated with Claude Code

- Fix test_dbt_config_validators.py: migrate parse_obj → model_validate
  (Pydantic v1 → v2 API)
- Fix dbt_config_validators.py: add default=None for Optional fields
  (test_metadata, project_id, user_id) to match Pydantic v2 semantics
- Remove --ignore flags for test_database_types.py, test_main.py, and
  test_dbt_config_validators.py from ci.yml, ci_full.yml, and Makefile
- test_database_types.py and test_main.py self-filter based on available
  database connections, so they are safe to include in CI

Closes #31

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dtsong dtsong merged commit ce3c86c into master Mar 30, 2026
1 of 6 checks passed
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.

ci: investigate and re-enable 3 excluded test files

1 participant