Skip to content

[codex] Polish elastic workload positioning #106

[codex] Polish elastic workload positioning

[codex] Polish elastic workload positioning #106

Workflow file for this run

name: Flame CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
concurrency:
group: flame-k8s-e2e-${{ github.ref }}
cancel-in-progress: true
env:
CLICOLOR_FORCE: 1
DOCKER_BUILDKIT: 1
IMAGE_REGISTRY: xflops
IMAGE_TAG: ci
jobs:
ci:
name: Kubernetes E2E Test
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Helm
uses: azure/setup-helm@v4
- name: Create Kind cluster
uses: helm/kind-action@v1
with:
cluster_name: flame
config: ci/kind.yaml
wait: 120s
- name: Build Flame images
run: |
docker build -t ${IMAGE_REGISTRY}/flame-session-manager:${IMAGE_TAG} -f docker/Dockerfile.fsm .
docker build -t ${IMAGE_REGISTRY}/flame-object-cache:${IMAGE_TAG} -f docker/Dockerfile.foc .
docker build -t ${IMAGE_REGISTRY}/flame-executor-manager:${IMAGE_TAG} -f docker/Dockerfile.fem .
docker build -t ${IMAGE_REGISTRY}/flame-console:${IMAGE_TAG} -f docker/Dockerfile.console .
- name: Load images into Kind
run: |
kind load docker-image ${IMAGE_REGISTRY}/flame-session-manager:${IMAGE_TAG} --name flame
kind load docker-image ${IMAGE_REGISTRY}/flame-object-cache:${IMAGE_TAG} --name flame
kind load docker-image ${IMAGE_REGISTRY}/flame-executor-manager:${IMAGE_TAG} --name flame
kind load docker-image ${IMAGE_REGISTRY}/flame-console:${IMAGE_TAG} --name flame
- name: Run Kubernetes e2e
run: ci/k8s/e2e.sh
- name: Print Kubernetes diagnostics
if: failure() || cancelled()
run: |
kubectl -n flame-k8s-e2e get all,pvc || true
kubectl -n flame-k8s-e2e get events --sort-by=.lastTimestamp || true
kubectl -n flame-k8s-e2e logs -l app.kubernetes.io/component=session-manager --all-containers --tail=500 || true
kubectl -n flame-k8s-e2e logs -l app.kubernetes.io/component=object-cache --all-containers --tail=500 || true
kubectl -n flame-k8s-e2e logs -l app.kubernetes.io/component=executor-manager --all-containers --tail=500 || true