dbt-labs / dbt-labs/dbt

[CT-2636] TestVersionedModels::test_pp_versioned_models is flaky

Open
#7,781 6 comments 1 reaction 0 assignees View on GitHub
engine:v1 flaky_test type:tech-debt
Dominant language
Rust
Stars
13.8k
Forks
2.6k
Avg merge
21h 31m
Merged PRs (30d)
56

Description

Example failing test run: https://github.com/dbt-labs/dbt-core/actions/runs/5178505585/jobs/9330058721?pr=7768

Relevant Logs:

```sh
# update versions schema.yml block - latest_version from 2 to 1
write_file(
models_versions_updated_schema_yml, project.project_root, "models", "schema.yml"
)
> results, log_output = run_dbt_and_capture(
["--partial-parse", "--log-format", "json", "run"]
)

D:\a\dbt-core\dbt-core\tests\functional\partial_parsing\test_partial_parsing.py:341:
```

```sh
if expect_pass is not None:
> assert res.success == expect_pass, "dbt exit state did not match expected"
E AssertionError: dbt exit state did not match expected

d:\a\dbt-core\dbt-core\core\dbt\tests\util.py:105: AssertionError
```

```sh
stdout_log: {"data": {"msg": " relation \"test16859771223328142563_test_partial_parsing.model_one_downstream\" does not exist"}, "info": {"category": "", "code": "Z029", "extra": {}, "invocation_id": "9e30ed11-b91f-4609-8dd0-a82ab93b96ba", "level": "error", "msg": " relation \"test16859771223328142563_test_partial_parsing.model_one_downstream\" does not exist", "name": "AfterFirstRunResultError", "pid": 6128, "thread": "MainThread", "ts": "2023-06-05T14:58:50.611377Z"}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.