Skip to content

[test] Moved all uses of ServiceFactory into integration tests#155

Merged
FelixGV merged 2 commits intolinkedin:mainfrom
FelixGV:integration_test_consolidation
Jan 6, 2023
Merged

[test] Moved all uses of ServiceFactory into integration tests#155
FelixGV merged 2 commits intolinkedin:mainfrom
FelixGV:integration_test_consolidation

Conversation

@FelixGV
Copy link
Copy Markdown
Contributor

@FelixGV FelixGV commented Jan 4, 2023

Also moved all classes under c.l.v.integration.utils from the main sources to the integrationtest sources, within venice-test-common. This means all other modules are now exclusively reserved to unit tests, which brings the unit test run time down to ~20m in the GH CI. Furthermore, adding back a usage of integration utils in those modules should fail at compile time.

There is an exception which is the venice-avro-compatibility-test module, since it does need access to integration utils, and it cannot be moved to the integrationtest sources due to needing to run with all Avro versions.

Besides the moved files, there is also a bit of moved code in order to accommodate the restructuring. In particular, some functions of the TestPushUtils class are moved into a new IntegrationTestPushUtils class.

How was this PR tested?

CI

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

Also moved all classes under c.l.v.integration.utils from the main sources
to the integrationtest sources, within venice-test-common. This means all
other modules are now exclusively reserved to unit tests, which brings the
unit test run time down to ~20m in the GH CI. Furthermore, adding back a
usage of integration utils in those modules should fail at compile time.

There is an exception which is the venice-avro-compatibility-test module,
since it does need access to integration utils, and it cannot be moved to
the integrationtest sources due to needing to run with all Avro versions.

Besides the moved files, there is also a bit of moved code in order to
accommodate the restructuring. In particular, some functions of the
TestPushUtils class are moved into a new IntegrationTestPushUtils class.
@FelixGV FelixGV force-pushed the integration_test_consolidation branch from a447a99 to 6b3beea Compare January 5, 2023 18:21
Copy link
Copy Markdown
Contributor

@adamxchen adamxchen left a comment

Choose a reason for hiding this comment

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

Thanks for the change! Left a minor naming comment.

When I saw the unit test for this PR only run 20 mins, I thought the run on my PR had some issues and restarted it. Turned out it was "normal" 😅

@FelixGV FelixGV merged commit 11850b3 into linkedin:main Jan 6, 2023
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.

3 participants