Skip to content

[preview] pass context to rollout status #16886

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

Merged
merged 1 commit into from
Mar 17, 2023
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
40 changes: 31 additions & 9 deletions .github/workflows/preview-env-check-regressions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
description: "The infrastructure provider to use. Valid options: harvester, gcp"
required: false
default: harvester

jobs:
configuration:
name: Configuration
Expand Down Expand Up @@ -46,29 +47,43 @@ jobs:
echo "skip=${{ github.event.workflow_run.conclusion == 'failure' }}"
} >> $GITHUB_OUTPUT
fi
check:
name: Check for regressions
needs: [configuration]
if: ${{ needs.configuration.outputs.skip == 'false' }}
runs-on: [self-hosted]
container:
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:kylos101-kubecdl-home.1

infrastructure:
name: Create preview environment infrastructure
needs: [ configuration ]
runs-on: [ self-hosted ]
concurrency:
group: ${{ github.head_ref || github.ref_name }}-infrastructure
steps:
- uses: actions/checkout@v3
- name: Create preview environment infrastructure
id: create
uses: ./.github/actions/preview-create
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}
infrastructure_provider: ${{ needs.configuration.outputs.infrastructure_provider }}
large_vm: false
sa_key: ${{ secrets.GCP_CREDENTIALS }}
- name: Deploy Gitpod to the preview environment
id: deploy-gitpod
uses: ./.github/actions/deploy-gitpod
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}
version: ${{ needs.configuration.outputs.version}}

check:
name: Check for regressions
needs: [configuration, infrastructure]
if: ${{ needs.configuration.outputs.skip == 'false' }}
runs-on: [self-hosted]
container:
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:kylos101-kubecdl-home.1
volumes:
- /var/tmp:/var/tmp
- /tmp:/tmp
steps:
- uses: actions/checkout@v3
- name: Check
shell: bash
env:
Expand Down Expand Up @@ -142,8 +157,15 @@ jobs:
SLACK_WEBHOOK: '${{ steps.secrets.outputs.devx-slack-webhook }}'
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "`${{ needs.configuration.outputs.version}}` smoke test failed"

delete:
name: Delete preview environment
needs: [ configuration, infrastructure, check ]
if: always()
runs-on: [ self-hosted ]
steps:
- uses: actions/checkout@v3
- name: Delete preview environment
if: always()
uses: ./.github/actions/delete-preview
with:
name: ${{ needs.configuration.outputs.name }}
Expand Down
2 changes: 1 addition & 1 deletion dev/preview/workflow/preview/deploy-gitpod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ rm -f "${INSTALLER_RENDER_PATH}"
# Wait for objects to be ready
# =========================
for item in deployment.apps/blobserve deployment.apps/content-service deployment.apps/dashboard deployment.apps/ide-metrics deployment.apps/ide-proxy deployment.apps/ide-service deployment.apps/image-builder-mk3 deployment.apps/minio deployment.apps/node-labeler deployment.apps/payment-endpoint deployment.apps/proxy deployment.apps/public-api-server deployment.apps/redis deployment.apps/server deployment.apps/spicedb deployment.apps/usage deployment.apps/ws-manager deployment.apps/ws-manager-bridge deployment.apps/ws-proxy statefulset.apps/messagebus statefulset.apps/mysql statefulset.apps/openvsx-proxy daemonset.apps/agent-smith daemonset.apps/fluent-bit daemonset.apps/registry-facade daemonset.apps/ws-daemon; do
kubectl rollout status "${item}"
kubectl --kubeconfig "${PREVIEW_K3S_KUBE_PATH}" --context "${PREVIEW_K3S_KUBE_CONTEXT}" rollout status "${item}"
done

# =====================
Expand Down