Skip to content

add debug url for comment api #1908

add debug url for comment api

add debug url for comment api #1908

Workflow file for this run

#
# Copyright (C) 2019-2023 vdaas.org vald team <[email protected]>
#
# Licensed 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
#
# https://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.
#
name: "Run E2E chaos test"
on:
push:
# TODO: delete it later
branches:
- "refactor/ci/update-action"
tags:
- "*.*.*"
- "v*.*.*"
- "*.*.*-*"
- "v*.*.*-*"
pull_request:
types:
- "labeled"
jobs:
dump-contexts-to-log:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/dump-context
agent-failure:
name: "E2E chaos test (Agent failure: to test insert/search works even if one of the agents is failing)"
runs-on: ubuntu-latest
timeout-minutes: 60
# TODO: delete commentout it later
# if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-chaos'
steps:
- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}
set-safe-directory: true
- name: Setup E2E environment
id: setup_e2e
uses: ./.github/actions/setup-e2e
with:
require_libhdf5: "true"
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-chaos.yaml
wait_for_selector: app=vald-lb-gateway
- name: Deploy Chaos Mesh
uses: ./.github/actions/deploy-chaos-mesh
with:
helm_extra_options: "--set podChaos.failure.enabled=true"
# - name: Run Insert and Search operations
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_TIMEOUT=15m \
# E2E_INSERT_COUNT=10000 \
# E2E_SEARCH_COUNT=10000 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=5m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e/insert/search
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}
random-pod-failure:
name: "E2E chaos test (random Pod failure: to test redundancy)"
runs-on: ubuntu-latest
timeout-minutes: 60
# TODO: delete commentout it later
# if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-chaos'
steps:
- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}
set-safe-directory: true
- name: Setup E2E environment
id: setup_e2e
uses: ./.github/actions/setup-e2e
with:
require_libhdf5: "true"
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
require_libhdf5: "true"
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-chaos.yaml
wait_for_selector: app=vald-lb-gateway
- name: Deploy Chaos Mesh
uses: ./.github/actions/deploy-chaos-mesh
with:
helm_extra_options: "--set podChaos.kill.enabled=true"
# - name: Run Insert and Search operations
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_TIMEOUT=15m \
# E2E_INSERT_COUNT=10000 \
# E2E_SEARCH_COUNT=10000 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=5m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e/insert/search
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}
agent-network-partition:
name: "E2E chaos test (agent network partition: to test retries)"
runs-on: ubuntu-latest
timeout-minutes: 60
# TODO: delete commentout it later
# if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-chaos'
steps:
- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}
set-safe-directory: true
- name: Setup E2E environment
id: setup_e2e
uses: ./.github/actions/setup-e2e
with:
require_libhdf5: "true"
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-chaos.yaml
wait_for_selector: app=vald-lb-gateway
- name: Deploy Chaos Mesh
uses: ./.github/actions/deploy-chaos-mesh
with:
helm_extra_options: "--set networkChaos.partition.enabled=true"
# - name: Run Insert and Search operations
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_TIMEOUT=15m \
# E2E_INSERT_COUNT=10000 \
# E2E_SEARCH_COUNT=10000 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=2m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e/insert/search
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}
clusterwide-network-bandwidth:
name: "E2E chaos test (network bandwidth: to test it works properly under bandwidth limitation)"
runs-on: ubuntu-latest
timeout-minutes: 60
# TODO: delete commentout it later
# if: startsWith( github.ref, 'refs/tags/') || github.event.action == 'labeled' && github.event.label.name == 'actions/e2e-chaos'
steps:
- uses: actions/checkout@v3
with:
path: ${{ github.workspace }}
set-safe-directory: true
- name: Setup E2E environment
id: setup_e2e
uses: ./.github/actions/setup-e2e
with:
require_libhdf5: "true"
- name: Deploy Vald
id: deploy_vald
uses: ./.github/actions/e2e-deploy-vald
with:
require_libhdf5: "true"
helm_extra_options: ${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}
values: .github/helm/values/values-lb.yaml
wait_for_selector: app=vald-lb-gateway
- name: Deploy Chaos Mesh
uses: ./.github/actions/deploy-chaos-mesh
with:
helm_extra_options: "--set networkChaos.bandwidth.enabled=true"
# - name: Run Insert operations
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_TIMEOUT=15m \
# E2E_INSERT_COUNT=10000 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=2m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e/insert
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}
#
# - name: Run Search operations
# run: |
# make hack/benchmark/assets/dataset/${DATASET}
# make E2E_BIND_PORT=8081 \
# E2E_DATASET_NAME=${DATASET} \
# E2E_TIMEOUT=15m \
# E2E_SEARCH_COUNT=10000 \
# E2E_WAIT_FOR_CREATE_INDEX_DURATION=2m \
# E2E_TARGET_POD_NAME=${POD_NAME} \
# E2E_TARGET_NAMESPACE=default \
# e2e/search
# env:
# DATASET: fashion-mnist-784-euclidean.hdf5
# POD_NAME: ${{ steps.deploy_vald.outputs.POD_NAME }}
slack-notification:
name: "Slack notification"
runs-on: ubuntu-latest
needs:
- agent-failure
- random-pod-failure
- agent-network-partition
- clusterwide-network-bandwidth
if: github.ref == 'refs/heads/main' || startsWith( github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/notify-slack
with:
author_name: E2E Chaos test
slack_notify_webhook_url: ${{ secrets.SLACK_NOTIFY_WEBHOOK_URL }}