-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pipeline issues --------- Signed-off-by: Udit Gaurav <[email protected]
- Loading branch information
1 parent
a440615
commit 66d0101
Showing
7 changed files
with
69 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,213 +9,13 @@ on: | |
- '**.yaml' | ||
|
||
jobs: | ||
# Helm_Install_Generic_Tests: | ||
# runs-on: ubuntu-18.04 | ||
# steps: | ||
|
||
# - uses: actions/checkout@v2 | ||
# with: | ||
# ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
# - name: Generate go binary and build docker image | ||
# run: make build-amd64 | ||
|
||
# #Install and configure a kind cluster | ||
# - name: Installing KinD cluster for the test | ||
# uses: engineerd/[email protected] | ||
# with: | ||
# version: "v0.7.0" | ||
# config: "build/kind-cluster/kind-config.yaml" | ||
|
||
# - name: Configuring and testing the Installation | ||
# run: | | ||
# kubectl taint nodes kind-control-plane node-role.kubernetes.io/master- | ||
# kind get kubeconfig --internal >$HOME/.kube/config | ||
# kubectl cluster-info --context kind-kind | ||
# kubectl get nodes | ||
|
||
# - name: Load docker image | ||
# run: /usr/local/bin/kind load docker-image litmuschaos/go-runner:ci | ||
|
||
# - name: Deploy a sample application for chaos injection | ||
# run: | | ||
# kubectl apply -f https://raw.githubusercontent.com/litmuschaos/chaos-ci-lib/master/app/nginx.yml | ||
# kubectl wait --for=condition=Ready pods --all --namespace default --timeout=90s | ||
|
||
# - name: Setting up kubeconfig ENV for Github Chaos Action | ||
# run: echo ::set-env name=KUBE_CONFIG_DATA::$(base64 -w 0 ~/.kube/config) | ||
# env: | ||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
|
||
# - name: Setup Litmus | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# INSTALL_LITMUS: true | ||
|
||
# - name: Running Litmus pod delete chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-delete | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
|
||
# - name: Running container kill chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: container-kill | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# CONTAINER_RUNTIME: containerd | ||
|
||
# - name: Running node-cpu-hog chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: node-cpu-hog | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
|
||
|
||
# - name: Running node-memory-hog chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: node-memory-hog | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
|
||
# - name: Running pod-cpu-hog chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-cpu-hog | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# CPU_CORES: 1 | ||
|
||
# - name: Running pod-memory-hog chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-memory-hog | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# MEMORY_CONSUMPTION: 500 | ||
|
||
# - name: Running pod network corruption chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-network-corruption | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# NETWORK_INTERFACE: eth0 | ||
# CONTAINER_RUNTIME: containerd | ||
|
||
# - name: Running pod network duplication chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-network-duplication | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# NETWORK_INTERFACE: eth0 | ||
# CONTAINER_RUNTIME: containerd | ||
|
||
# - name: Running pod-network-latency chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-network-latency | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# NETWORK_INTERFACE: eth0 | ||
# NETWORK_LATENCY: 60000 | ||
# CONTAINER_RUNTIME: containerd | ||
|
||
# - name: Running pod-network-loss chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-network-loss | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TARGET_CONTAINER: nginx | ||
# TOTAL_CHAOS_DURATION: 60 | ||
# NETWORK_INTERFACE: eth0 | ||
# NETWORK_PACKET_LOSS_PERCENTAGE: 100 | ||
# CONTAINER_RUNTIME: containerd | ||
|
||
# - name: Running pod autoscaler chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: pod-autoscaler | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TOTAL_CHAOS_DURATION: 60 | ||
|
||
# - name: Running node-io-stress chaos experiment | ||
# if: always() | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# EXPERIMENT_NAME: node-io-stress | ||
# EXPERIMENT_IMAGE: litmuschaos/go-runner | ||
# EXPERIMENT_IMAGE_TAG: ci | ||
# IMAGE_PULL_POLICY: IfNotPresent | ||
# JOB_CLEANUP_POLICY: delete | ||
# TOTAL_CHAOS_DURATION: 120 | ||
# FILESYSTEM_UTILIZATION_PERCENTAGE: 10 | ||
|
||
# - name: Uninstall Litmus | ||
# uses: litmuschaos/github-chaos-actions@master | ||
# env: | ||
# LITMUS_CLEANUP: true | ||
|
||
# - name: Deleting KinD cluster | ||
# if: always() | ||
# run: kind delete cluster | ||
|
||
Pod_Level_In_Serial_Mode: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
|
@@ -226,15 +26,28 @@ jobs: | |
- name: Generating Go binary and Building docker image | ||
run: | | ||
make build-amd64 | ||
#Install and configure a kind cluster | ||
- name: Installing Prerequisites (K3S Cluster) | ||
env: | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
- name: Install KinD | ||
run: | | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64 | ||
chmod +x ./kind | ||
mv ./kind /usr/local/bin/kind | ||
- name: Create KinD Cluster | ||
run: | | ||
kind create cluster --config build/kind-cluster/kind-config.yaml | ||
- name: Configuring and testing the Installation | ||
run: | | ||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664 | ||
kubectl taint nodes kind-control-plane node-role.kubernetes.io/control-plane- | ||
kubectl cluster-info --context kind-kind | ||
kubectl wait node --all --for condition=ready --timeout=90s | ||
kubectl get nodes | ||
- name: Load image on the nodes of the cluster | ||
run: | | ||
kind load docker-image --name=kind litmuschaos/go-runner:ci | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: 'litmuschaos/litmus-e2e' | ||
|
@@ -244,21 +57,22 @@ jobs: | |
env: | ||
GO_EXPERIMENT_IMAGE: litmuschaos/go-runner:ci | ||
EXPERIMENT_IMAGE_PULL_POLICY: IfNotPresent | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
KUBECONFIG: /home/runner/.kube/config | ||
run: | | ||
make build-litmus | ||
make app-deploy | ||
make pod-affected-perc-ton-series | ||
- name: Deleting K3S cluster | ||
- name: Deleting KinD cluster | ||
if: always() | ||
run: /usr/local/bin/k3s-uninstall.sh | ||
run: kind delete cluster | ||
|
||
Pod_Level_In_Parallel_Mode: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
|
@@ -269,14 +83,30 @@ jobs: | |
- name: Generating Go binary and Building docker image | ||
run: | | ||
make build-amd64 | ||
#Install and configure a kind cluster | ||
- name: Installing Prerequisites (K3S Cluster) | ||
env: | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
- name: Install KinD | ||
run: | | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64 | ||
chmod +x ./kind | ||
mv ./kind /usr/local/bin/kind | ||
- name: Create KinD Cluster | ||
run: | | ||
kind create cluster --config build/kind-cluster/kind-config.yaml | ||
- name: Configuring and testing the Installation | ||
env: | ||
KUBECONFIG: /home/runner/.kube/config | ||
run: | | ||
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.21.11+k3s1 sh -s - --docker --write-kubeconfig-mode 664 | ||
kubectl taint nodes kind-control-plane node-role.kubernetes.io/control-plane- | ||
kubectl cluster-info --context kind-kind | ||
kubectl wait node --all --for condition=ready --timeout=90s | ||
kubectl get nodes | ||
- name: Load image on the nodes of the cluster | ||
run: | | ||
kind load docker-image --name=kind litmuschaos/go-runner:ci | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: 'litmuschaos/litmus-e2e' | ||
|
@@ -286,21 +116,22 @@ jobs: | |
env: | ||
GO_EXPERIMENT_IMAGE: litmuschaos/go-runner:ci | ||
EXPERIMENT_IMAGE_PULL_POLICY: IfNotPresent | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
KUBECONFIG: /home/runner/.kube/config | ||
run: | | ||
make build-litmus | ||
make app-deploy | ||
make pod-affected-perc-ton-parallel | ||
- name: Deleting K3S cluster | ||
- name: Deleting KinD cluster | ||
if: always() | ||
run: /usr/local/bin/k3s-uninstall.sh | ||
run: kind delete cluster | ||
|
||
Node_Level_Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Install golang | ||
- uses: actions/setup-go@v2 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.18 | ||
|
||
|
@@ -312,8 +143,15 @@ jobs: | |
run: | | ||
make build-amd64 | ||
- name: Install KinD | ||
run: | | ||
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64 | ||
chmod +x ./kind | ||
mv ./kind /usr/local/bin/kind | ||
- name: Create KinD Cluster | ||
run: kind create cluster --config build/kind-cluster/kind-config.yaml | ||
run: | | ||
kind create cluster --config build/kind-cluster/kind-config.yaml | ||
- name: Configuring and testing the Installation | ||
run: | | ||
|
@@ -324,7 +162,7 @@ jobs: | |
- name: Load image on the nodes of the cluster | ||
run: | | ||
kind load docker-image --name=kind litmuschaos/go-runner:ci | ||
kind load docker-image --name=kind litmuschaos/go-runner:ci | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
@@ -355,4 +193,6 @@ jobs: | |
|
||
- name: Deleting KinD cluster | ||
if: always() | ||
run: kind delete cluster | ||
run: | | ||
kubectl get nodes | ||
kind delete cluster |
Oops, something went wrong.