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

Add sharding to Fleet deployments in CI workflows running end-to-end tests #2405

Merged
merged 2 commits into from
May 7, 2024
Merged
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
4 changes: 3 additions & 1 deletion .github/workflows/aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ jobs:
run: |
export KUBECONFIG="$GITHUB_WORKSPACE/kubeconfig-fleet-ci"
echo "${{ steps.meta-fleet.outputs.tags }} ${{ steps.meta-fleet-agent.outputs.tags }}"
./.github/scripts/deploy-fleet.sh ${{ steps.meta-fleet.outputs.tags }} ${{ steps.meta-fleet-agent.outputs.tags }}
SHARDS="shard1,shard2,shard3" ./.github/scripts/deploy-fleet.sh \
${{ steps.meta-fleet.outputs.tags }} \
${{ steps.meta-fleet-agent.outputs.tags }}
-
name: Fleet E2E Tests
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ jobs:
name: Deploy Fleet
run: |
echo "${{ steps.meta-fleet.outputs.tags }} ${{ steps.meta-fleet-agent.outputs.tags }}"
./.github/scripts/deploy-fleet.sh ${{ steps.meta-fleet.outputs.tags }} ${{ steps.meta-fleet-agent.outputs.tags }}
SHARDS="shard1,shard2,shard3" ./.github/scripts/deploy-fleet.sh \
${{ steps.meta-fleet.outputs.tags }} \
${{ steps.meta-fleet-agent.outputs.tags }}
-
name: Fleet E2E Tests
env:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
-
name: Deploy Fleet
run: |
./.github/scripts/deploy-fleet.sh
SHARDS="shard1,shard2,shard3" ./.github/scripts/deploy-fleet.sh
-
name: Create Zot certificates for OCI tests
if: ${{ matrix.test_type == 'e2e-nosecrets' }}
Expand All @@ -109,21 +109,24 @@ jobs:
# 1. Run test cases not needing infra
ginkgo --label-filter='!infra-setup' e2e/single-cluster e2e/keep-resources

# 2. Run tests requiring only the git server
# 2. Run tests for metrics
ginkgo e2e/metrics

# 3. Run tests requiring only the git server
e2e/testenv/infra/infra setup --git-server=true
ginkgo --label-filter='infra-setup && !helm-registry && !oci-registry' e2e/single-cluster/

# 3. Run tests requiring a Helm registry
# 4. Run tests requiring a Helm registry
e2e/testenv/infra/infra setup --helm-registry=true
ginkgo --label-filter='helm-registry' e2e/single-cluster

e2e/testenv/infra/infra teardown --helm-registry=true

# 4. Run tests requiring an OCI registry
# 5. Run tests requiring an OCI registry
e2e/testenv/infra/infra setup --oci-registry=true
ginkgo --label-filter='oci-registry' e2e/single-cluster

# 5. Tear down all infra
# 6. Tear down all infra
e2e/testenv/infra/infra teardown
-
name: Acceptance Tests for Examples
Expand Down
Loading