Skip to content

[tests] Move workspace integration tests to Github Actions #16872

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 2 commits into from
Mar 16, 2023

Conversation

kylos101
Copy link
Contributor

@kylos101 kylos101 commented Mar 16, 2023

Description

Triggering tests via werft continues to break / is brittle. Let's move to Github Actions, copying from IDE team, but manage Workspace secret via GCP Secrets Manager.

As background, Workspace integration tests last worked as of March 10. They may have been broke here.

Related Issue(s)

Fixes # n/a

How to test

Merge this to main, and then test.
@vulkoingim , is there a better way to test?
@iQQBot how do you iterate with your Github Actions for Gitpod? From a fork?

Release Notes

NONE

Documentation

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we merge this PR to main and then iterate on it afterwards lets keep the scripts for werft for the time being until the GHA workflow is tested

PREVIEW_ENV_DEV_SA_KEY: ${{ secrets.GCP_CREDENTIALS }}
PREVIEW_NAME: ${{ needs.configuration.outputs.name }}
run: |
set -euo pipefail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be cleaner to keep this script in a separate bash file, and run that file here. That way we keep e.g. syntax highlighting, bash linting, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in a follow-on PR, or, if I have trouble getting having the tests run general. So, expect another PR. ;)

@kylos101 kylos101 force-pushed the kylos101/wks-integ-fix branch from c10f86c to 47084ed Compare March 16, 2023 15:55
@roboquat roboquat added size/L and removed size/XL labels Mar 16, 2023
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's visible from a workspace, thanks Github extension!

@roboquat roboquat merged commit 58b3d60 into main Mar 16, 2023
@roboquat roboquat deleted the kylos101/wks-integ-fix branch March 16, 2023 16:01
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note-none size/L team: workspace Issue belongs to the Workspace team
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants