Skip to content

Commit

Permalink
restore all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyano committed May 7, 2024
1 parent b096322 commit efc7c83
Show file tree
Hide file tree
Showing 7 changed files with 635 additions and 108 deletions.
213 changes: 105 additions & 108 deletions .github/workflows/DB-CE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,17 @@ jobs:
matrix:
java: [8]
python-version: ["3.9"]
os: [ubuntu-latest]
os: [ubuntu-latest, macos-13, windows-latest]
DB-name:
[
"PostgreSQL",
"Redis",
"FileSystem",
"IoTDB12",
"InfluxDB",
"PostgreSQL",
"Redis",
"MongoDB",
"Parquet",
]
# [
# "FileSystem",
# "IoTDB12",
# "InfluxDB",
# "PostgreSQL",
# "Redis",
# "MongoDB",
# "Parquet",
# ]
metadata: [zookeeper]
runs-on: ${{ matrix.os }}
env:
Expand Down Expand Up @@ -62,6 +58,102 @@ jobs:
run: |
mvn clean package -DskipTests -P-format -q
# 第 1 阶段测试开始==========================================
- name: Prepare CapExp environment oriHasDataExpHasData
uses: ./.github/actions/capacityExpansionUnionTest
with:
version: ${VERSION}
DB-name: ${{ matrix.DB-name }}
Test-Way: oriHasDataExpHasData

- name: oriHasDataExpHasData IT
shell: bash
run: |
mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriHasDataExpHasData -DfailIfNoTests=false -P-format
- name: Clear history data
uses: ./.github/actions/dbWriter
with:
DB-name: ${{ matrix.DB-name }}
Test-Way: clearHistoryData

- name: oriHasDataExpHasData Normal IT
shell: bash
run: |
mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
# 第 2 阶段测试开始==========================================
- name: Prepare CapExp environment oriNoDataExpNoData
uses: ./.github/actions/capacityExpansionUnionTest
with:
version: ${VERSION}
DB-name: ${{ matrix.DB-name }}
Test-Way: oriNoDataExpNoData

- name: oriNoDataExpNoData IT
shell: bash
run: |
mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriNoDataExpNoData -DfailIfNoTests=false -P-format
- name: Clear history data
uses: ./.github/actions/dbWriter
with:
DB-name: ${{ matrix.DB-name }}
Test-Way: clearHistoryData

- name: oriNoDataExpNoData Normal IT
shell: bash
run: |
mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
# 第 3 阶段测试开始==========================================
- name: Prepare CapExp environment oriHasDataExpNoData
uses: ./.github/actions/capacityExpansionUnionTest
with:
version: ${VERSION}
DB-name: ${{ matrix.DB-name }}
Test-Way: oriHasDataExpNoData

- name: oriHasDataExpNoData IT
shell: bash
run: |
mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriHasDataExpNoData -DfailIfNoTests=false -P-format
- name: Clear history data
uses: ./.github/actions/dbWriter
with:
DB-name: ${{ matrix.DB-name }}
Test-Way: clearHistoryData

- name: oriHasDataExpNoData Normal IT
shell: bash
run: |
mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
# 第 4 阶段测试开始==========================================
- name: Prepare CapExp environment oriNoDataExpHasData
uses: ./.github/actions/capacityExpansionUnionTest
with:
version: ${VERSION}
DB-name: ${{ matrix.DB-name }}
Test-Way: oriNoDataExpHasData

- name: oriNoDataExpHasData IT
shell: bash
run: |
mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriNoDataExpHasData -DfailIfNoTests=false -P-format
- name: Clear history data
uses: ./.github/actions/dbWriter
with:
DB-name: ${{ matrix.DB-name }}
Test-Way: clearHistoryData

