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

fix test-module checkstyle #1842

Merged
merged 6 commits into from
May 12, 2022

Conversation

JackyYangPassion
Copy link
Contributor

@JackyYangPassion JackyYangPassion commented Apr 23, 2022

fix hugegraph-test checkstyle issue
TODO: move java class to test/java

@javeme
Copy link
Contributor

javeme commented Apr 24, 2022

It seems that renaming to "test" package will trigger running all tests, but we expect all tests to be executed in multiple stages

@JackyYangPassion JackyYangPassion force-pushed the fix-checkstyle-hugegraph-test branch from 8e71489 to 21cc1b6 Compare April 25, 2022 12:08
@javeme
Copy link
Contributor

javeme commented Apr 26, 2022

ci error:

Error:  Tests run: 727, Failures: 1, Errors: 0, Skipped: 81, Time elapsed: 229.553 s <<< FAILURE! - in com.baidu.hugegraph.core.CoreTestSuite
Error:  testGremlinJobAndRestore(com.baidu.hugegraph.core.TaskCoreTest)  Time elapsed: 1.215 s  <<< FAILURE!
java.lang.AssertionError: expected:<CANCELLING> but was:<FAILED>
	at com.baidu.hugegraph.core.TaskCoreTest.testGremlinJobAndRestore(TaskCoreTest.java:629)

@codecov
Copy link

codecov bot commented Apr 26, 2022

Codecov Report

Merging #1842 (552cbfc) into master (c128b4a) will increase coverage by 4.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1842      +/-   ##
============================================
+ Coverage     66.91%   70.96%   +4.05%     
  Complexity      982      982              
============================================
  Files           447      447              
  Lines         38072    38076       +4     
  Branches       5401     5401              
============================================
+ Hits          25475    27022    +1547     
+ Misses        10082     8408    -1674     
- Partials       2515     2646     +131     
Impacted Files Coverage Δ
.../backend/store/cassandra/CassandraSessionPool.java 59.00% <0.00%> (-0.60%) ⬇️
...aidu/hugegraph/backend/store/hbase/HbaseTable.java 75.92% <0.00%> (ø)
...idu/hugegraph/backend/store/hbase/HbaseTables.java 90.00% <0.00%> (ø)
...ugegraph/backend/store/rocksdb/RocksDBOptions.java 99.25% <0.00%> (ø)
...gegraph/backend/store/rocksdb/RocksDBSessions.java 100.00% <0.00%> (ø)
...u/hugegraph/backend/store/hbase/HbaseSessions.java 60.00% <0.00%> (+0.05%) ⬆️
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 80.14% <0.00%> (+0.20%) ⬆️
...aidu/hugegraph/backend/store/hbase/HbaseStore.java 74.05% <0.00%> (+0.21%) ⬆️
...c/main/java/com/baidu/hugegraph/task/HugeTask.java 72.22% <0.00%> (+0.30%) ⬆️
.../baidu/hugegraph/backend/tx/SchemaTransaction.java 89.31% <0.00%> (+0.38%) ⬆️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c128b4a...552cbfc. Read the comment docs.

javeme
javeme previously approved these changes Apr 26, 2022
@imbajin
Copy link
Member

imbajin commented Apr 26, 2022

@seagle-yuan seems it's confuse and break the IDE default wrap behavior with 8 space in new line

da6b1948d8875a9a7e07b74227e3761d

consider keep the original style is better (or maybe we need a easy way to keep the wrap unify)

@seagle-yuan
Copy link
Contributor

@seagle-yuan seems it's confuse and break the IDE default wrap behavior with 8 space in new line

da6b1948d8875a9a7e07b74227e3761d

consider keep the original style is better (or maybe we need a easy way to keep the wrap unify)

need to update checkstyle version
#1857
checkstyle/checkstyle#3342

@JackyYangPassion
Copy link
Contributor Author

JackyYangPassion commented May 6, 2022

Change the checkstyle version and keep the original style lambda alignment. At present, this module has been reduced from 1500+ to 900+. It is expected to be repaired this week

mvn compile checkstyle:checkstyle

image

@javeme
Copy link
Contributor

javeme commented May 7, 2022

please rebase latest master branch

@@ -209,7 +210,8 @@ public void testEdgeCacheClearWhenUpdateVertex() {
Whitebox.invoke(cache, "edgesCache", "size"));

cache.addVertexProperty(new HugeVertexProperty<>(v1,
cache.graph().schema().getPropertyKey("name"),
cache.graph().schema()
.getPropertyKey("name"),
Copy link
Contributor

Choose a reason for hiding this comment

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

can align with .graph()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you give a code example?

@JackyYangPassion JackyYangPassion marked this pull request as draft May 11, 2022 05:41
@JackyYangPassion JackyYangPassion marked this pull request as ready for review May 11, 2022 05:43
@imbajin imbajin merged commit 2d25938 into apache:master May 12, 2022
@imbajin imbajin changed the title fix hugegraph-test checkstyle issue and move java class to test/java refact: move java class to test/java & fix test code check-style May 12, 2022
@javeme
Copy link
Contributor

javeme commented May 12, 2022

seems didn't move java class to test/java

@javeme javeme changed the title refact: move java class to test/java & fix test code check-style fix test-module checkstyle May 12, 2022
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.

4 participants