Skip to content

Commit 93eed5f

Browse files
committed
Add label team=workspace
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent c15e884 commit 93eed5f

File tree

14 files changed

+32
-13
lines changed

14 files changed

+32
-13
lines changed

test/tests/workspace/cgroup_v2_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import (
2424

2525
func TestCgroupV2(t *testing.T) {
2626
f := features.New("cgroup v2").
27-
WithLabel("component", "workspace").
27+
WithLabel("team", "workspace").
28+
WithLabel("component", "runtime").
2829
Assess("it should create a new cgroup when cgroup v2 is enabled", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2930
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
3031
defer cancel()

test/tests/workspace/content-service/content-service_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func TestUploadUrl(t *testing.T) {
6363
}
6464

6565
f := features.New("UploadUrlRequest").
66+
WithLabel("team", "workspace").
6667
WithLabel("component", "content-service").
6768
Assess("it should run content-service tests", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
6869
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
@@ -123,7 +124,8 @@ func TestDownloadUrl(t *testing.T) {
123124
}
124125

125126
f := features.New("DownloadUrl").
126-
WithLabel("component", "server").
127+
WithLabel("team", "workspace").
128+
WithLabel("component", "content-service").
127129
Assess("it should pass download URL tests", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
128130
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
129131
defer cancel()
@@ -169,7 +171,8 @@ func TestDownloadUrl(t *testing.T) {
169171

170172
func TestUploadDownloadBlob(t *testing.T) {
171173
f := features.New("UploadDownloadBlob").
172-
WithLabel("component", "server").
174+
WithLabel("team", "workspace").
175+
WithLabel("component", "content-service").
173176
Assess("it should upload and download blob", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
174177
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
175178
defer cancel()
@@ -218,7 +221,8 @@ func TestUploadDownloadBlob(t *testing.T) {
218221
func TestUploadDownloadBlobViaServer(t *testing.T) {
219222
integration.SkipWithoutUsername(t, username)
220223
f := features.New("UploadDownloadBlobViaServer").
221-
WithLabel("component", "content-server").
224+
WithLabel("team", "workspace").
225+
WithLabel("component", "content-service").
222226
Assess("it should uploads a blob via server → content-server and downloads it afterwards", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
223227
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
224228
defer cancel()

test/tests/workspace/contexts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func TestGitLabContexts(t *testing.T) {
9696
func runContextTests(t *testing.T, tests []ContextTest) {
9797
integration.SkipWithoutUsername(t, username)
9898
f := features.New("context").
99-
WithLabel("component", "server").
99+
WithLabel("team", "workspace").
100100
Assess("should run context tests", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
101101
for _, test := range tests {
102102
t.Run(test.ContextURL, func(t *testing.T) {

test/tests/workspace/docker_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818

1919
func TestRunDocker(t *testing.T) {
2020
f := features.New("docker").
21-
WithLabel("component", "workspace").
21+
WithLabel("team", "workspace").
22+
WithLabel("component", "runtime").
2223
Assess("it should start a container", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2324
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
2425
defer cancel()

test/tests/workspace/example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
func TestWorkspaceInstrumentation(t *testing.T) {
2020
integration.SkipWithoutUsername(t, username)
2121
f := features.New("instrumentation").
22-
WithLabel("component", "server").
22+
WithLabel("team", "workspace").
2323
Assess("it can instrument a workspace", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2424
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
2525
defer cancel()
@@ -62,7 +62,7 @@ func TestWorkspaceInstrumentation(t *testing.T) {
6262

6363
func TestLaunchWorkspaceDirectly(t *testing.T) {
6464
f := features.New("workspace").
65-
WithLabel("component", "server").
65+
WithLabel("team", "workspace").
6666
Assess("it can run workspace tasks", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
6767
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
6868
defer cancel()

test/tests/workspace/git_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ func TestGitActions(t *testing.T) {
9898
}
9999

100100
f := features.New("GitActions").
101-
WithLabel("component", "server").
101+
WithLabel("team", "workspace").
102+
WithLabel("component", "git").
102103
Assess("it can run git actions", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
103104
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
104105
defer cancel()

test/tests/workspace/image-builder/builder_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
func TestBaseImageBuild(t *testing.T) {
2525
f := features.New("database").
26+
WithLabel("team", "workspace").
2627
WithLabel("component", "image-builder").
2728
Assess("it should build a base image", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2829
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
@@ -99,6 +100,7 @@ func TestBaseImageBuild(t *testing.T) {
99100

100101
func TestParallelBaseImageBuild(t *testing.T) {
101102
f := features.New("image-builder").
103+
WithLabel("team", "workspace").
102104
WithLabel("component", "image-builder").
103105
Assess("it should allow parallel build of images", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
104106
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)

test/tests/workspace/k3s_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import (
1919

2020
func TestK3s(t *testing.T) {
2121
f := features.New("k3s").
22-
WithLabel("component", "workspace").
22+
WithLabel("team", "workspace").
23+
WithLabel("component", "k3s").
2324
Assess("it should start a k3s when cgroup v2 enable", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2425
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
2526
defer cancel()

test/tests/workspace/mount_proc_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func loadMountProc(t *testing.T, rsa *rpc.Client) {
4646

4747
func TestMountProc(t *testing.T) {
4848
f := features.New("proc mount").
49-
WithLabel("component", "workspace").
49+
WithLabel("team", "workspace").
50+
WithLabel("component", "mount").
5051
Assess("load test proc mount", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
5152
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
5253
defer cancel()

test/tests/workspace/ws-daemon/storage_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919

2020
func TestCreateBucket(t *testing.T) {
2121
f := features.New("DaemonAgent.CreateBucket").
22+
WithLabel("team", "workspace").
2223
WithLabel("component", "ws-daemon").
2324
Assess("it should create a bucket", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2425
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)

test/tests/workspace/ws-manager/content_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
// TestBackup tests a basic start/modify/restart cycle
2323
func TestBackup(t *testing.T) {
2424
f := features.New("backup").
25+
WithLabel("team", "workspace").
26+
WithLabel("component", "ws-manager").
2527
Assess("it should start a workspace, create a file and successfully create a backup", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2628
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
2729
defer cancel()
@@ -136,7 +138,8 @@ func TestBackup(t *testing.T) {
136138
// TestMissingBackup ensures workspaces fail if they should have a backup but don't have one
137139
func TestMissingBackup(t *testing.T) {
138140
f := features.New("CreateWorkspace").
139-
WithLabel("component", "server").
141+
WithLabel("team", "workspace").
142+
WithLabel("component", "ws-manager").
140143
Assess("it can run workspace tasks", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
141144
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
142145
defer cancel()

test/tests/workspace/ws-manager/prebuild_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818

1919
func TestPrebuildWorkspaceTaskSuccess(t *testing.T) {
2020
f := features.New("prebuild").
21+
WithLabel("team", "workspace").
2122
WithLabel("component", "ws-manager").
2223
Assess("it should create a prebuild and succeed the defined tasks", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2324
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
@@ -55,7 +56,8 @@ func TestPrebuildWorkspaceTaskFail(t *testing.T) {
5556
t.Skip("status never returns HeadlessTaskFailed (exit 1)")
5657

5758
f := features.New("prebuild").
58-
WithLabel("component", "server").
59+
WithLabel("team", "workspace").
60+
WithLabel("component", "ws-manager").
5961
Assess("it should create a prebuild and fail after running the defined tasks", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
6062
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
6163
defer cancel()

test/tests/workspace/ws-manager/tasks_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ func TestRegularWorkspaceTasks(t *testing.T) {
4646
}
4747

4848
f := features.New("ws-manager").
49+
WithLabel("team", "workspace").
4950
WithLabel("component", "ws-manager").
5051
WithLabel("type", "tasks").
5152
Assess("it can run workspace tasks", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {

test/tests/workspace/ws-manager/wsmanager_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818

1919
func TestGetWorkspaces(t *testing.T) {
2020
f := features.New("workspaces").
21+
WithLabel("team", "workspace").
2122
WithLabel("component", "ws-manager").
2223
Assess("it should get workspaces", func(_ context.Context, t *testing.T, cfg *envconf.Config) context.Context {
2324
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)

0 commit comments

Comments
 (0)