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: init github actions for toolchains & refact submodules #258

Merged
merged 4 commits into from
Apr 15, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body:
### Note (特别注意) :

> 1. 请先**搜索**现有的[Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与
[Tools-Issues](https://github.com/hugegraph/hugegraph-tools/issues) 中没有与您相同
[toolchain-Issues](https://github.com/hugegraph/hugegraph-loader/issues) 中没有与您相同
imbajin marked this conversation as resolved.
Show resolved Hide resolved
/ 相关的问题 (请勿重复提交)

> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
Expand All @@ -26,16 +26,18 @@ body:
attributes:
label: Bug Type (问题类型)
options:
- gremlin (结果不合预期)
- rest-api (结果不合预期)
- dashboard render (前端渲染问题)
- data inconsistency (数据不一致)
- exception / error (异常报错)
- data inconsistency (备份 / 迁移后不合预期)
- logic (逻辑设计问题)
- others (please edit later)
- others (please comment below)

- type: checkboxes
attributes:
label: Before submit
options:
- label: 我已经确认现有的 [Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与 [Tools-Issues](https://github.com/hugegraph/hugegraph-tools/issues) 中没有相同 / 重复问题
- label: 我已经确认现有的 [Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与 [toolchain-Issues](https://github.com/hugegraph/hugegraph-loader/issues) 中没有相同 / 重复问题
imbajin marked this conversation as resolved.
Show resolved Hide resolved
required: true

- type: textarea
Expand All @@ -44,8 +46,8 @@ body:
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
- Tools Version: v1.x
- Server Version: v0.12.x
- Loader Version: v0.12.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
validations:
required: true
Expand All @@ -60,7 +62,7 @@ body:
type the main problem here

```java
// Exception / Error info (尽可能详细的日志 + 完整异常栈)
// Detailed exception / error info (尽可能详细的日志 + 完整异常栈)

```
validations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ blank_issues_enabled: false

# 设置提 issue 前的参考文档
contact_links:
- name: HugeGraph toolchain Doc
# TODO: update the url after repository rename
url: https://hugegraph.github.io/hugegraph-doc
about: Please search question here before opening a new issue
- 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
### Note (特别注意) :

> 1. 请先**搜索**现有的[Server-Issues](https://github.com/hugegraph/hugegraph/issues) 与
[Tools-Issues](https://github.com/hugegraph/hugegraph-tools/issues) 中没有与您相同
[toolchain-Issues](https://github.com/hugegraph/hugegraph-loader/issues) 中没有与您相同
/ 相关的问题 (请勿重复提交)

> 2. 我们需要尽可能**详细**的信息来**复现**问题, 越详细的信息 (包括**日志 / 截图 / 配置**等)
Expand All @@ -24,18 +24,21 @@ body:
attributes:
label: Problem Type (问题类型)
options:
- exception / error (异常报错)
- data inconsistency (备份 / 迁移后不合预期)
- gremlin (结果不合预期)
- rest-api (结果不合预期)
- logic (逻辑设计问题)
- performence (性能问题)
- dashboard render (前端渲染问题)
- data inconsistency (数据不一致)
- configs (配置项 / 文档相关)
- performence (性能优化)
- others (please edit later)
- exception / error (异常报错)
- others (please comment below)

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

- type: textarea
Expand All @@ -44,8 +47,8 @@ body:
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
- Tools Version: v1.x
- Server Version: v0.12.x
- Loader Version: v0.12.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
validations:
required: true
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# TODO: refactor it later
name: hugegraph-toolchain 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
STATIC_DIR: assembly/static
COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
DB_USER: root
DB_PASS: root
DB_DATABASE: load_test
steps:
- name: Install JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
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 install:install-file -Dfile=$STATIC_DIR/lib/ojdbc8-12.2.0.1.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar
mvn compile -Dmaven.javadoc.skip=true | grep -v "Downloading\|Downloaded"

- name: Init Mysql Env
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: ${{ env.DB_DATABASE }} # Optional, default value is "test". The specified database which will be create
mysql root password: ${{ env.DB_PASS }} # Required if "mysql user" is empty, default is empty. The root superuser password
#mysql user: 'root' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
#mysql password: ${{ secrets.DatabasePassword }} # Required if "mysql user" exists. The password for the "mysql user"

- name: Prepare env and service
run: |
$TRAVIS_DIR/install-hadoop.sh
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID

- name: Run test
run: |
mvn test -P unit
mvn test -P file
mvn test -P hdfs
mvn test -P jdbc

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: target/jacoco.xml
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ jobs:
stale-pr-message: 'Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label'
stale-issue-label: 'inactive'
stale-pr-label: 'inactive'
exempt-issue-labels: 'feature,bug,enhancement,improvement,wontfix,todo'
exempt-issue-labels: 'feature,bug,enhancement,improvement,wontfix,todo,guide,doc,help wanted'
exempt-pr-labels: 'feature,bug,enhancement,improvement,wontfix,todo,guide,doc,help wanted'
exempt-all-milestones: true

days-before-issue-stale: 15
days-before-issue-close: 20
days-before-pr-stale: 30
days-before-pr-close: 180
operations-per-run: 10
start-date: '2018-12-01T00:00:00Z'
start-date: '2017-10-01T00:00:00Z'

exempt-all-assignees: true
remove-stale-when-updated: true
Expand Down
100 changes: 0 additions & 100 deletions hugegraph-client/.github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

Loading