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

Attempt to reuse build in Action #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 1 addition & 5 deletions .github/workflows/api-rest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "API-Test-RESTful"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/api-session.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "API-Test-SESSIONv2"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/capacity-expansion.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: "Capacity-Expansion-Test"
on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT
concurrency:
Expand Down
146 changes: 104 additions & 42 deletions .github/workflows/ds-influxdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,40 @@ concurrency:
cancel-in-progress: true

jobs:
Package-IGinX-DEV:
strategy:
matrix:
java: [ 8 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache Maven Package Outputs and Intermediates
id: cache-maven-package
uses: actions/cache@v3
with:
path: |
*
!.git
!docs
!conf
key: build-${{ github.run_id }}
- name: Maven Package
if: steps.cache-maven-package.outputs.cache-hit != 'true'
run: mvn clean package -DskipTests

InfluxDB-Capacity-Expansion-ds:
needs: Package-IGinX-DEV
strategy:
fail-fast: false
#max-parallel: 20
Expand All @@ -23,18 +56,31 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Maven Package Outputs and Intermediates
id: cache-maven-package
uses: actions/cache@v3
with:
path: |
*
!.git
!docs
!conf
key: build-${{ github.run_id }}
- name: Check Cache Hit
if: steps.cache-maven-package.outputs.cache-hit != 'true'
run: exit 1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Run ZooKeeper
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -59,18 +105,19 @@ jobs:
echo "$RUNNER_OS is not supported"
exit 1
fi
- name: Install with Maven
run: mvn clean package -DskipTests
- name: Write history Data
run: |
mvn test -q -Dtest=InfluxDBHistoryDataGeneratorTest -DfailIfNoTests=false
sleep 10
- name: Start IginX
- name: Copy Config Before Start IGinX in core/target
run: cp conf/config.properties "core/target/iginx-core-${VERSION}/conf/config.properties"
- name: Start IGinX
run: |
chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh"
nohup "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh" &

InfluxDB-SQL-ds:
needs: Package-IGinX-DEV
strategy:
fail-fast: false
#max-parallel: 20
Expand All @@ -80,24 +127,31 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Maven Package Outputs and Intermediates
id: cache-maven-package
uses: actions/cache@v3
with:
path: |
*
!.git
!docs
!conf
key: build-${{ github.run_id }}
- name: Check Cache Hit
if: steps.cache-maven-package.outputs.cache-hit != 'true'
run: exit 1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run ZooKeeper
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -122,8 +176,8 @@ jobs:
echo "$RUNNER_OS is not supported"
exit 1
fi
- name: Install with Maven
run: mvn clean package -DskipTests
- name: Copy Config Before Start IGinX in core/target
run: cp conf/config.properties "core/target/iginx-core-${VERSION}/conf/config.properties"
- name: Start IginX
run: |
chmod +x "${GITHUB_WORKSPACE}/core/target/iginx-core-${VERSION}/sbin/start_iginx.sh"
Expand All @@ -136,6 +190,7 @@ jobs:
name: codecov

InfluxDB-SQL-SessionPool-ds:
needs: Package-IGinX-DEV
strategy:
fail-fast: false
#max-parallel: 20
Expand All @@ -145,24 +200,31 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Cache Maven Package Outputs and Intermediates
id: cache-maven-package
uses: actions/cache@v3
with:
path: |
*
!.git
!docs
!conf
key: build-${{ github.run_id }}
- name: Check Cache Hit
if: steps.cache-maven-package.outputs.cache-hit != 'true'
run: exit 1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run ZooKeeper
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -187,9 +249,9 @@ jobs:
echo "$RUNNER_OS is not supported"
exit 1
fi
- name: Install with Maven
run: mvn clean package -DskipTests
- name: Start IginX
- name: Copy Config Before Start IGinX in core/target
run: cp conf/config.properties "core/target/iginx-core-${VERSION}/conf/config.properties"
- name: Start IGinX
uses: ./.github/actions/iginxRunner
with:
version: ${VERSION}
Expand All @@ -199,7 +261,7 @@ jobs:
with:
confFile: "iginxConf"

- name: Start IginX_2
- name: Start IGinX_2
uses: ./.github/actions/iginxRunner
with:
version: ${VERSION}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ds-iotdb.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "ITTest-ds-IoTDB"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ds-parquet.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "ITTest-ds-Parquet"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/func-transform.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Function-Test-Transform"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/func-udf.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Function-Test-UDF"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/scale-out.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: "Scale-out-On-IoTDB"
on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch
env:
VERSION: 0.6.0-SNAPSHOT

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/unit-mds.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: "Metadata-Service-Test"

on:
pull_request:
types: [opened, reopened]
branches:
- main
on: workflow_dispatch

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down