Skip to content

Commit

Permalink
ci: debug with tmate
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaser committed Aug 2, 2023
1 parent be46e5f commit a415f5e
Showing 1 changed file with 64 additions and 61 deletions.
125 changes: 64 additions & 61 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ jobs:
fail-fast: false
matrix:
kube:
- v1.23.17
- v1.24.15
- v1.25.11
- v1.26.6
# - v1.23.17
# - v1.24.15
# - v1.25.11
# - v1.26.6
- v1.27.3
steps:
- name: Checkout project
Expand All @@ -154,6 +154,9 @@ jobs:
pip install -U setuptools pip
$HOME/.local/bin/pip3 install -e .
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Build image
run: |
magnum-cluster-api-image-builder
Expand All @@ -168,60 +171,60 @@ jobs:
name: ubuntu-2204-kube-${{ matrix.kube }}.qcow2
path: ubuntu-2204-kube-${{ matrix.kube }}.qcow2

functional:
runs-on: ubuntu-latest-16-cores
strategy:
fail-fast: false
matrix:
kube:
- v1.23.17
- v1.24.15
- v1.25.11
- v1.26.6
- v1.27.3
concurrency:
group: ${{ github.ref }}-${{ matrix.kube }}
cancel-in-progress: true
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Clean-up node
run: sudo apt-get purge -y postgresql* mysql-*

- name: Install Magnum with Cluster API
run: ./hack/stack.sh

# - name: Setup "tmate" session
# uses: mxschmitt/action-tmate@v3

- name: Wait for images
if: contains(github.event.pull_request.body, '/build-new-image')
uses: lewagon/wait-on-check-action@v1.3.1
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: "build-images (${{ matrix.kube }})"
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10

- name: Download built image
if: contains(github.event.pull_request.body, '/build-new-image')
uses: actions/download-artifact@v3
with:
name: ubuntu-2204-kube-${{ matrix.kube }}.qcow2

- name: Run functional tests
run: |
./hack/run-functional-tests.sh
env:
BUILD_NEW_IMAGE: "${{ contains(github.event.pull_request.body, '/build-new-image') }}"
KUBE_TAG: "${{ matrix.kube }}"
NODE_COUNT: 2

- name: Upload Sonobuoy results
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: "sonobuoy-results-${{ matrix.kube }}"
path: sonobuoy-results.tar.gz
# functional:
# runs-on: ubuntu-latest-16-cores
# strategy:
# fail-fast: false
# matrix:
# kube:
# - v1.23.17
# - v1.24.15
# - v1.25.11
# - v1.26.6
# - v1.27.3
# concurrency:
# group: ${{ github.ref }}-${{ matrix.kube }}
# cancel-in-progress: true
# steps:
# - name: Checkout project
# uses: actions/checkout@v3

# - name: Clean-up node
# run: sudo apt-get purge -y postgresql* mysql-*

# - name: Install Magnum with Cluster API
# run: ./hack/stack.sh

# # - name: Setup "tmate" session
# # uses: mxschmitt/action-tmate@v3

# - name: Wait for images
# if: contains(github.event.pull_request.body, '/build-new-image')
# uses: lewagon/wait-on-check-action@v1.3.1
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# check-name: "build-images (${{ matrix.kube }})"
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# wait-interval: 10

# - name: Download built image
# if: contains(github.event.pull_request.body, '/build-new-image')
# uses: actions/download-artifact@v3
# with:
# name: ubuntu-2204-kube-${{ matrix.kube }}.qcow2

# - name: Run functional tests
# run: |
# ./hack/run-functional-tests.sh
# env:
# BUILD_NEW_IMAGE: "${{ contains(github.event.pull_request.body, '/build-new-image') }}"
# KUBE_TAG: "${{ matrix.kube }}"
# NODE_COUNT: 2

# - name: Upload Sonobuoy results
# uses: actions/upload-artifact@v3
# if: always()
# continue-on-error: true
# with:
# name: "sonobuoy-results-${{ matrix.kube }}"
# path: sonobuoy-results.tar.gz

0 comments on commit a415f5e

Please sign in to comment.