Skip to content

Add supportbundle to e2d testing #209

Add supportbundle to e2d testing

Add supportbundle to e2d testing #209

Workflow file for this run

name: End to End
on:
- pull_request
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tests:
- TestBuildBundle
- TestEmbedAndInstall
- TestMultiNodeInstallation
- TestSingleNodeInstallation
- TestTokenBasedMultiNodeInstallation
- TestSingleNodeInstallationRockyLinux8
- TestSingleNodeInstallationDebian12
- TestSingleNodeInstallationCentos8Stream
- TestVersion
- TestMultiNodeInteractiveInstallation
- TestInstallWithDisabledAddons
- TestEmbedAddonsOnly
- TestHostPreflight
steps:
- name: Move Docker aside
run: |
sudo systemctl stop docker
sudo iptables -F
sudo iptables -P FORWARD ACCEPT
- name: Checkout
uses: actions/checkout@v4
- name: Install and Configure LXD
run: |
sudo lxd init --auto
sudo snap set lxd daemon.group=adm
sudo snap restart lxd
sudo lxd waitready
- name: Install and configure OVN
run: |
sudo apt-get update -y
sudo apt-get install ovn-host ovn-central -y
sudo ovs-vsctl set open_vswitch . \
external_ids:ovn-remote=unix:/var/run/ovn/ovnsb_db.sock \
external_ids:ovn-encap-type=geneve \
external_ids:ovn-encap-ip=127.0.0.1
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.0"
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
- name: E2E
run: |
make e2e-test TEST_NAME=${{ matrix.tests }}
- name: install troubleshoot
run: curl -L https://github.com/replicatedhq/troubleshoot/releases/latest/download/support-bundle_linux_amd64.tar.gz | tar xzvf -
if: success() || failure()
- name: collect bundle
run: sudo -E ./support-bundle --interactive=false -o ci-bundle https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/host/cluster-down.yaml https://raw.githubusercontent.com/replicatedhq/troubleshoot-specs/main/in-cluster/default.yaml
if: success() || failure()
- name: Upload support bundle artifact
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: support-bundle
path: 'ci-bundle.tar.gz'