Skip to content
Permalink
Browse files
refact: merge client into toolchains
  • Loading branch information
imbajin committed Apr 14, 2022
2 parents a08be4b + 7f3c885 commit 286b5a03a750accb076212b54a4eb527c76c8d95
Showing 254 changed files with 36,910 additions and 0 deletions.
@@ -0,0 +1,100 @@
name: Bug report (反馈 Bug)
description: Create a bug report to help HugeGraph improve
title: '[Bug] describe the main problem'
labels:
- bug

body:
- type: markdown
attributes:
value: >-
### Note (特别注意) :
> 1. 请先**搜索**现有的[Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与
[Client-Issues](https://github.com/hugegraph/hugegraph-client/issues) 中没有与您相同
/ 相关的问题 (请勿重复提交)
> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
会**越快**被响应和处理
> 3. Issue 标题请保持原有模板分类(例如:`[Bug]`), 长段描述之间可以增加`空行`或使用`序号`标记, 保持排版清晰
> 4. 请在对应的模块提交 issue, 缺乏有效信息 / 长时间 (> 14 天) 没有回复的 issue 可能会被 **关闭**
(更新时会再开启)
- type: dropdown
attributes:
label: Bug Type (问题类型)
options:
- gremlin (结果不合预期)
- rest-api (结果不合预期)
- other exception / error (其他异常报错)
- server status (连接异常)
- logic (逻辑设计问题)
- performence (性能下降)
- others (please edit later)

- type: checkboxes
attributes:
label: Before submit
options:
- label: 我已经确认现有的 [Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与 [Client-Issues](https://github.com/hugegraph/hugegraph-client/issues) 中没有相同 / 重复问题
required: true

- type: textarea
attributes:
label: Environment (环境信息)
description: |
> server version could get from [rest-api](https://hugegraph.github.io/hugegraph-doc/clients/restful-api/other.html) (http://localhost:8080/versions)
value: |
- Server Version: v0.11.x
- Client Version: v1.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
validations:
required: true

- type: textarea
attributes:
label: Expected & Actual behavior (期望与实际表现)
description: |
> we can refer [How to create a minimal reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) (如何提供最简的可复现用例)
> if possible, please provide screenshots or GIF (请提供清晰的截图, 动图录屏更佳)
placeholder: |
type the main problem here
```java
// Exception / Error info (尽可能详细的日志 + 完整异常栈)
```
validations:
required: true

- type: textarea
attributes:
label: Vertex/Edge example (问题点 / 边数据举例)
description: |
> 如果问题与具体的点 / 边数据相关, 请提供完整的`查询语句 + 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/gremlin?gremlin=hugegraph.traversal().V('1:tom')
// JSON of Vertex / Edge
{
"vertex": { "id": "xxx" }
}
render: javascript

- type: textarea
attributes:
label: Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
description: |
> 如果问题与具体的点类型 / 边类型 / 索引类型相关, 请提供完整的 `Schema 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/graphs/hugegraph/schema/vertexlabels
// JSON of GraphSchema
{
"vertex": { "id": "xxx" }
}
render: javascript
@@ -0,0 +1,10 @@
blank_issues_enabled: false

# 设置提 issue 前的参考文档
contact_links:
- name: HugeGraph Client Doc
url: https://hugegraph.github.io/hugegraph-doc/quickstart/hugegraph-client.html
about: Please search question here before opening a new issue
- name: HugeGraph API Doc
url: https://hugegraph.github.io/hugegraph-doc/clients/hugegraph-api.html
about: Please search usage here before opening a new issue
@@ -0,0 +1,15 @@
name: Feature request (新需求 / 功能)
description: Give an idea for HugeGraph
title: '[Feature] describe the new feature'
labels:
- feature

body:
- type: textarea
attributes:
label: Feature Description (功能描述)
description: |
> 请简要描述新功能 / 需求的使用场景或上下文, 最好能给个具体的例子说明
placeholder: type the feature description here
validations:
required: true
@@ -0,0 +1,99 @@
name: Ask question (提问)
description: Question about usage or configs in HugeGraph
title: '[Question] describe your problem'

body:
- type: markdown
attributes:
value: >-
### Note (特别注意) :
> 1. 请先**搜索**现有的[Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与
[Client-Issues](https://github.com/hugegraph/hugegraph-client/issues) 中没有与您相同
/ 相关的问题 (请勿重复提交)
> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
会**越快**被响应和处理
> 3. Issue 标题请保持原有模板分类(例如:`[Bug]`), 长段描述之间可以增加`空行`或使用`序号`标记, 保持排版清晰
> 4. 请在对应的模块提交 issue, 缺乏有效信息 / 长时间 (> 14 天) 没有回复的 issue 可能会被 **关闭**
(更新时会再开启)
- type: dropdown
attributes:
label: Problem Type (问题类型)
options:
- gremlin (结果不合预期)
- rest-api (结果不合预期)
- server status (连接异常)
- configs (配置项 / 文档相关)
- struct / logic (架构 / 逻辑设计问题)
- performence (性能优化)
- other exception / error (其他异常报错)
- others (please edit later)

- type: checkboxes
attributes:
label: Before submit
options:
- label: 我已经确认现有的 [Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与 [Client-Issues](https://github.com/hugegraph/hugegraph-client/issues) 中没有相同 / 重复问题
required: true

- type: textarea
attributes:
label: Environment (环境信息)
description: |
> server version could get from [rest-api](https://hugegraph.github.io/hugegraph-doc/clients/restful-api/other.html) (http://localhost:8080/versions)
value: |
- Server Version: v0.11.x
- Client Version: v1.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
validations:
required: true

- type: textarea
attributes:
label: Your Question (问题描述)
description: |
> 图使用 / 配置相关问题,请优先参考 [REST-API 文档](https://hugegraph.github.io/hugegraph-doc/clients/hugegraph-api.html), 以及 [Server 配置文档](https://hugegraph.github.io/hugegraph-doc/config/config-option.html)
> if possible, please provide screenshots or GIF (请提供清晰的截图, 动图录屏更佳)
placeholder: |
type the main problem here
```java
// Exception / Error info (尽可能详细的日志 + 完整异常栈)
```
validations:
required: true

- type: textarea
attributes:
label: Vertex/Edge example (问题点 / 边数据举例)
description: |
> 如果问题与具体的点 / 边数据相关, 请提供完整的`查询语句 + 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/gremlin?gremlin=hugegraph.traversal().V('1:tom')
// JSON of Vertex / Edge
{
"vertex": { "id": "xxx" }
}
render: javascript

- type: textarea
attributes:
label: Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
description: |
> 如果问题与具体的点类型 / 边类型 / 索引类型相关, 请提供完整的 `Schema 返回 JSON 结果`
placeholder: |
// Query URL
GET http://localhost:8080/graphs/hugegraph/schema/vertexlabels
// JSON of GraphSchema
{
"vertex": { "id": "xxx" }
}
render: javascript
@@ -0,0 +1,61 @@
name: hugegraph-client ci

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

jobs:
build:
runs-on: ubuntu-20.04
env:
TRAVIS_DIR: assembly/travis
COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
strategy:
fail-fast: false
matrix:
JAVA_VERSION: ['8']
steps:
- name: Install JDK 8
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.JAVA_VERSION }}
distribution: 'zulu'

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

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

- name: Compile
run: |
mvn compile -Dmaven.javadoc.skip=true | grep -v "Downloading\|Downloaded"
- name: Prepare env and service
run: |
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID
- name: Run test
run: |
mvn test -Dtest=UnitTestSuite
mvn test -Dtest=ApiTestSuite
mvn test -Dtest=FuncTestSuite
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: target/jacoco.xml