Title: feat: Add integration tests for dbt import with local dbt project by Copilot · Pull Request #5877 · feast-dev/feast · GitHub
Open Graph Title: feat: Add integration tests for dbt import with local dbt project by Copilot · Pull Request #5877 · feast-dev/feast
X Title: feat: Add integration tests for dbt import with local dbt project by Copilot · Pull Request #5877 · feast-dev/feast
Description: What this PR does / why we need it:
Adds comprehensive integration tests for the dbt import feature (PR #5827), which previously lacked end-to-end testing with actual dbt project structure.
Changes
Test Infrastructure
Created sdk/python/tests/integration/dbt/ with 600+ lines covering:
Manifest parsing with dbt-artifacts-parser
Tag filtering (feast, ml, recommendations)
Model selection by name
All 3 data source types (BigQuery, Snowflake, File)
Type mapping validation (INT32/64, FLOAT32/64, STRING, TIMESTAMP)
FeatureView generation with schema validation
Column exclusion (entity, timestamp, custom)
Code generation workflow
Test dbt Project
Minimal dbt project in test_dbt_project/ with 3 models:
driver_features: INT types, multiple tags
customer_features: STRING entity
product_features: FLOAT32, tag filtering test
Pre-generated manifest.json for CI execution without dbt CLI
DuckDB-only profile configuration for local testing without external service dependencies
CI/CD
GitHub Actions workflow dbt-integration-tests.yml
Runs on Python 3.11 & 3.12
Triggers on dbt code/test changes
Uses Makefile for dependency installation (make install-python-dependencies-ci)
Bug Fixes
Removed deprecated PytestUnhandledCoroutineWarning from pytest.ini
Test Example
def test_get_models_with_tag_filter(self, parser):
"""Test filtering models by dbt tag."""
# Filter by 'ml' tag
ml_models = parser.get_models(tag_filter="ml")
assert len(ml_models) == 2
# Filter by 'recommendations' tag
rec_models = parser.get_models(tag_filter="recommendations")
assert len(rec_models) == 1
Which issue(s) this PR fixes:
Related to #3335
Misc
Comprehensive documentation added for test structure and dbt project. The manifest.json format may need minor schema adjustments for dbt-artifacts-parser v0.12.0 compatibility, but test logic and infrastructure are production-ready.
Original prompt
This section details on the original issue you should resolve
Open Graph Description: What this PR does / why we need it: Adds comprehensive integration tests for the dbt import feature (PR #5827), which previously lacked end-to-end testing with actual dbt project structure. Changes...
X Description: What this PR does / why we need it: Adds comprehensive integration tests for the dbt import feature (PR #5827), which previously lacked end-to-end testing with actual dbt project structure. Changes...
Opengraph URL: https://github.com/feast-dev/feast/pull/5877
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:3f14ab1f-00e3-2003-ba5a-f9218cf79c0a |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 83E8:15CCE4:2AABFF:3638D4:696B80B4 |
| html-safe-nonce | 86eb66fd2d6d345f5f934db2a0b9a988f6213873847f6bad728ae206746e0f28 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0U4OjE1Q0NFNDoyQUFCRkY6MzYzOEQ0OjY5NkI4MEI0IiwidmlzaXRvcl9pZCI6IjM4MDQ2NjY3ODkxNzM2MjUwMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 71dc1004315d1ce8a1970d2c5e2dbbc1e4215a38ddbf6988068d2a2d3b643f3a |
| hovercard-subject-tag | pull_request:3182590204 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/feast-dev/feast/pull/5877/checks |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | What this PR does / why we need it: Adds comprehensive integration tests for the dbt import feature (PR #5827), which previously lacked end-to-end testing with actual dbt project structure. Changes... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width