23 Commits

Author SHA1 Message Date
Manuel Alejandro de Brito Fontes
687f337899
Enable leader election in ws-manager-mk2 (v3) (#18539)
* Enable leader election in ws-manager-mk2

* Update go modules

* Move workspace activity to CRD

* Remove workspace activity

* Cleanup

* Update ws-manager-mk2 CRD

* Cleanup

* Restore lastActivity logic

* TEST

* Disable observability

* Start the grpc server after leader election

* Bount the source of subscribers to an informer

* Cleanup

* Avoid deepCopy

* Remove goroutine to execute OnReconcile

* Refactor last activity to be consistent acrtoss the controllers

* Address feedback
2023-08-26 22:28:52 +02:00
Manuel Alejandro de Brito Fontes
7e3ccd1197
Revert "Enable leader election in ws-manager-mk2 (#18511)" (#18537)
This reverts commit 2838b782309bb22b9341b2cf7ead718fc34bcba8.
2023-08-17 13:02:43 +02:00
Manuel Alejandro de Brito Fontes
2838b78230
Enable leader election in ws-manager-mk2 (#18511)
* Enable leader election in wa-manager-mk2

* Switch to four parallel tests

* Cleanup

* Update activity started time after leader election

* Count maintenance test failures

* Wait before updating the activity started time
2023-08-17 11:13:43 +02:00
Wouter Verlaek
435e5dc58c
[test] IO Limits (#18127)
* WIP

* Test IO Limit
2023-07-04 22:26:21 +08:00
Wouter Verlaek
4e39e2563e
[test] Fix disk pressure, run in parallel (#18138)
* [test] Enable parallel runs in GHA

* Fix upload, improve gitpod status log

* [test] Fix disk pressure, increase parallelism

* Fix output dir

* Only add local SSDs for large VM, more parallel
2023-07-03 19:12:20 +08:00
Wouter Verlaek
0e1d54ea66
[test] E2e test fixes and improvements (#18049)
* WIP

* Increase DB port-forward timeout

* Run in parallel

* Fix status checking

* Check if preview is ready, increase timeouts

* Fix panic

* Upload test results, increase node disk size

* Output installer version

* Increase timeout, log pod status

* Undo iostream changes

* Include stdout/err in copy failure

* Fix err

* Set max idle DB connections to 0

* Improve logging and retry agent copy

* Always upload test results

* Fix WaitForStopped sometimes failing due to describe not finding workspace

* Add components to check, change disk size to 256
2023-06-28 23:40:46 +08:00
Huiwen
96707ad301
[integration-test] ignore exit code of pkill (#18078) 2023-06-27 22:56:51 +08:00
Wouter Verlaek
51b33d2813
[test] Update slack msg to include nr skipped (#17995) 2023-06-21 06:41:11 +08:00
Kyle Brennan
7be2965db9
[test] update convenience script to manually run tests & remove werft test scripts/references (#17854)
* Fix run.sh to use go-junit-report, and avoid werft mostly, except for secrets

* View results with xunit-viewer

* Remove werft integration test script/automation

* Exclude test output

* Create results folder if doesn't exit

* Empty

* [test] match the github action workflow `go test` params

* [test] install xunit-viewer once & clean-up rogue ports at the end

* [test] fix TestOpenWorkspaceFromOutdatedPrebuild

Because of:
--- FAIL: TestOpenWorkspaceFromOutdatedPrebuild (26.72s)
    --- FAIL: TestOpenWorkspaceFromOutdatedPrebuild/prebuild (26.72s)
        --- FAIL: TestOpenWorkspaceFromOutdatedPrebuild/prebuild/it_should_open_a_workspace_from_with_an_older_prebuild_initializer_successfully_and_run_the_init_task (26.72s)
            --- FAIL: TestOpenWorkspaceFromOutdatedPrebuild/prebuild/it_should_open_a_workspace_from_with_an_older_prebuild_initializer_successfully_and_run_the_init_task/classic (26.72s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x259345e]

* Use absolute results dir

* Make results dir per run

---------

Co-authored-by: WVerlaek <wouter@gitpod.io>
2023-06-21 01:35:10 +08:00
Anton Kosyakov
bf65f38734
[proxy] add analytics endpoint 2023-04-17 10:28:19 +02:00
Anton Kosyakov
ffa75e5536 [jb] support running tests agaist latest backend version 2023-03-29 09:58:31 +02:00
utam0k
7ca2e3bbfc test: Several test cases are supported for reporting 2022-12-19 03:24:28 -03:00
utam0k
2792326b9b test: support the report option 2022-12-19 03:24:28 -03:00
JenTing Hsiao
dfc399b13c Revert "test: fix workspace only ran ws-manager integration test"
This reverts commit bdddbb99fff829f76758f9cdae6888d3d570066a.
2022-11-24 21:56:54 -03:00
JenTing Hsiao
bdddbb99ff test: fix workspace only ran ws-manager integration test
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-11-24 11:25:53 -03:00
JenTing Hsiao
4f91a24112 test: support namespace overwrites from env var
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-11-23 06:37:53 -03:00
Wouter Verlaek
371b4acf79 [tests] Fix parallel workspace tests failure catching 2022-11-15 16:30:45 +02:00
utam0k
acc24b8449 test: Parallel workspace integration tests 2022-11-14 02:46:43 +02:00
utam0k
b70a622bfa test: Launch up to two workspaces simultaneously in parallel
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-11-14 02:46:43 +02:00
Andrea Falzetti
d687ec2b0c chore: split IDE integration tests 2022-11-09 08:49:38 +01:00
Andrea Falzetti
bc0ab37a54 feat: add integration tests for ssh gateway 2022-10-21 20:41:36 +02:00
Mads Hartmann
cf1962b70b Fix typo
Co-authored-by: Gero Posmyk-Leinemann <32448529+geropl@users.noreply.github.com>
2022-09-19 11:27:20 +02:00
Mads Hartmann
d335058c6b Fix ability to run integration tests in Werft 2022-09-19 11:27:20 +02:00