Skip to content

Commit

Permalink
wip: e2e on arm, render manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-sakhnov committed Oct 29, 2024
1 parent de15f89 commit e66aad5
Showing 1 changed file with 56 additions and 53 deletions.
109 changes: 56 additions & 53 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,64 +72,67 @@ jobs:
tag: ${{ inputs.tag || needs.get-tag.outputs.tag }}
secrets: inherit

# e2e-tests:
# needs: [ build-images, build-test-vm ]
# strategy:
# fail-fast: false
# matrix:
# cluster:
# - ${{ inputs.cluster || 'k3d' }}
# runs-on: [ self-hosted, gen3, large ]
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0 # fetch all, so that we also include tags
e2e-tests:
needs: [ build-images, build-test-vm ]
strategy:
fail-fast: false
matrix:
cluster:
- ${{ inputs.cluster || 'k3d' }}
arch: [ amd64, arm64 ]

runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', matrix.arch == 'arm64' && 'large-arm64' || 'large')) }}

# - uses: actions/setup-go@v5
# with:
# go-version-file: 'go.mod'
# # Disable cache on self-hosted runners to avoid /usr/bin/tar errors, see https://github.com/actions/setup-go/issues/403
# cache: false
# # Sometimes setup-go gets stuck. Without this, it'll keep going until the job gets killed
# timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all, so that we also include tags

# - name: Install dependencies
# run: |
# sudo apt install -y python3-venv
# make e2e-tools
# echo $(pwd)/bin >> $GITHUB_PATH
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
# Disable cache on self-hosted runners to avoid /usr/bin/tar errors, see https://github.com/actions/setup-go/issues/403
cache: false
# Sometimes setup-go gets stuck. Without this, it'll keep going until the job gets killed
timeout-minutes: 10

# - name: Check dependencies
# run: |
# kubectl version --client --output=yaml
# k3d version
# kind version
# kuttl version
# docker version
- name: Install dependencies
run: |
sudo apt install -y python3-venv
make e2e-tools
echo $(pwd)/bin >> $GITHUB_PATH
# - run: make render-release
# env:
# IMG_CONTROLLER: ${{ needs.build-images.outputs.controller }}
# IMG_VXLAN_CONTROLLER: ${{ needs.build-images.outputs.vxlan-controller }}
# IMG_RUNNER: ${{ needs.build-images.outputs.runner }}
# IMG_SCHEDULER: ${{ needs.build-images.outputs.scheduler }}
# IMG_AUTOSCALER_AGENT: ${{ needs.build-images.outputs.autoscaler-agent }}
- name: Check dependencies
run: |
kubectl version --client --output=yaml
k3d version
kind version
kuttl version
docker version
# - name: upload manifests
# # nb: use format(..) to catch both inputs.push-yamls = true AND inputs.push-yamls = 'true'.
# if: ${{ format('{0}', inputs.push-yamls) == 'true' }}
# uses: actions/upload-artifact@v4
# with:
# name: rendered_manifests
# # nb: prefix before wildcard is removed from the uploaded files, so the artifact should
# # contain e.g.
# # - autoscale-scheduler.yaml
# # - autoscaler-agent.yaml
# # ...
# # ref https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
# path: rendered_manifests/*
# if-no-files-found: error
# retention-days: 2 # minimum is 1 day; 0 is default. These are only used temporarily.
- run: make render-release
env:
IMG_CONTROLLER: ${{ needs.build-images.outputs.controller }}
IMG_VXLAN_CONTROLLER: ${{ needs.build-images.outputs.vxlan-controller }}
IMG_RUNNER: ${{ needs.build-images.outputs.runner }}
IMG_SCHEDULER: ${{ needs.build-images.outputs.scheduler }}
IMG_AUTOSCALER_AGENT: ${{ needs.build-images.outputs.autoscaler-agent }}

- name: upload manifests
# nb: use format(..) to catch both inputs.push-yamls = true AND inputs.push-yamls = 'true'.
if: ${{ format('{0}', inputs.push-yamls) == 'true' }}
uses: actions/upload-artifact@v4
with:
name: rendered_manifests
# nb: prefix before wildcard is removed from the uploaded files, so the artifact should
# contain e.g.
# - autoscale-scheduler.yaml
# - autoscaler-agent.yaml
# ...
# ref https://github.com/actions/upload-artifact#upload-using-multiple-paths-and-exclusions
path: rendered_manifests/*
if-no-files-found: error
retention-days: 2 # minimum is 1 day; 0 is default. These are only used temporarily.

# - name: set custom docker config directory
# uses: ./.github/actions/set-docker-config-dir
Expand Down

0 comments on commit e66aad5

Please sign in to comment.