- name: oriNoDataExpHasData Normal IT
shell: bash
run: |
mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
# 测试只读节点===============================================
- name: Prepare CapExp environment for testReadOnly
uses: ./.github/actions/capacityExpansionUnionTest
Expand All @@ -75,6 +167,7 @@ jobs:
shell: bash
run: |
mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#testReadOnly -DfailIfNoTests=false -P-format
mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
- name: Show IGinX log
if: always()
Expand All @@ -92,99 +185,3 @@ jobs:
with:
file: ./**/target/site/jacoco/jacoco.xml
name: codecov
# mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
# # 第 1 阶段测试开始==========================================
# - name: Prepare CapExp environment oriHasDataExpHasData
# uses: ./.github/actions/capacityExpansionUnionTest
# with:
# version: ${VERSION}
# DB-name: ${{ matrix.DB-name }}
# Test-Way: oriHasDataExpHasData
#
# - name: oriHasDataExpHasData IT
# shell: bash
# run: |
# mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriHasDataExpHasData -DfailIfNoTests=false -P-format
#
# - name: Clear history data
# uses: ./.github/actions/dbWriter
# with:
# DB-name: ${{ matrix.DB-name }}
# Test-Way: clearHistoryData
#
# - name: oriHasDataExpHasData Normal IT
# shell: bash
# run: |
# mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
#
# # 第 2 阶段测试开始==========================================
# - name: Prepare CapExp environment oriNoDataExpNoData
# uses: ./.github/actions/capacityExpansionUnionTest
# with:
# version: ${VERSION}
# DB-name: ${{ matrix.DB-name }}
# Test-Way: oriNoDataExpNoData
#
# - name: oriNoDataExpNoData IT
# shell: bash
# run: |
# mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriNoDataExpNoData -DfailIfNoTests=false -P-format
#
# - name: Clear history data
# uses: ./.github/actions/dbWriter
# with:
# DB-name: ${{ matrix.DB-name }}
# Test-Way: clearHistoryData
#
# - name: oriNoDataExpNoData Normal IT
# shell: bash
# run: |
# mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
#
# # 第 3 阶段测试开始==========================================
# - name: Prepare CapExp environment oriHasDataExpNoData
# uses: ./.github/actions/capacityExpansionUnionTest
# with:
# version: ${VERSION}
# DB-name: ${{ matrix.DB-name }}
# Test-Way: oriHasDataExpNoData
#
# - name: oriHasDataExpNoData IT
# shell: bash
# run: |
# mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriHasDataExpNoData -DfailIfNoTests=false -P-format
#
# - name: Clear history data
# uses: ./.github/actions/dbWriter
# with:
# DB-name: ${{ matrix.DB-name }}
# Test-Way: clearHistoryData
#
# - name: oriHasDataExpNoData Normal IT
# shell: bash
# run: |
# mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
#
# # 第 4 阶段测试开始==========================================
# - name: Prepare CapExp environment oriNoDataExpHasData
# uses: ./.github/actions/capacityExpansionUnionTest
# with:
# version: ${VERSION}
# DB-name: ${{ matrix.DB-name }}
# Test-Way: oriNoDataExpHasData
#
# - name: oriNoDataExpHasData IT
# shell: bash
# run: |
# mvn test -q -Dtest=${{ matrix.DB-name }}CapacityExpansionIT#oriNoDataExpHasData -DfailIfNoTests=false -P-format
#
# - name: Clear history data
# uses: ./.github/actions/dbWriter
# with:
# DB-name: ${{ matrix.DB-name }}
# Test-Way: clearHistoryData
#
# - name: oriNoDataExpHasData Normal IT
# shell: bash
# run: |
# mvn test -q -Dtest=${FUNCTEST} -DfailIfNoTests=false -P-format
67 changes: 67 additions & 0 deletions .github/workflows/case-regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: "Bug Regression Test"

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
MixCluster-ShowTimeseries:
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
java: [8]
python-version: ["3.9"]
os: [ubuntu-latest, macos-13, windows-latest]
metadata: [zookeeper]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Environment dependence
uses: ./.github/actions/dependence
with:
python-version: ${{ matrix.python-version }}
java: ${{ matrix.java }}

- name: Run Metadata
uses: ./.github/actions/metadataRunner
with:
metadata: ${{ matrix.metadata }}

- name: Run DB
uses: ./.github/actions/dbRunner
with:
DB-name: "Mix-IoTDB12-InfluxDB"

- name: Install IGinX with Maven
shell: bash
run: |
mvn clean package -DskipTests -P-format -q
- name: Write Conf
uses: ./.github/actions/confWriter
with:
Metadata: ${{ matrix.metadata }}

- name: Start IGinX
uses: ./.github/actions/iginxRunner

- name: TestMixCluster
if: always()
shell: bash
run: |
mvn test -q -Dtest=MixClusterShowColumnsRegressionTest -DfailIfNoTests=false -P-format
- name: Show IGinX log
if: always()
shell: bash
run: |
cat iginx-*.log
79 changes: 79 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
pull_request:
types: [opened, reopened]
branches: ["main"]

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-13') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: ["java-kotlin", "python"]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Loading

0 comments on commit efc7c83

Please sign in to comment.