37 Commits

Author SHA1 Message Date
Sven Efftinge
98aff7f782
[server] clean up DB tests (#18333) 2023-07-25 02:38:40 +08:00
Gero Posmyk-Leinemann
cc52d25280
Upgrade yarn packages (#18128)
* [ts] Pin mimimatch and minimist

* [server] Update minio

* [ts] Remove superfluous node-pre-gyp dep

* [ts] Pin jsonwebtoken to 9.0.0

* [grpc] Update grpc-toolsis

* [ts] Upgrade from mocha-typescript to  @testdeck/mocha

* fix rimraf
2023-07-03 14:47:19 +08:00
Sven Efftinge
248a00eaa8
[server] clean up org-only migration code (#17939) 2023-06-22 15:03:12 +08:00
Sven Efftinge
f840049dbf
[db] directly delete workspaces (#17400) 2023-04-27 15:30:35 +08:00
Sven Efftinge
c44aa18c28
[workspace list] filter by org (#17228) 2023-04-17 17:48:49 +08:00
Sven Efftinge
7de05704b2 [server] set organizationid on workspace creation 2023-02-09 15:55:14 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
91ad8a3550 [pvc] remove pvc related code 2022-12-01 09:07:00 -03:00
Andrew Farries
767344ddaf Red: Add tests for findVolumeSnapshotById
Add tests (`testCantFindDeletedVolumeSnapshotById` fails).

The failing test is due to `findVolumeSnapshotById` not taking deleted
entries into account.
2022-09-30 08:39:30 +02:00
Andrew Farries
f94023e069 Red: Add deleted vol snapshots to the test setup
For each workspaceId, add a deleted volume snapshot.
2022-09-30 08:39:30 +02:00
Andrew Farries
acb056967f Soft delete volume snapshot db entries
Replace the existing hard-deletion of volume snapshot rows in the
database with soft-deletion that will allow `db-sync` to propagate
deletions between clusters.
2022-09-30 08:39:30 +02:00
Gero Posmyk-Leinemann
a7fd1becd6 [server] Delete Workspaces & Workspace Instances after configured period 2022-09-15 15:27:16 +02:00
Christian Weichel
48aff21449 [ws-manager-bridge] Use WS update status version 2022-07-08 20:23:55 +05:30
Jan Keromnes
59cbf53956 [gitpod-db][server] Refactor workspace instance 'attributedTeamId' to an explicit, not-team-specific 'usageAttributionId' 2022-06-24 14:38:33 +05:30
Jan Keromnes
71813fe752 [db] Persist attributed teamId on workspace instances (for usage analytics / billing purposes) 2022-06-16 12:58:25 +05:30
Alex Tugarev
9f247ca70f [prebuild] cap updateables to be processed
Also, mark updatable as resolved if commit is gone.
2022-06-15 15:31:24 +05:30
Pavel Tumik
dc111f3996 add limit to volume snapshot GC 2022-06-15 02:37:25 +05:30
Pavel Tumik
7a7792f531 volume snapshot delete and restore support, garbage collection 2022-06-15 02:37:25 +05:30
André Duarte
ff84252286 Fix tests 2022-06-08 14:49:18 +05:30
Sven Efftinge
1bf277a17f [prebuilds] no prebuilds for inactive repos 2022-05-19 15:33:33 +05:30
Alex Tugarev
680932745a Revert "[prebuilds] no prebuilds for inactive repos"
This reverts commit 72aa5e0aa8c30b4e000f86d65f2c14667d13de1d.
2022-05-12 13:23:27 +05:30
Sven Efftinge
72aa5e0aa8 [prebuilds] no prebuilds for inactive repos 2022-05-11 23:12:26 +05:30
Milan Pavlik
bb216d29b8 fix tests 2022-04-05 13:52:18 +05:30
Milan Pavlik
845e66c56b Format components/gitpod-db with prettier 2022-03-14 21:48:21 +05:30
Andrew Farries
54a765d321 Add rate limits for prebuilds
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
2022-03-08 19:40:15 +05:30
Laurie T. Malau
31efabc38b Remove free text search on contextURL 2022-03-02 16:34:09 +05:30
Gero Posmyk-Leinemann
de773037b3 [db] Make workspace DB tests run reliably
At some point we used db.transaction(...) for all tests, which is not necessary, and also breaks certain queries
2021-10-21 04:04:58 -03:00
Gero Posmyk-Leinemann
b463ee43dc [admin] Optimize adminGetWorkspaces 2021-10-21 04:04:58 -03:00
Sven Efftinge
1223b62396 [gitpod-db] added more tests 2021-09-28 05:48:45 -03:00
Sven Efftinge
a8032856a4 [t&p] add workspaces to teams
fixes #4921
2021-09-27 11:48:44 -03:00
Christian Weichel
d63f0f4585 [bridge] Set stoppingTime when workspace is stopping
there's no need to include the time our workspaces take to stop into account
when computing workspace runtime (which is accounting relevant).
2021-07-20 11:31:24 +02:00
Mads Hartmann
169fd4b807
Extend admin workspace search (#4111)
* Extend workspace admin search

Extend search conditions to include instance UUID and workspace ID

Fixes #3992

* Update placeholder

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Use title capitalisation for placeholder test

Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
2021-06-09 09:48:28 +02:00
Mads Hartmann
b43fbfa22f
Add tests for findAllWorkspaceAndInstances (#4120)
* Add test for findAllWorkspaceAndInstances

The test is currently failing with a missing database error. I think
this is a problem with the test database setup rather than the specific
test

* Resolve failing test

Turns out that TypeORM column names are case sensitive when used for
ordering. The error message is terrible

    Cannot read property 'databaseName' of undefined

In this case we used contextUrl and it should have been contextURL.

While column names in mysql are case insensitive I also fixed one other
occurrence of contextUrl even though it is not necessary; but using the
column names makes it easier to find when searching for references etc.

* Add a launch configuration for db-test

* Add more assertions to the test
2021-05-28 13:58:32 +02:00
Autofix
af51739d34 Autofix: trailing-spaces 2021-04-12 08:29:10 +02:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Christian Weichel
1cfd7759f7 [server] Respect "feature preview" feature flags
and make the IDE image persist on the instance,
not the workspace.

/werft https
2020-11-17 14:10:21 +01:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00