Skip to content

Commit

Permalink
Merge pull request #85 from rgdoliveira/sync_main
Browse files Browse the repository at this point in the history
Sync main branch with Apache main branch
  • Loading branch information
rgdoliveira authored Oct 3, 2024
2 parents 39aee78 + 6246c83 commit baf9663
Show file tree
Hide file tree
Showing 243 changed files with 43,326 additions and 36,981 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-container-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
REGISTRY_STORAGE_DELETE_ENABLED : true
GO_VERSION: 1.21
GO_VERSION: 1.22

jobs:
unit-tests:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

jobs:
unit-tests:
Expand Down
49 changes: 32 additions & 17 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: 1.22
PYTHON_VERSION: "3.10"
KIND_VERSION: v0.20.0
KNATIVE_VERSION: v1.12.5
OPERATOR_IMAGE_NAME: "127.0.0.1:5001/kogito-serverless-operator:0.0.1"

jobs:
Expand All @@ -25,9 +26,10 @@ jobs:
cancel-in-progress: true
timeout-minutes: 120
runs-on: ubuntu-latest
name: End-to-end tests (Kind)
name: End-to-End Tests (Kind)

steps:
- name: Install dependencies
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install --no-install-recommends \
Expand All @@ -36,6 +38,7 @@ jobs:
libbtrfs-dev \
libdevmapper-dev \
libkrb5-dev
- name: Checkout Code
uses: actions/checkout@v3
with:
Expand All @@ -47,7 +50,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Setup Python for cekit
- name: Setup Python for Cekit
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -59,46 +62,58 @@ jobs:
pip install -r images/requirements.txt
cekit --version
- name: Setup Kind cluster
run: make KIND_VERSION=${{ env.KIND_VERSION }} create-cluster
- name: Setup Kind Cluster
run: make KIND_VERSION=${{ env.KIND_VERSION }} BUILDER=docker create-cluster

- name: Deploy Knative Eventing and Serving
run: make KNATIVE_VERSION=${{ env.KNATIVE_VERSION }} deploy-knative

- name: Set OPERATOR_IMAGE_NAME to point to Kind's local registry
- name: Set OPERATOR_IMAGE_NAME to Point to Kind's Local Registry
run: echo "OPERATOR_IMAGE_NAME=${{ env.OPERATOR_IMAGE_NAME }}" >> $GITHUB_ENV

- name: Build and load operator image
- name: Build and Load Operator Image
run: |
make container-build BUILDER=docker IMG=${{ env.OPERATOR_IMAGE_NAME }}
kind load docker-image ${{ env.OPERATOR_IMAGE_NAME }}
- name: Check pods
- name: Check Pods
run: |
kubectl version
kubectl get pods -A
- name: Deploy operator
- name: Deploy Operator
run: |
make deploy IMG=${{ env.OPERATOR_IMAGE_NAME }}
kubectl wait pod -A -l control-plane=sonataflow-operator --for condition=Ready
- name: Run tests
run: make test-e2e
- name: Run E2E Tests for Non-Persistent Flows
run: make test-e2e label=flows-non-persistence

- name: Run E2E Tests for Persistent Flows
run: make test-e2e label=flows-persistence

- name: Run E2E Tests for Platform
run: make test-e2e label=platform

- name: Run E2E Tests for Cluster Platform
run: make test-e2e label=cluster

- name: Retrieve cluster events and list pods
- name: Get KIND Logs After Failure
if: failure()
run: |
kubectl get events
kubectl get pod -A
- name: Export kind logs
- name: Export KIND Logs
if: always()
run: |
mkdir -p /tmp/kind/logs
kind export logs --loglevel=debug /tmp/kind/logs
- name: Upload kind logs
- name: Upload KIND Logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }}
name: kind-logs-${{ job.name }}-${{ github.run_id }}
path: /tmp/kind/logs
retention-days: 1
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Dockerfile
/.idea/
/.vscode/
/target/
/__debug*
database/

database/index.db
e2e-test-report*.xml
*.tar
*.tar
Loading

0 comments on commit baf9663

Please sign in to comment.