-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[test] Fix workspace integration tests #17222
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
Conversation
dc44fa9 to
39ef66b
Compare
08a7e5c to
23ce740
Compare
|
@mustard-mh and @akosyakov for 👀 , because I'm changing integration tests (workspace tests have been horribly broken), and adding |
|
On our side if running |
23ce740 to
61fa273
Compare
f293a1c to
8a85a26
Compare
0aee955 to
6b27225
Compare
|
The |
fb33798 to
b9a68fb
Compare
b9a68fb to
87bd305
Compare
Might remove later...
But sometimes there's no team 🤷
We use UBP now, there is no more unleashed. Also, remove the "ff" feature flag code (which was for PVC). It was mutating the username, resulting in Code 460 errors on createWorkspace
Tests intermittently fail with to avoid intermittent failures
This way, we can assert tests are passing for all teams prior to merging
Test to see if flakeyness goes away... ...and bump the timeout because we reduced parallel runs
This: 1. updates from K3s 1.23 to 1.26 2. requires that we remove PodSecurityPolicy changes (as it's no longer supported) 3. resolves intermittent disk pressure issues
* We were getting PSP from rook/ceph, which I think was for PVC * We were getting PSP from the monitoring-satellite
…git actions.
Why? We miss state transitions, it's not guaranteed each one will be returned, and there are other tests waiting.
For example, in the below log, we miss INITIALIZING, RUNNING, and STOPPING.
workspace.go:369: attempt to create the workspace as user 0565bb3c-e724-4da9-84fb-22e2a7b23b8c, with context github.com/gitpod-io/gitpod-test-repo/tree/integration-test/commit
workspace.go:411: attempt to get the workspace information: gitpodio-gitpodtestrepo-nscsowy1njb
workspace.go:423: not preparing
workspace.go:432: got the workspace information: gitpodio-gitpodtestrepo-nscsowy1njb
workspace.go:460: wait for workspace to be fully up and running
workspace.go:569: prepare for a connection with ws-manager
workspace.go:590: established for a connection with ws-manager
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, PENDING
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, PENDING
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
workspace.go:504: waiting for stopping the workspace: 462f1325-3019-4547-8666-508e8353335e
workspace.go:514: attemp to delete the workspace: 462f1325-3019-4547-8666-508e8353335e
workspace.go:797: confirmed the worksapce is stopped: 462f1325-3019-4547-8666-508e8353335e, STOPPED
workspace.go:538: successfully terminated workspace
git_test.go:172: failed to wait for the workspace to start up: cannot wait for workspace: context deadline exceeded
And use trust-manager from the packer image
81d9407 to
a10d7d5
Compare
|
One test intermittently failed here: TestOpenWorkspaceFromOutdatedPrebuild/prebuild/it_should_open_a_workspace_from_with_an_older_prebuild_initializer_successfully_and_run_the_init_task/classic: github.com/gitpod-io/gitpod/test/tests/components/ws-manager Will follow-up in a separate PR. |

Description
Stabilize workspace integration tests (we're down to one failure now, TestGitActions, which intermittently fails), which we'll tackle in a separate PR.
This required that we:
/testto account for recent product changes (likeorganizationIdbeing required forcreateWorkspacewithserver)trust-managermanifests built into the packer image, and modify the startup script, so that it retries applyingtrust-managermanifests to workaround timing issues causing preview environment failures.Also, I've added
/testsub-folders to.github/CODEOWNERS. This should help teams (1) inspect changes (2) assert tests pass before merge to main and (3) collaborate on testing.Related
Fixes WKS-70
Fixes WKS-107
Fixes PDEO-7
#17335
How to test
git checkout -b some-nameto a local branch, and then build a previewTF_VAR_infra_provider="gce" TF_VAR_with_large_vm=true leeway run dev:preview(Why? The branch for this PR is rate limited until May 2 at 6pm EST via Let's Encrypt.)kylos101/gen94-integbranch, with assetkylos101-gen94-integ-gha.8496. Here's a sample run that passed ✔️ .Release Notes
Documentation
Build Options:
Run the build with werft instead of GHA
Run Leeway with
--dont-testPublish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/previewIf enabled this will create the environment on GCE infra
Valid options are
all,workspace,webapp,ide,jetbrains,vscode,ssh/hold