-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7956dec
commit 3f8c2e9
Showing
8 changed files
with
1,028 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,7 @@ distribute-*.tar.gz | |
*.xml | ||
|
||
*.iml | ||
|
||
.venv/ | ||
|
||
.devenv/ |
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 |
---|---|---|
|
@@ -12,37 +12,38 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install kubectl | ||
uses: azure/setup-kubectl@v3 | ||
- name: Install nix | ||
uses: cachix/install-nix-action@v24 | ||
with: | ||
version: "v1.22.17" | ||
extra_nix_config: | | ||
accept-flake-config = true | ||
- name: Build docker image | ||
run: | | ||
docker build -t banzai:test-latest . | ||
- name: Start a Kind cluster | ||
uses: helm/[email protected] | ||
- name: Setup cachix | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
cluster_name: kind | ||
version: "v0.19.0" | ||
node_image: kindest/node:v1.22.17@sha256:9af784f45a584f6b28bce2af84c494d947a05bd709151466489008f80a9ce9d5 | ||
wait: "600s" | ||
name: lco-public | ||
extraPullNames: devenv | ||
skipPush: true | ||
|
||
- name: Copy docker image to nodes | ||
run: | | ||
kind load docker-image banzai:test-latest | ||
- name: Expose GitHub Runtime | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Start banzai | ||
run: | | ||
cat banzai/tests/e2e-k8s.yaml | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
# Deploy banzai stack | ||
kubectl apply -f banzai/tests/e2e-k8s.yaml | ||
- name: Start Kind cluster | ||
shell: nix develop --impure --command bash -e {0} | ||
run: | | ||
kind-create-cluster | ||
# Wait for banzai to be ready | ||
kubectl wait --for=condition=Ready --timeout=60m pod/banzai-e2e-test | ||
- name: Deploy Banzai w/ Skaffold | ||
env: | ||
SKAFFOLD_BUILDX_ARGS: "--cache-to type=gha,mode=max,ignore-error=true --cache-from type=gha" | ||
shell: nix develop --impure --command bash -e {0} | ||
run: | | ||
skaffold -p e2e run | ||
- name: Test Master Bias Creation | ||
shell: nix develop --impure --command bash -e {0} | ||
run: | | ||
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai.tests --durations=0 --junitxml=/archive/engineering/pytest-master-bias.xml -m master_bias |
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 |
---|---|---|
|
@@ -75,3 +75,5 @@ distribute-*.tar.gz | |
*.iml | ||
|
||
.coverage.subprocess | ||
|
||
.devenv/ |
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
Oops, something went wrong.