Skip to content

Commit b5d28df

Browse files
committed
appwrapper adjustments to GitHub Actions
1 parent 1f9b224 commit b5d28df

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.github/workflows/e2e_tests.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
- name: Setup and start KinD cluster
5656
uses: ./common/github-actions/kind
5757

58+
- name: Deploy Kueue
59+
run: |
60+
make kueue-e2e
61+
5862
- name: Deploy CodeFlare stack
5963
id: deploy
6064
run: |
@@ -86,6 +90,13 @@ jobs:
8690
echo "Printing CodeFlare operator logs"
8791
kubectl logs -n openshift-operators --tail -1 -l app.kubernetes.io/name=codeflare-operator | tee ${CODEFLARE_TEST_OUTPUT_DIR}/codeflare-operator.log
8892
93+
- name: Print Kueue operator logs
94+
if: always() && steps.deploy.outcome == 'success'
95+
run: |
96+
echo "Printing Kueue operator logs"
97+
KUEUE_CONTROLLER_POD=$(kubectl get pods -n kueue-system | grep kueue-controller | awk '{print $1}')
98+
kubectl logs -n kueue-system --tail -1 ${KUEUE_CONTROLLER_POD} | tee ${CODEFLARE_TEST_OUTPUT_DIR}/kueue.log
99+
89100
- name: Print KubeRay operator logs
90101
if: always() && steps.deploy.outcome == 'success'
91102
run: |

.github/workflows/project-codeflare-release.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
codeflare-sdk-version:
1414
description: 'Version of CodeFlare-SDK to be released (for example: v0.0.0)'
1515
required: true
16+
appwrapper-version:
17+
description: 'Tested version of AppWrapper (for example: v0.0.0)'
18+
required: true
1619
kuberay-version:
1720
description: 'Tested version of KubeRay (for example: v0.0.0)'
1821
required: true
@@ -43,14 +46,15 @@ jobs:
4346
echo "Operator Version: ${{ github.event.inputs.operator-version }}"
4447
echo "Replaces: ${{ github.event.inputs.replaces }}"
4548
echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
49+
echo "Tested AppWrapper Version: ${{ github.event.inputs.appwrapper-version }}"
4650
echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
4751
echo "Is Stable: ${{ github.event.inputs.is-stable }}"
4852
echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
4953
echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
5054
echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
5155
5256
release-codeflare-sdk:
53-
needs: check-kuberay-version
57+
needs: [check-appwrapper-version, check-kuberay-version]
5458
runs-on: ubuntu-latest
5559

5660
steps:
@@ -90,7 +94,7 @@ jobs:
9094
steps:
9195
- name: Release CodeFlare operator
9296
run: |
93-
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }}
97+
gh workflow run tag-and-build.yml --repo ${{ github.event.inputs.codeflare-repository-organization }}/codeflare-operator --ref ${{ github.ref }} --field is-stable=${{ github.event.inputs.is-stable }} --field version=${{ github.event.inputs.operator-version }} --field replaces=${{ github.event.inputs.replaces }} --field codeflare-sdk-version=${{ github.event.inputs.codeflare-sdk-version }} --field appwrapper-version=${{ github.event.inputs.appwrapper-version }} --field kuberay-version=${{ github.event.inputs.kuberay-version }} --field quay-organization=${{ github.event.inputs.quay-organization }} --field community-operators-prod-fork-organization=${{ github.event.inputs.codeflare-repository-organization }} --field community-operators-prod-organization=${{ github.event.inputs.community-operators-prod-organization }}
9498
env:
9599
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
96100
shell: bash
@@ -105,6 +109,20 @@ jobs:
105109
GITHUB_TOKEN: ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
106110
shell: bash
107111

112+
check-appwrapper-version:
113+
runs-on: ubuntu-latest
114+
115+
steps:
116+
- name: Check if AppWrapper release exists
117+
run: |
118+
status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/project-codeflare/appwrapper/releases/tag/${{ github.event.inputs.appwrapper-version }})
119+
if [[ "$status_code" == "200" ]]; then
120+
echo "AppWrapper release with version ${{ github.event.inputs.appwrapper-version }} exists and available to use."
121+
else
122+
echo "AppWrapper release with version ${{ github.event.inputs.appwrapper-version }} does not exist. Please select an existing version."
123+
exit 1
124+
fi
125+
108126
check-kuberay-version:
109127
runs-on: ubuntu-latest
110128

.github/workflows/tag-and-build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
description: 'Published version of CodeFlare-SDK'
1717
required: true
1818
default: 'v0.0.0-dev'
19+
appwrapper-version:
20+
description: 'Tested version of AppWrapper'
21+
required: true
22+
default: 'v0.0.0-dev'
1923
kuberay-version:
2024
description: 'Tested version of KubeRay'
2125
required: true
@@ -83,8 +87,13 @@ jobs:
8387
run: |
8488
sed -i -E "s|(.*CodeFlare Operator.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.version }}\2${{ github.event.inputs.version }}\3|" README.md
8589
sed -i -E "s|(.*CodeFlare-SDK.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.codeflare-sdk-version }}\2${{ github.event.inputs.codeflare-sdk-version }}\3|" README.md
90+
sed -i -E "s|(.*AppWrapper.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.appwrapper-version }}\2${{ github.event.inputs.appwrapper-version }}\3|" README.md
8691
sed -i -E "s|(.*KubeRay.*\[).*(\].*releases/tag/).*(\).*)|\1${{ github.event.inputs.kuberay-version }}\2${{ github.event.inputs.kuberay-version }}\3|" README.md
8792
93+
- name: Adjust AppWrapper dependency in the code
94+
run: |
95+
sed -i -E "s/(.*APPWRAPPER_VERSION \?= ).*/\1${{ github.event.inputs.appwrapper-version }}/" Makefile
96+
8897
- name: Adjust Kuberay dependency in the code
8998
run: |
9099
sed -i -E "s/(.*KUBERAY_VERSION \?= ).*/\1${{ github.event.inputs.kuberay-version }}/" Makefile

0 commit comments

Comments
 (0)