Skip to content

[gha] fix ide integration tests #16898

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
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
49 changes: 35 additions & 14 deletions .github/workflows/ide-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,43 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: main branch build failed
check:
name: Check for regressions
needs: [configuration]
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: harvester
large_vm: true
sa_key: ${{ secrets.GCP_CREDENTIALS }}
- name: Deploy Gitpod to the preview environment
if: github.event.inputs.skip_deploy != 'true'
id: deploy-gitpod
if: github.event.inputs.skip_deploy != 'true'
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]
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: Integration Test
shell: bash
env:
Expand Down Expand Up @@ -153,9 +167,16 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: ${{ steps.test_summary.outputs.passed }}/${{ steps.test_summary.outputs.total }} tests passed
- name: Delete preview environment
if: github.event.inputs.skip_delete != 'true' && (success() || failure())
uses: ./.github/actions/delete-preview
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}

delete:
name: Delete preview environment
needs: [ configuration, infrastructure, check ]
if: github.event.inputs.skip_delete != 'true' && always()
runs-on: [ self-hosted ]
steps:
- uses: actions/checkout@v3
- name: Delete preview environment
uses: ./.github/actions/delete-preview
with:
name: ${{ needs.configuration.outputs.name }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}