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

chore(commons): migrate hugegraph-commons #2613

Closed
wants to merge 221 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
a5fa901
HugeGraph-341: First commit hugegraph-common code
Linary Jun 27, 2017
5f30552
HugeGraph-344: add distributionManagement to deploy baidu maven repos…
Linary Jun 27, 2017
3e5f626
HugeGraph-351: code format and clean up some warnings
Linary Jun 28, 2017
db55e23
HugeGraph-351: fixed bug that CoreOption constructor has been removed
Linary Jun 28, 2017
cccef5d
HugeGraph-357: modify return type of TriFunction
Linary Jun 28, 2017
5603b9c
HugeGraph-326: add slf4j-api that has been mistakenly deleted
Linary Jun 29, 2017
7bdf878
HugeGraph-407: add KeyLock class
javeme Jul 10, 2017
3695904
HugeGraph-410: fixed code style of hugegraph-common
Linary Jul 11, 2017
d592690
HugeGraph-254: improve utils class perf with final(inline)
javeme Jul 13, 2017
ec2599d
HugeGraph-369
zhoney Jul 14, 2017
e88f54a
HugeGraph-462: add event manager
javeme Jul 19, 2017
9cc9cad
HugeGraph-476: add destroy() method
javeme Jul 20, 2017
9a1417f
HugeGraph-487
zhoney Jul 14, 2017
171e723
HugeGraph-494: refine logic of lock() menthod
freeHackOfJeff Jul 21, 2017
9778a8b
HugeGrap-499: fix english grammer in lock
freeHackOfJeff Jul 21, 2017
d3960c1
Always define long variable endwith 'L' indicator.
freeHackOfJeff Jul 21, 2017
315000a
HugeGraph-503: using bit shift whenever, if not affect the code reada…
freeHackOfJeff Jul 24, 2017
0c58069
HugeGraph-501: fix EventHub ConcurrentModificationException
javeme Jul 24, 2017
5252a7e
HugeGraph-410: improve code style
javeme Jul 24, 2017
9faea02
hugegraph-499
zhoney Jul 24, 2017
e05d130
HugeGraph-482: upgrade log4j to log4j2
Linary Jul 21, 2017
6052985
hugegraph-502
zhoney Jul 27, 2017
b76e0ea
HugeGraph-527: add customized implemention version to manifest.mf
Linary Jul 28, 2017
dfd3190
HugeGraph-527: First add the version to the common module.
Linary Jul 31, 2017
dec8fe9
HugeGraph-531: Fix typo at OptionHolder class
freeHackOfJeff Jul 31, 2017
f33c093
HugeGraph-532: Rewrite checksocket class
freeHackOfJeff Jul 31, 2017
5cda854
HugeGraph-525: add vertion check util
javeme Jul 28, 2017
a200dea
HugeGraph-131: clean up some warnings in LockGroup
javeme Aug 1, 2017
8bdac2c
HugeGraph-525: add the const NAME of component hugegraph-common into …
javeme Aug 2, 2017
f6cdc8a
HugeGraph-547: replace tilNextMillis by tillNextMills as the later is…
freeHackOfJeff Aug 2, 2017
705c27b
HugeGraph-555: add lockAll() for KeyLock
javeme Aug 8, 2017
504069e
HugeGraph-623: rename LoggerFactory.getLogger() to Log.logger()
javeme Aug 16, 2017
c24069e
HugeGraph-625: fixed bug that there is a line length of more than 80 …
Linary Aug 16, 2017
b4a6cc9
HugeGraph-596: fixed bug that hugegraph-common deploy before merge
Linary Aug 16, 2017
ca0a983
HugeGraph-596: Passed env varibale from BCLOUD to agile module for hu…
Linary Aug 17, 2017
281aab8
HugeGraph-645: Add space line between license and package for hugegra…
Linary Aug 17, 2017
4d6c421
HugeGraph-726: add toList(array) method into class CollectionUtil
javeme Aug 25, 2017
12c53cc
fix EventHub bugs: HugeGraph-732 and HugeGraph-733
javeme Aug 25, 2017
5195740
HugeGraph-762: add isSimpleType() method to class ReflectionUtil
javeme Sep 1, 2017
5e003a7
HugeGraph-830: Catch IOException if create new socket connection fail…
Linary Oct 31, 2017
d8d4b3e
hugegraph-911 add prefixOf method into CollectionUtil
zhoney Nov 6, 2017
094f8bb
HugeGraph-935: Add a method 'allUnique'
Linary Nov 13, 2017
b01f3a3
HugeGraph-975: support conversion: number <==> bytes
javeme Dec 7, 2017
3d3da16
HugeGraph-978: add prefixWith() for bytes
javeme Dec 11, 2017
1804fa7
HugeGraph-984: Fixed bug that multi graphs has same name config optio…
Linary Dec 13, 2017
6503235
HugeGraph-986: Let prefixOf support generic type
Linary Dec 15, 2017
7789bc8
HugeGraph-989: add toHex()/fromHex() to class Bytes
javeme Dec 19, 2017
8a44989
HugeGraph-990: Fixed bug that compile error when building project
Linary Dec 19, 2017
24ff820
HugeGraph-994: Fixed bug that some key has more than one value will t…
Linary Dec 22, 2017
fe8b51d
HugeGraph-976: add filter-iterator
javeme Dec 7, 2017
9f994b3
HugeGraph-1000: allow non-check of config options
javeme Dec 27, 2017
8219a10
HugeGraph-1075: add allowValues() to OptionChecker
javeme Jan 18, 2018
2ae8e15
HugeGraph-1097: fix missing check for duplicated options
javeme Feb 1, 2018
749a2d9
HugeGraph-1097: fix check error when HugeConfig(Configuration config)…
javeme Feb 2, 2018
fde9c72
HugeGraph-1110: let iterators implement AutoCloseable and Metadatable
javeme Feb 6, 2018
8d83339
HugeGraph-1158: awllow empty Iterator add to ExtendableIterator
javeme Mar 2, 2018
154e030
HugeGraph-1171: Modify the way for config options registration
Linary Mar 22, 2018
cb33bbd
HugeGraph-1174: Let config reload if some options contains comma
Linary Mar 23, 2018
12c6591
HugeGraph-1183: Add common RestClient for server and client
Linary Mar 28, 2018
56a60dc
HugeGraph-1190: add OptionSpace.keys() method
javeme Mar 29, 2018
1bf8d9e
HugeGraph-1191: rewrite exception handling mechanism at register method
freeHackOfJeff Mar 29, 2018
5183fb0
HugeGraph-1208: Move compareNumber() from core to common module
Linary Apr 8, 2018
887a4d5
HugeGraph-1196: Fix grammer at exits method
freeHackOfJeff Mar 30, 2018
c2db8f5
HugeGraph-81: Fixed bug that message and cause placed error
Linary Apr 10, 2018
aa222c4
HugeGraph-1229: add README.md for project hugegraph-common
Linary Apr 16, 2018
d6d92e4
HugeGraph-1229: add README.md for project hugegraph-common
Linary Apr 17, 2018
9346717
HugeGraph-1236: add getMap() to HugeConfig
javeme Apr 18, 2018
140cf84
hugegraph-1234 add subset util
zhoney Apr 19, 2018
544b94c
HugeGraph-1257: Let jersey client use preemptive credentials
Linary Apr 27, 2018
daa967d
HugeGraph-1301: Move SafeDateFormat class to hugegraph-common module
Linary Jun 8, 2018
8c76d5b
HugeGraph-1309: add remove() support to WrappedIterator
javeme Jun 13, 2018
4aae65c
HugeGraph-81: Small optimization of package structure
Linary Jun 20, 2018
92ad62a
HugeGraph-1330: add support for 128bits hash
javeme Jun 28, 2018
50c7738
HugeGraph-1312: Add config to deploy to sonatype maven respority
Linary Jun 28, 2018
eed956d
hugegraph-81 add github link to README
zhoney Jul 3, 2018
9db4310
HugeGraph-1336: move common tests from hugegraph-test to hugegraph-co…
javeme Jul 5, 2018
1db56cf
HugeGraph-1341: Upgrade version to 1.4.8(1.4.7 failed deploying to ma…
Linary Jul 11, 2018
553cd60
hugegraph-889 add ACCEPTED to POST, PUT and DELETE for async
zhoney Jul 18, 2018
a412145
HugeGraph-1349: Add some badges(licence, build, coverage and maven) i…
Linary Jul 23, 2018
1c7c839
hugegraph-1364 add LICENSE for hugegraph-common
zhoney Jul 26, 2018
07793f9
HugeGraph-622: Bump up to version 1.5.0
zhoney Jul 27, 2018
591d3f3
HugeGraph-1399: let EventHub.notify() return Future to sync
javeme Aug 22, 2018
16fbcb3
Optimize intersect action
Linary Oct 9, 2018
904f426
README improve
zhoney Oct 12, 2018
146e4bc
add api for setting thread pool name
javeme Oct 19, 2018
476bb78
Add CollectionUtilTest to UnitTestSuite
Linary Dec 17, 2018
6f20cb8
Fix dependency conflict "InjectionManagerFactory not found"
Linary Dec 18, 2018
bbbc8e7
Add CollectionUtil.sortByValue()
Linary Dec 24, 2018
5f6012c
Support for sortable base64 encoding
javeme Dec 21, 2018
5bac575
Set origin iterator last one if all iterators of extendable iterator …
zhoney Feb 15, 2019
95530cc
add PerfUtil.clear()/Bytes.concat()/CollectionUtil.randomSet()
javeme Feb 27, 2019
306b4f1
fix NPE in EventHub.destroy()
javeme Apr 8, 2019
87c5826
Let RestClient can reuse connections
Linary Jan 6, 2019
1eb2414
Add OrderLimitMap
Linary Apr 16, 2019
194ed53
add Whitebox.invoke() method (#22)
javeme May 7, 2019
5ea077f
add support of sortable negative number for NumericUtil (#23)
javeme May 21, 2019
0822dd9
let subclass of ConfigOption be able to override parent options (#24)
javeme May 28, 2019
1a66a60
Enhance toList and add toSet in CollectionUtil (#25)
Linary May 29, 2019
64bd154
RestClient support to close idle connection periodically (#26)
Linary Jun 11, 2019
2f453c0
support typed option (#27)
javeme Jun 17, 2019
48a39fc
improve exception message for InvocationTargetException (#28)
javeme Jun 24, 2019
85a6b7e
Enhance ExecutorUtil to create ScheduledThreadPool (#29)
Linary Jun 24, 2019
b525aef
add maxValueOf() for NumericUtil (#30)
zhoney Jun 26, 2019
88d8838
Support show time in readable format (#31)
Linary Jul 1, 2019
ce75fb9
Enhance split in StringUtil (#32)
Linary Jul 9, 2019
0436a14
add methods Bytes.contains() & Bytes.indexOf() (#33)
javeme Jul 17, 2019
cc46341
improve LongEncoding.decodeSortable() (#34)
zhoney Jul 22, 2019
f8e65f8
add Bytes.toHex() method (#35)
javeme Aug 15, 2019
41bc25c
support calling superclass method for Whitebox.invoke() (#37)
javeme Sep 5, 2019
0ff4b0e
Extract license common structures (#36)
Linary Sep 6, 2019
4eda631
Support keyLock in LockGroup (#38)
zhoney Sep 25, 2019
49bff5e
Support RowLock in LockGroup (#39)
zhoney Oct 11, 2019
d78b728
Split ConfigOption read into two steps: parse() and convert() (#40)
javeme Dec 31, 2019
8268b75
add generic parameter for RowLock (#42)
javeme Dec 31, 2019
24b8a33
support assert range conditions (#41)
javeme Dec 31, 2019
4bd64ce
fix iterators may not be closed (#43)
javeme Jan 8, 2020
0a71d12
Add nodes and data size to extra param (#44)
Linary Feb 4, 2020
fffccf1
Upgrade jackson version to 2.10.2 (#45)
Linary Feb 23, 2020
0d90ae4
add encodeSignedB64() method (#46)
javeme Mar 19, 2020
c2c5ba4
add https support (#47)
shzcore Jun 11, 2020
034e1a2
Add dateutil (#48)
zhoney Jun 15, 2020
b4fb1f7
refactor RestClient as interface (#49)
javeme Jun 19, 2020
544599e
Fix HugeConfig save to file is empty (#51)
Linary Jul 1, 2020
9f329f5
Bump log4j2.version from 2.8.2 to 2.13.3 (#52)
dependabot[bot] Jul 2, 2020
630e19f
fix LockManager get/create race condition (#53)
javeme Jul 24, 2020
2d4a8ee
Upgrade version to 1.8.0 for release (#55)
Linary Nov 5, 2020
9962e0c
fix https+auth bug (#57)
zhoney Nov 17, 2020
37de7be
Improve SafeDateFormat by joda DateTimeFormatter (#59)
Linary Dec 14, 2020
f4e861b
add BarrierEvent (#60)
houzhizhen Jan 11, 2021
c80f959
Implement PausableScheduledThreadPool (#61)
Linary Feb 3, 2021
cde7763
fix BatchMapperIterator stopped when fetched none in the middle batch…
javeme Feb 25, 2021
ccc4d3b
add LimitIterator class (#62)
javeme Mar 1, 2021
42e5260
Add Class.class as an accept data type in TypedOption (#65)
Linary Mar 7, 2021
1114e94
First commit
Linary Mar 16, 2021
3914813
Add checkstyle plugin
Linary Mar 17, 2021
98844d8
add UnitUtil class (#66)
javeme Mar 19, 2021
265f74b
Add checkstyle plugin (#67)
Linary Mar 19, 2021
159143c
add rpc framework based on sofa-rpc (#1)
javeme Mar 23, 2021
6c80038
support random port to start rpc server (#2)
javeme Mar 25, 2021
d51efb6
add some test cases for util package (#70)
javeme Apr 12, 2021
fe19014
improve profile performance (#69)
javeme Apr 13, 2021
aecaf4e
remove inner hostname from cacerts.jks (#72)
shzcore Apr 15, 2021
185a926
Fix senstive mail address (#71)
Linary Apr 15, 2021
f72fac4
Improve some license params (#73)
Linary Apr 16, 2021
74b954a
disable delimiter parsing when construct from MapConfiguration (#74)
houzhizhen Apr 26, 2021
27dfd9d
Bump commons-io from 2.4 to 2.7 (#75)
dependabot[bot] Jun 3, 2021
9101842
Bump jackson.version from 2.10.2 to 2.12.1 (#63)
dependabot[bot] Jun 3, 2021
efa8e97
chore: use github action to run ci (#77)
Linary Jun 23, 2021
535ae07
add Auth Context to store request header(Authorization) (#76)
corgiboygsj Jun 24, 2021
49e8599
chore: add issue template & auto stale issues and pr (#78)
imbajin Jul 2, 2021
3881b86
fix: unable to close the rpc thread pool at destroy (#3)
coderzc Jul 28, 2021
53c6503
chore: update ubuntu version for ci actions (#79)
imbajin Oct 9, 2021
1d27452
add bearer token support (#81)
guoygang Nov 2, 2021
c572c2b
first rename
imbajin Nov 30, 2021
0789b1c
merge rpc module into commons
imbajin Nov 30, 2021
24c3390
chore: merge license & checkstyle & ci
imbajin Dec 1, 2021
ee08712
chore: new pom & README for module
imbajin Dec 1, 2021
f5383d5
Merge pull request #84 (merge rpc module into commons)
javeme Dec 7, 2021
3b8933c
fix log4j error (#85)
zhoney Dec 15, 2021
fbb743a
bump up version to 2.0.0 (#86)
javeme Dec 17, 2021
4a1926f
improve java doc (#87)
zhoney Dec 17, 2021
8f0f2ba
release maven package by actions (#88)
coderzc Dec 21, 2021
922a4f6
upgrade log4j to version 2.17.0 (#89)
zhoney Dec 21, 2021
d695bd4
fix some test cases naming (#90)
javeme Dec 21, 2021
4b21e94
chore: support java 11 (#83)
zyxxoo Jan 14, 2022
05fe7a4
chore: use cla assistant to support robot pr (#92)
imbajin Mar 3, 2022
88d2f89
chore: support code security check with codeQL (#94)
imbajin Mar 21, 2022
d0e5971
fix: can't delete conf file when drop graph (#93)
zyxxoo Mar 21, 2022
f2e8384
version 2.1.2 (#96)
zyxxoo Apr 11, 2022
deac513
improve Whitebox.setInternalState() (#99)
javeme Apr 27, 2022
db84121
refact: unify pom & remove useless file (#100)
imbajin Apr 29, 2022
589ee2c
support assert-throws return future (#102)
javeme May 27, 2022
4af14a9
add Cnm and Anm to CollectionUtil (#101)
javeme May 27, 2022
745bd86
chore: use .asf.yaml for apache workflow rule (#98)
imbajin Jun 7, 2022
09b1819
update checkstyle (#97)
seagle-yuan Jun 13, 2022
42ef9c4
chore: upgrade CodeQL version to v2 (#106)
damonxue Sep 6, 2022
3b1bcb1
rename package name `com.baidu` to `org.apache` (#104)
corgiboygsj Sep 8, 2022
e85ab38
refact: clean code & typo & update the name of getTimeZone (#105)
imbajin Sep 15, 2022
be72d20
chore: setup for apache maven release (#107)
imbajin Oct 19, 2022
b783da5
feat(apache): support check license header with RAT (#108)
imbajin Oct 20, 2022
ae54f28
refact: upgrade a string of dependencies to address CVEs report & cle…
imbajin Oct 26, 2022
dc3e9e2
chore: enable ci in all prs (#111)
imbajin Oct 26, 2022
4361a51
chore: fix missing mail address & other configs (#112)
imbajin Oct 26, 2022
16602cc
support custom content-type (#113)
z7658329 Nov 1, 2022
7347b17
fix apache revision (#114)
z7658329 Nov 4, 2022
952975a
add dep check ci (#116)
simon824 Nov 8, 2022
caa4b26
refact: address some code alert (#115)
imbajin Nov 9, 2022
4dbe157
Add thrid-party dependency licenses (#117)
simon824 Nov 9, 2022
5bc993f
manifest version use project.version (#119)
z7658329 Nov 23, 2022
37e221a
delete blankspace of licenses filename (#120)
seagle-yuan Nov 30, 2022
c86e38a
chore: enable rebase option (#121)
imbajin Dec 4, 2022
a40774e
chore: prepare for release v1.0.0 (#122)
imbajin Dec 6, 2022
9463119
chore: update release script & add mailing lists (#123)
imbajin Dec 15, 2022
0239a1e
fix: add style files back (#125)
z7658329 Jan 1, 2023
e400e4d
refact(test): download binary file for https test (#126)
imbajin Jan 13, 2023
e339fed
fix(dist): generate doc & exit script when upload files failed
imbajin Dec 15, 2022
c28f8c8
chore: add DISCLAIMER & NOTICE & LICENSE file to binary package
imbajin Jan 6, 2023
1f64e8a
chore: remove copyright in file header & fix some files
imbajin Jan 12, 2023
8724b12
chore: fix copyright year and format
imbajin Jan 12, 2023
e1cb3eb
chore(license): fix 3rd party refer code (#127)
imbajin Feb 3, 2023
6f9493a
1
simon824 Feb 9, 2023
6aa01af
Update NOTICE
simon824 Feb 9, 2023
f9593d4
chore: refactor the license check CI
imbajin Feb 7, 2023
82f2a65
Update license-checker.yml
imbajin Feb 7, 2023
297e491
fix commons dependency conflict (#131)
z7658329 Apr 20, 2023
c31a536
add some construction methods for more convenient use (#132)
chengxin1374 Jul 19, 2023
b49be05
add: dependency-review (#134)
msgui Sep 20, 2023
5ad55fb
feat(common): replace jersey dependencies with OkHttp (Breaking Chang…
zhenyuT Nov 22, 2023
8c93652
fix: Assert.assertThrows() should check result of exceptionConsumer (…
javeme Nov 30, 2023
10f0a87
refact(common): rename jsonutil to avoid conflicts with server (#136)
imbajin Dec 4, 2023
dcf3752
fix the json param convert (#137)
zhenyuT Dec 5, 2023
44f99e9
doc: update README for release (#138)
imbajin Dec 12, 2023
33fa9ed
update licence (#139)
zhenyuT Dec 17, 2023
0cfd8da
feat: support user defined RestClientConfig/HTTPClient params (#140)
zhenyuT Mar 13, 2024
c883f56
chore: disable clean flatten for deploy (#141)
imbajin Mar 13, 2024
93c2e08
Update 'How to Contribute' link and remove duplicate 'Guidelines' li…
ZeeJJ123 May 28, 2024
9baef8b
fix(commons):fixed memory leaks occur in HugeGraph Server during data…
haohao0103 Jul 30, 2024
162a104
git mv to hugegraph-commons
VGalaxies Aug 3, 2024
795dc4e
Merge remote-tracking branch 'remotes/commons/migrate-commons' into i…
VGalaxies Aug 3, 2024
2fb9500
chore(commons): basic adapt for commons migration
VGalaxies Aug 3, 2024
f5b6120
Merge branch 'master' into intro-commons
VGalaxies Aug 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ github:
- Analyze (java)
- CodeQL
- check-license
- build (memory, 11)
- build (memory, 11) # Server CI
- build (11) # Commons CI
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ hugegraph-store/hg-store-dist/src/assembly/static/bin/libjemalloc_aarch64.so exp
.github/ export-ignore
.idea/ export-ignore
install-dist/scripts/ export-ignore
hugegraph-commons/hugegraph-dist/ export-ignore
docker/ export-ignore
2 changes: 1 addition & 1 deletion .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: mvn install
run: |
mvn install -DskipTests=true -ntp
mvn install -Dmaven.test.skip=true -ntp
- name: generate current dependencies
run: |
bash $SCRIPT_DEPENDENCY/regenerate_known_dependencies.sh current-dependencies.txt
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/commons-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "Graph Commons CI"

on:
workflow_dispatch:
push:
branches:
- master
- /^release-.*$/
- /^test-.*$/
pull_request:

jobs:
build:
runs-on: ubuntu-latest
env:
USE_STAGE: 'true' # Whether to include the stage repository.

strategy:
fail-fast: false
matrix:
JAVA_VERSION: ['11']

steps:
- name: Install JDK ${{ matrix.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.JAVA_VERSION }}
distribution: 'zulu'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Use staged maven repo settings
if: ${{ env.USE_STAGE == 'true' }}
run: |
cp $HOME/.m2/settings.xml /tmp/settings.xml
cp -vf .github/configs/settings.xml $HOME/.m2/settings.xml && cat $HOME/.m2/settings.xml

- name: Compile
run: |
mvn compile -Dmaven.javadoc.skip=true -ntp

- name: Run common test
run: |
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite

- name: Run rpc test
run: |
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite

- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: target/jacoco.xml
24 changes: 12 additions & 12 deletions .github/workflows/pd-store-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
env:
# TODO: avoid duplicated env setup in pd & store
USE_STAGE: 'false' # Whether to include the stage repository.
USE_STAGE: 'true' # Whether to include the stage repository.
# TODO: remove outdated env
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis
REPORT_DIR: target/site/jacoco
Expand Down Expand Up @@ -46,11 +46,11 @@ jobs:

- name: Run common test
run: |
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test -DskipCommonsTests=true

- name: Run core test
run: |
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test -DskipCommonsTests=true

# The above tests do not require starting a PD instance.

Expand All @@ -64,11 +64,11 @@ jobs:

- name: Run client test
run: |
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test -DskipCommonsTests=true

- name: Run rest test
run: |
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test -DskipCommonsTests=true

- name: Upload coverage to Codecov
uses: codecov/[email protected]
Expand All @@ -79,7 +79,7 @@ jobs:
# TODO: avoid duplicated env setup
runs-on: ubuntu-latest
env:
USE_STAGE: 'false' # Whether to include the stage repository.
USE_STAGE: 'true' # Whether to include the stage repository.
# TODO: remove outdated env
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis
REPORT_DIR: target/site/jacoco
Expand Down Expand Up @@ -120,27 +120,27 @@ jobs:

- name: Run common test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test -DskipCommonsTests=true

- name: Run client test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test -DskipCommonsTests=true

- name: Run core test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test -DskipCommonsTests=true

- name: Run rocksdb test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test -DskipCommonsTests=true

- name: Run server test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test -DskipCommonsTests=true

- name: Run raft-core test
run: |
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test -DskipCommonsTests=true

- name: Upload coverage to Codecov
uses: codecov/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# TODO: we need test & replace it to ubuntu-24.04 or ubuntu-latest
runs-on: ubuntu-20.04
env:
USE_STAGE: 'false' # Whether to include the stage repository.
USE_STAGE: 'true' # Whether to include the stage repository.
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis
REPORT_DIR: target/site/jacoco
BACKEND: ${{ matrix.BACKEND }}
Expand Down
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Required:
* Java 11
* Maven 3.5+

To build without executing tests: `mvn clean package -DskipTests`
To build without executing tests: `mvn clean package -Dmaven.test.skip=true`

## Building in IDEA

Expand Down
66 changes: 66 additions & 0 deletions hugegraph-commons/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# hugegraph-commons

[![License](https://img.shields.io/badge/license-Apache%202-0E78BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![codecov](https://codecov.io/gh/hugegraph/hugegraph-common/branch/master/graph/badge.svg)](https://codecov.io/gh/hugegraph/hugegraph-common)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.hugegraph/hugegraph-common/badge.svg)](https://mvnrepository.com/artifact/org.apache.hugegraph/hugegraph-common)
[![CodeQL](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/codeql-analysis.yml)
[![hugegraph-commons ci](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/incubator-hugegraph-commons/actions/workflows/ci.yml)


hugegraph-commons is a common module for [HugeGraph](https://github.com/apache/hugegraph) and its peripheral components.
hugegraph-commons encapsulates locks, configurations, events, iterators, rest and some
numeric or collection util classes to simplify the development of HugeGraph and its components.

## Components

- Lock: atomic lock, key lock, lock group and lock manger
- Config: register and load config option with security check
- Event: listening and notification, do something asynchronously
- Iterator: some iterators with extra functions, map, filter, extend, etc.
- Rest: RESTful client implemented on OkHttp, POST, PUT, GET and DELETE
- Util: performance analyzer, version checker, numeric and Collection utils, log and exception utils, etc.
- Rpc: rpc component for inner module communication, currently it's based on [Sofa-RPC](https://github.com/sofastack/sofa-rpc)

You could use import the dependencies in `maven` like this:

```xml
<dependency>
<groupId>org.apache.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
<version>1.2.0</version>
</dependency>
```

## Learn More

The [doc page](https://hugegraph.apache.org/docs/) contains more information about hugegraph modules.

And here are links of other repositories:
1. [hugegraph-server](https://github.com/apache/hugegraph) (graph's core component - OLTP server)
2. [hugegraph-toolchain](https://github.com/apache/hugegraph-toolchain) (include loader/dashboard/tool/client)
3. [hugegraph-computer](https://github.com/apache/hugegraph-computer) (graph processing system - OLAP)
4. [hugegraph-website/doc](https://github.com/apache/hugegraph-doc) (include doc & website code)



## Contributing

- Welcome to contribute to HugeGraph, please see [How to Contribute](https://hugegraph.apache.org/docs/contribution-guidelines/contribute/) for more information.
- Note: It's recommended to use [GitHub Desktop](https://desktop.github.com/) to greatly simplify the PR and commit process.
- Thank you to all the people who already contributed to HugeGraph!

[![contributors graph](https://contrib.rocks/image?repo=apache/hugegraph-commons)](https://github.com/apache/incubator-hugegraph-commons/graphs/contributors)

## Licence

Same as HugeGraph, hugegraph-commons are also licensed under [Apache 2.0](./LICENSE) License.

### Contact Us

---

- [GitHub Issues](https://github.com/apache/incubator-hugegraph-commons/issues): Feedback on usage issues and functional requirements (quick response)
- Feedback Email: [[email protected]](mailto:[email protected]) ([subscriber](https://hugegraph.apache.org/docs/contribution-guidelines/subscribe/) only)
- WeChat public account: Apache HugeGraph, welcome to scan this QR code to follow us.

<img src="https://raw.githubusercontent.com/apache/incubator-hugegraph-doc/master/assets/images/wechat.png" alt="QR png" width="350"/>
23 changes: 23 additions & 0 deletions hugegraph-commons/hugegraph-common/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# hugegraph-common

[![License](https://img.shields.io/badge/license-Apache%202-0E78BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://travis-ci.org/hugegraph/hugegraph-common.svg?branch=master)](https://travis-ci.org/hugegraph/hugegraph-common)
[![codecov](https://codecov.io/gh/hugegraph/hugegraph-common/branch/master/graph/badge.svg)](https://codecov.io/gh/hugegraph/hugegraph-common)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.hugegraph/hugegraph-common/badge.svg)](https://mvnrepository.com/artifact/org.apache.hugegraph/hugegraph-common)

hugegraph-common is a common module for [HugeGraph](https://github.com/hugegraph/hugegraph) and its peripheral components.
hugegraph-common encapsulates locks, configurations, events, iterators, rest and some
numeric or collection util classes to simplify the development of HugeGraph and
its components.

## Components

- Lock: atomic lock, key lock, lock group and lock manger
- Config: register and load config option with security check
- Event: listening and notification, do something asynchronously
- Iterator: some iterators with extra functions, map, filter, extend, etc.
- Rest: RESTful client implemented on Jersey, POST, PUT, GET and DELETE
- Util: Performance analyzer, version checker, numeric and Collection utils, log and exception utils, etc.

## Licence
The same as HugeGraph, hugegraph-common is also licensed under Apache 2.0 License.
23 changes: 23 additions & 0 deletions hugegraph-commons/hugegraph-common/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

export MAVEN_HOME=/home/scmtools/buildkit/maven/apache-maven-3.3.9/
export JAVA_HOME=/home/scmtools/buildkit/java/jdk1.8.0_25/
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH

mvn clean test -Dtest=UnitTestSuite
Loading
Loading