-
Notifications
You must be signed in to change notification settings - Fork 521
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
chore: fix TinkerPop unit test #2055
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2830974
chore: don't support persistence for memory backend
zyxxoo b76394a
chore: setup graph by first step graph when graph is null
zyxxoo cd76807
chore: apply relations optimize logic
zyxxoo 00e50be
chore: don't support null properties
zyxxoo c3317b1
chore: reflactor code
zyxxoo 694a787
fix: g.V().has(empty).count() and g.V().count().as('a').select('a')
zyxxoo 1e4a910
fix: specify the code generation directory for raft.proto (#2057)
simon824 02963d5
chore: reflactor code
zyxxoo 62f9fed
fix: tinkerpop unit schema no define
zyxxoo ae7266d
chore: reflactor code
zyxxoo d2a494c
chore: improve code
zyxxoo 9b5ee56
fix: core test
zyxxoo 4a71089
Merge branch 'master' into zy_dev
zyxxoo 225854c
fix the style & clean some outdated code
imbajin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
distribution: 'zulu' | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
|
@@ -68,18 +68,6 @@ jobs: | |
java-version: ${{ matrix.JAVA_VERSION }} | ||
distribution: 'zulu' | ||
|
||
# - name: Init MySQL Env | ||
# if: ${{ env.BACKEND == 'mysql' }} | ||
# uses: mirromutth/[email protected] | ||
# with: | ||
# host port: 3306 # Optional, default value is 3306. The port of host | ||
# container port: 3306 # Optional, default value is 3306. The port of container | ||
# character set server: 'utf8mb4' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld | ||
# collation server: 'utf8mb4_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld | ||
# mysql version: '5.7' # Optional, default value is "latest". The version of the MySQL | ||
# mysql database: 'test' # Optional, default value is "test". The specified database which will be create | ||
# mysql root password: "******" # Required if "mysql user" is empty, default is empty. The root superuser password | ||
|
||
- name: Run unit test | ||
run: | | ||
$TRAVIS_DIR/run-unit-test.sh $BACKEND | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,7 @@ public void apply(Traversal.Admin<?, ?> traversal) { | |
graphStep.queryInfo().aggregate(Aggregate.AggregateFunc.COUNT, null); | ||
HugeCountStep<?> countStep = new HugeCountStep<>(traversal, graphStep); | ||
for (Step<?, ?> origin : originSteps) { | ||
TraversalHelper.copyLabels(origin, countStep, false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a replaceStep method that contains a copyLabels call? otherwise add some comments for why? |
||
traversal.removeStep(origin); | ||
} | ||
traversal.addStep(0, countStep); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
seems the ci fails due to this.backendStoreFeatures() call, try to move to line 222?
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.
here are backendStoreFeatures() call tx.readwrite cause ConnectionException, but Open method catch the exception, throw RuntimeException, so here need change the unit test