Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumping manifest version to v6 #5430

Merged
merged 6 commits into from
Jul 5, 2022

Conversation

leahwicz
Copy link
Contributor

@leahwicz leahwicz commented Jun 30, 2022

#5417

Description

Bumping manifest version to 6 and fixing tests to merge into the metrics PR #5027

Checklist

@cla-bot cla-bot bot added the cla:yes label Jun 30, 2022
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/dbt-core/dbt-core/schemas/dbt/manifest/v6.json'

To fix the failing tests, I think we need to update the manifest file living here (either replace or add): https://github.com/dbt-labs/dbt-core/tree/main/schemas/dbt/manifest


Then, to fully resolve #5417, we should:

  • update the compatible_previous_versions method, so that both v4 + v5 are declared as backwards compatible for v6
  • update the associated functional test

That piece doesn't need to happen in this PR, but it should happen before we close the issue and cut v1.2.0-rc1.

@leahwicz leahwicz closed this Jul 5, 2022
@leahwicz leahwicz reopened this Jul 5, 2022
@leahwicz leahwicz marked this pull request as ready for review July 5, 2022 18:22
@leahwicz leahwicz requested review from a team as code owners July 5, 2022 18:22
@leahwicz leahwicz requested review from gshank, ChenyuLInx, drewbanin, emmyoop, callum-mcdata and jtcohen6 and removed request for a team and ChenyuLInx July 5, 2022 18:22
@leahwicz leahwicz changed the title [Draft] Bumping manifest version to v6 Bumping manifest version to v6 Jul 5, 2022
@leahwicz
Copy link
Contributor Author

leahwicz commented Jul 5, 2022

@emmyoop if you are good, I can merge this into the larger feature branch and see the tests pass

@leahwicz leahwicz merged commit e235ab7 into feature/metric-improvements Jul 5, 2022
@leahwicz leahwicz deleted the leahwicz/schemaUpdate branch July 5, 2022 19:47
emmyoop added a commit that referenced this pull request Jul 6, 2022
* wip

* More support for ratio metrics

* Formatting and linting

* Fix unit tests

* Support disabling metrics

* mypy

* address all TODOs

* make pypy happy

* wip

* checkpoint

* refactor, remove ratio_terms

* flake8 and unit tests

* remove debugger

* quickfix for filters

* Experiment with functional testing for 'expression' metrics

* reformatting slightly

* make file and mypy fix

* remove config from metrics - wip

* add metrics back to context

* adding test changes

* fixing test metrics

* revert name audit

* pre-commit fixes

* add changelog

* Bumping manifest version to v6 (#5430)

* Bumping manifest version to v6

* Adding manifest file for tests

* Reverting unneeded changes

* Updating v6

* Updating test to add metrics field

* Adding changelog

* add v5 to backwards compatibility

* Clean up test_previous_version_state, update for v6 (#5440)

* Update test_previous_version_state for v6. Cleanup

* Regenerate, rm breakpoint

* Code checks

* Add assertion that will fail when we bump manifest version

* update tests to automatically tests all previous versions

Co-authored-by: Emily Rockman <[email protected]>

Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Callum McCann <[email protected]>
Co-authored-by: Emily Rockman <[email protected]>
Co-authored-by: leahwicz <[email protected]>
agoblet pushed a commit to BigDataRepublic/dbt-core that referenced this pull request Sep 16, 2022
* wip

* More support for ratio metrics

* Formatting and linting

* Fix unit tests

* Support disabling metrics

* mypy

* address all TODOs

* make pypy happy

* wip

* checkpoint

* refactor, remove ratio_terms

* flake8 and unit tests

* remove debugger

* quickfix for filters

* Experiment with functional testing for 'expression' metrics

* reformatting slightly

* make file and mypy fix

* remove config from metrics - wip

* add metrics back to context

* adding test changes

* fixing test metrics

* revert name audit

* pre-commit fixes

* add changelog

* Bumping manifest version to v6 (dbt-labs#5430)

* Bumping manifest version to v6

* Adding manifest file for tests

* Reverting unneeded changes

* Updating v6

* Updating test to add metrics field

* Adding changelog

* add v5 to backwards compatibility

* Clean up test_previous_version_state, update for v6 (dbt-labs#5440)

* Update test_previous_version_state for v6. Cleanup

* Regenerate, rm breakpoint

* Code checks

* Add assertion that will fail when we bump manifest version

* update tests to automatically tests all previous versions

Co-authored-by: Emily Rockman <[email protected]>

Co-authored-by: Jeremy Cohen <[email protected]>
Co-authored-by: Callum McCann <[email protected]>
Co-authored-by: Emily Rockman <[email protected]>
Co-authored-by: leahwicz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants