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

refact(loader): clean code & import style & fix CI bugs #375

Merged
merged 10 commits into from
Nov 25, 2022
Merged

Conversation

imbajin
Copy link
Member

@imbajin imbajin commented Nov 21, 2022

Note: ensure the hubble building right because it used loader's method

Note: ensure the hubble building right because it used loader's method
@imbajin imbajin added enhancement New feature or request loader hugegraph-loader apache labels Nov 21, 2022
@codecov
Copy link

codecov bot commented Nov 21, 2022

Codecov Report

Merging #375 (7e3db9d) into master (0a24e17) will increase coverage by 0.05%.
The diff coverage is 56.25%.

@@             Coverage Diff              @@
##             master     #375      +/-   ##
============================================
+ Coverage     57.46%   57.51%   +0.05%     
  Complexity     1866     1866              
============================================
  Files           263      263              
  Lines         10244    10228      -16     
  Branches        875      875              
============================================
- Hits           5887     5883       -4     
+ Misses         3975     3963      -12     
  Partials        382      382              
Impacted Files Coverage Δ
...g/apache/hugegraph/loader/builder/EdgeBuilder.java 68.85% <0.00%> (+1.11%) ⬆️
...g/apache/hugegraph/loader/builder/SchemaCache.java 48.27% <ø> (ø)
...apache/hugegraph/loader/builder/VertexBuilder.java 61.29% <0.00%> (ø)
...org/apache/hugegraph/loader/constant/ElemType.java 88.88% <ø> (ø)
.../apache/hugegraph/loader/executor/LoadContext.java 67.90% <ø> (ø)
.../apache/hugegraph/loader/executor/LoadOptions.java 70.40% <0.00%> (-1.03%) ⬇️
...gegraph/loader/flink/HugeGraphDeserialization.java 0.00% <0.00%> (ø)
...ugegraph/loader/flink/HugeGraphFlinkCDCLoader.java 0.00% <0.00%> (ø)
.../hugegraph/loader/flink/HugeGraphSinkFunction.java 0.00% <ø> (ø)
...g/apache/hugegraph/loader/mapping/EdgeMapping.java 75.00% <ø> (ø)
... and 53 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@imbajin
Copy link
Member Author

imbajin commented Nov 21, 2022

image

need fix...

javeme
javeme previously approved these changes Nov 21, 2022
@javeme
Copy link
Contributor

javeme commented Nov 24, 2022

ci error:

Error:  Tests run: 102, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 57.206 s <<< FAILURE! - in org.apache.hugegraph.loader.test.functional.HDFSLoadTest
Error:  testParserV2(org.apache.hugegraph.loader.test.functional.HDFSLoadTest)  Time elapsed: 0.612 s  <<< ERROR!
com.beust.jcommander.ParameterException: Ensure the file exists and is indeed a file instead of a directory: 'target/test-classes/mapping_v2/struct_hdfs.json'

[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    HDFSLoadTest>FileLoadTest.testParserV2:1871 » Parameter Ensure the file exists...
[INFO] 
Error:  Tests run: 102, Failures: 0, Errors: 1, Skipped: 0

@imbajin imbajin changed the title refact(loader): clean code & import style refact(loader): clean code & import style & fix CI bugs Nov 24, 2022
if (this.context.options().testMode) {
throw e;
}
throw e;
Copy link
Contributor

Choose a reason for hiding this comment

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

can't throw exception if non-testMode, because the user experience is not good if print the stack trace.

Copy link
Member Author

@imbajin imbajin Nov 24, 2022

Choose a reason for hiding this comment

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

just for testing the bug in HDFS now (it's hard to test in local env...)

@javeme javeme merged commit 713eefb into master Nov 25, 2022
@javeme javeme deleted the clean-loader branch November 25, 2022 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apache enhancement New feature or request loader hugegraph-loader
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants