Skip to content

Commit e171dc4

Browse files
committed
fix(workflows): clean up kind-localsetup.yaml by removing commented-out steps
On-behalf-of: @SAP angel.kafazov@sap.com Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
1 parent b4e4c4c commit e171dc4

File tree

1 file changed

+18
-88
lines changed

1 file changed

+18
-88
lines changed

.github/workflows/kind-localsetup.yaml

+18-88
Original file line numberDiff line numberDiff line change
@@ -16,65 +16,15 @@ jobs:
1616
# Step 1: Checkout the code
1717
- uses: actions/checkout@v4
1818

19-
# # Step 2: Install KIND
20-
# - name: Install KIND
21-
# run: |
22-
# # For AMD64 / x86_64
23-
# [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.26.0/kind-linux-amd64
24-
# # For ARM64
25-
# [ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.26.0/kind-linux-arm64
26-
# chmod +x ./kind
27-
# sudo mv ./kind /usr/local/bin/kind
28-
29-
# # Step 3: Verify KIND installation
30-
# - name: Verify KIND installation
31-
# run: kind version
32-
33-
# - name: Install HELM
34-
# run: |
35-
# curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
36-
# chmod 700 get_helm.sh
37-
# ./get_helm.sh
38-
39-
# Step 4: Install github cli
19+
# Step 2: Install github cli
4020
- name: Install the gh cli
4121
uses: ksivamuthu/actions-setup-gh-cli@v3
4222
with:
4323
version: 2.24.3
4424
- run: |
4525
gh version
4626
47-
# # Step 5: generate GH_TOKEN with permissions to pull private images
48-
# - name: Generate a token
49-
# id: generate-token
50-
# uses: actions/create-github-app-token@v1
51-
# with:
52-
# app-id: "838464"
53-
# private-key: ${{ secrets.OPENMFP_PUBLISHER_PRIVATE_KEY }}
54-
# owner: ${{ github.repository_owner }}
55-
# skip-token-revoke: true
56-
# repositories: |
57-
# portal
58-
# helm-charts
59-
# helm-charts-priv
60-
# example-content
61-
# extension-manager-operator
62-
63-
# - uses: peter-evans/create-or-update-comment@v3
64-
# with:
65-
# issue-number: 181
66-
# body: "GH Token created"
67-
# reactions: '+1'
68-
69-
# # Debug step: test docker pull
70-
# - name: Test docker pull
71-
# # GH_TOKEN: ${{ steps.generate-token.outputs.token }}
72-
# # GH_USER: ${{ github.repository_owner }}
73-
# run: |
74-
# docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ steps.generate-token.outputs.token }}
75-
# docker pull ghcr.io/openmfp/portal:0.287.0
76-
77-
# Step 6: Run start.sh
27+
# Step 3: Run start.sh
7828
- name: Run start.sh
7929
id: run_start_sh
8030
env:
@@ -87,52 +37,32 @@ jobs:
8737
./local-setup/scripts/start.sh
8838
continue-on-error: true
8939

90-
# # Debug token with docker
91-
# - name: Debug token with docker
40+
# - name: Debug
41+
# if: steps.run_start_sh.outcome == 'failure'
9242
# run: |
9343
# set -x
94-
# # echo ${{ steps.generate-token.outputs.token }} | base64
95-
# # echo ${{ steps.generate-token.outputs.token }} > token.txt
96-
# # curl -H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" https://api.github.com/user
97-
# # cat token.txt
98-
# # docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ steps.generate-token.outputs.token }}
99-
# # docker pull ghcr.io/openmfp/portal:0.287.0
100-
101-
# curl -H "Authorization: Bearer ${{ secrets.GH_ACCESS_TOKEN }}" https://api.github.com/user
102-
# docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GH_ACCESS_TOKEN }}
103-
# docker pull ghcr.io/openmfp/portal:0.287.0
104-
105-
# debug step 6
106-
- name: Debug6
107-
if: steps.run_start_sh.outcome == 'failure'
108-
run: |
109-
set -x
110-
docker ps
111-
curl -s -i http://localhost:8000/ || true
112-
113-
kubectl get pods -A -o wide
114-
kubectl get svc -A
115-
kubectl get helmreleases -A
116-
kubectl get deployments -A
117-
kubectl get secrets -A
118-
kubectl get crds -A
119-
kubectl get nodes -o wide
120-
44+
# docker ps
45+
# curl -s -i http://localhost:8000/ || true
46+
47+
# kubectl get pods -A -o wide
48+
# kubectl get svc -A
49+
# kubectl get helmreleases -A
50+
# kubectl get deployments -A
51+
# kubectl get secrets -A
52+
# kubectl get crds -A
53+
# kubectl get nodes -o wide
12154
# echo "Describe all pods which are not Running"
12255
# kubectl get pods -A --field-selector=status.phase!=Running -o jsonpath='{range .items[*]}{.metadata.namespace} {.metadata.name}{"\n"}{end}' | while read namespace name; do kubectl describe pod $name -n $namespace; done
123-
12456
# echo "Describe all helmreleases which are not Ready yet"
12557
# kubectl get helmreleases -A -o json | jq -r '.items[] | select(.status.conditions[]? | select(.type == "Ready" and .status != "True")) | "\(.metadata.namespace) \(.metadata.name)"' | while read namespace name; do kubectl describe helmrelease $name -n $namespace; done
126-
12758
# echo "Print imagePullSecret"
12859
# kubectl get secret ghcr-credentials -n openmfp-system -o yaml
129-
13060
# echo "Test docker login and pull"
13161
# docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ steps.generate-token.outputs.token }}
13262
# docker pull ghcr.io/openmfp/portal:0.287.0
13363

13464

135-
# Step 7: Prepare the NodeJS/playwright environment
65+
# Step 4: Prepare the NodeJS/playwright environment
13666
- name: Cache node modules
13767
uses: actions/cache@v3
13868
with:
@@ -141,23 +71,23 @@ jobs:
14171
restore-keys: |
14272
${{ runner.os }}-node-
14373
144-
# Step 8: Install NodeJS and dependencies
74+
# Step 5: Install NodeJS and dependencies
14575
- name: Node ${{ matrix.node-version }}
14676
uses: actions/setup-node@v3
14777
with:
14878
node-version: ${{ matrix.node-version }}
14979
cache: 'npm'
15080
cache-dependency-path: 'local-setup/e2e'
15181

152-
# Step 9: Install npm dependencies
82+
# Step 6: Install npm dependencies
15383
- name: Clean install of npm dependencies
15484
run: |
15585
cd local-setup/e2e
15686
npm install
15787
npm ci
15888
npx playwright install
15989
160-
# Step 10: Run the end-to-end tests
90+
# Step 7: Run the end-to-end tests
16191
- name: End2End tests
16292
run: |
16393
sleep 10

0 commit comments

Comments
 (0)