-
Notifications
You must be signed in to change notification settings - Fork 406
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
[#2279] improvement(test): Isolate catalog class path in IT #2397
Conversation
@yuqi1129 I would suggest we have a thorough solution before doing this change. |
Let me thoroughly review the hive-related tests. It appears that the hive-related tests have more complex dependencies:
Iceberg and JDBC-related tests are clear and under control. |
Issue has nothing related to your PR, please fix the issue. Also adding detailed descriptions to issue. |
...talog-common/src/test/java/com/datastrato/gravitino/common/integration/util/ProcessData.java
Outdated
Show resolved
Hide resolved
The code is far from ready, please spend time on polishing it, and think about the overall code organizations. |
...g-common/src/test/java/com/datastrato/gravitino/common/integration/MiniGravitinoContext.java
Outdated
Show resolved
Hide resolved
if (skipUTs) { | ||
// Only run integration tests | ||
include("**/integration/**") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you verified locally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have verified the changes locally.
You should also check why |
Also, I think you need to keep this behavior after the change
|
Maybe we need to clarify what the The latest changes mean we will skip all unit tests if users set property Maybe I need to revert the latest changes here as the syntax
It works actually if |
This behavior has not changed. |
Let's keep this behavior. |
Okay, I will revert the latest changes. |
I mean keep what current main branch's definition: skipTests => skip UT, skipITs => skip IT, not reverting it. You can check the ci script, currently there's no chance to run ITs in each catalog. You should think about which way is the right way, not just changing it and then reverting it abruptly. |
I see. I will use another PR to change the name |
Each sub-module needs to configure |
Thanks @yuqi1129 for your work, please keep improving if there's something missing or need to refactor further. |
It's actually the way maven uses, maven uses |
To the best of my ability, SkipTests will skip all tests other than UTs. |
What changes were proposed in this pull request?
Move the test cases that depend on the Docker environment to their corresponding catalog modules.
Why are the changes necessary?
For better management.
Fix: #2279
Does this PR introduce any user-facing change?
N/A.
How was this patch tested?
Existing test can cover the changes.