Fix random failures in e2e job #313
Workflow file for this run
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
# SPDX-FileCopyrightText: The RamenDR authors | |
# SPDX-License-Identifier: Apache-2.0 | |
--- | |
# yamllint disable rule:line-length | |
name: E2E | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
NAME_PREFIX: "rdr-" | |
# Avoid random failures in overloaded runner | |
# TODO: more testing. | |
MAX_WORKERS: 1 | |
jobs: | |
e2e-rdr: | |
runs-on: [self-hosted, e2e-rdr] | |
if: github.repository == 'RamenDR/ramen' && contains(fromJson('["nirs", "ShyamsundarR", "BenamarMk", "raghavendra-talur", "rakeshgm", "ELENAGER", "netzzer", "kseegerrh"]'), github.actor) | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install drenv | |
run: pip install -e test | |
- name: Install ramenctl | |
run: pip install -e ramenctl | |
- name: Build ramen-operator container | |
run: make docker-build | |
- name: Delete clusters | |
if: ${{ always() }} | |
working-directory: test | |
run: drenv delete --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml | |
- name: Setup libvirt | |
run: test/scripts/setup-libvirt | |
- name: Start clusters | |
working-directory: test | |
run: | | |
drenv start --max-workers ${{ env.MAX_WORKERS }} --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml | |
cp ~/.config/drenv/${{ env.NAME_PREFIX }}rdr/config.yaml ../e2e/config.yaml | |
- name: Deploy ramen | |
run: | | |
ramenctl deploy --name-prefix ${{ env.NAME_PREFIX }} test/envs/regional-dr.yaml | |
ramenctl config --name-prefix ${{ env.NAME_PREFIX }} test/envs/regional-dr.yaml | |
- name: Run e2e tests | |
run: make e2e-rdr | |
- name: Delete clusters | |
if: ${{ always() }} | |
working-directory: test | |
run: drenv delete --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml |