Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterative CI development #73

Open
wants to merge 3 commits into
base: aidanhahn/envoy-pytest-ci
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/actions/execute-pytests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "execute emissary pytests"
runs:
using: "composite"
steps:
- run: echo "PREFIX=pytest-${{ matrix.test }}-legacy-mode.${{ matrix.pytest-settings.legacy-mode }}-fast-reconfigure.${{ matrix.pytest-settings.fast-reconfigure }}" >> $GITHUB_ENV
- run: echo "PREFIX=pytest-${{ matrix.test }}" >> $GITHUB_ENV
name: Set Unique Test prefix ${{ env.PREFIX }}
shell: bash
- run: echo "USE_LOCAL_K3S_CLUSTER=1" >> $GITHUB_ENV
Expand Down Expand Up @@ -50,16 +50,14 @@ runs:
if test -e ~/.kube/kubeception.yaml; then
echo 'DEV_KUBECONFIG=~/.kube/kubeception.yaml' >> $GITHUB_ENV
fi
- name: make pytest-${{ matrix.test }} (legacy-mode:${{ matrix.pytest-settings.legacy-mode }}, fast-reconfigure:${{ matrix.pytest-settings.fast-reconfigure }} )
- name: make pytest-${{ matrix.test }}
uses: nick-invision/[email protected]
with:
max_attempts: 3
timeout_minutes: 20
command: |
export DEV_KUBE_NO_PVC=yes
export KAT_REQ_LIMIT=900
export AMBASSADOR_LEGACY_MODE=${{ matrix.pytest-settings.legacy-mode }}
export AMBASSADOR_FAST_RECONFIGURE=${{ matrix.pytest-settings.fast-reconfigure }}
export TEST_XML_DIR=/tmp/test-logs/xml/
export DEV_KUBECONFIG=~/.kube/kubeception.yaml
export DEV_REGISTRY=${{ env.DEV_REGISTRY }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pytest-settings:
- {legacy-mode: true, fast-reconfigure: false}
- {legacy-mode: false, fast-reconfigure: true}
- {legacy-mode: false, fast-reconfigure: false}
test: [envoy-ah, envoy-v2-ah, envoy-ip, envoy-v2-ip, envoy-qz, envoy-v2-qz]

steps:
- name: Clone Emissary
shell: bash
run: |
set -x
git config --global --remove-section url."ssh://[email protected]" || true
git config --global "url.https://[email protected]/.insteadOf" [email protected]:
git clone [email protected]:emissary-ingress/emissary /tmp/emissary

- name: Modify Emissary makefile
Expand Down