Skip to content

[integration-test] Add supervisor task status test #9968

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 1 commit into from
May 12, 2022
Merged

Conversation

princerachit
Copy link
Contributor

@princerachit princerachit commented May 12, 2022

Description

Add supervisor task status test.

Related Issue(s)

Fixes #9575

How to test

./dev/preview/install-k3s-kubeconfig.sh

# Run integration test
cd test
gitpod /workspace/gitpod/test (prs/test-fix) $ go test -v ./... \
>    -kubeconfig=/home/gitpod/.kube/config \
>    -namespace=default \
>    -run=TestRegularWorkspaceTasks
?       github.com/gitpod-io/gitpod/test/pkg/agent/daemon       [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/daemon/api   [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/workspace    [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/agent/workspace/api        [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/integration        [no test files]
?       github.com/gitpod-io/gitpod/test/pkg/integration/common [no test files]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/content-service       3.206s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/database      3.150s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/image-builder 3.198s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/server        3.214s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/ws-daemon     2.984s [no tests to run]
=== RUN   TestRegularWorkspaceTasks
=== RUN   TestRegularWorkspaceTasks/ws-manager
=== RUN   TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks
=== RUN   TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/init
    tasks_test.go:137: file in workspace: .cargo
    tasks_test.go:137: file in workspace: .gitpod
    tasks_test.go:137: file in workspace: .vscode-remote
    tasks_test.go:137: file in workspace: init-ran
=== RUN   TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/before
    tasks_test.go:137: file in workspace: .cargo
    tasks_test.go:137: file in workspace: .gitpod
    tasks_test.go:137: file in workspace: .vscode-remote
    tasks_test.go:137: file in workspace: before-ran
=== RUN   TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/command
    tasks_test.go:137: file in workspace: .cargo
    tasks_test.go:137: file in workspace: .gitpod
    tasks_test.go:137: file in workspace: .vscode-remote
    tasks_test.go:137: file in workspace: command-ran
--- PASS: TestRegularWorkspaceTasks (73.32s)
    --- PASS: TestRegularWorkspaceTasks/ws-manager (73.32s)
        --- PASS: TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks (73.32s)
            --- PASS: TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/init (25.23s)
            --- PASS: TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/before (23.92s)
            --- PASS: TestRegularWorkspaceTasks/ws-manager/it_can_run_workspace_tasks/command (24.17s)
PASS
ok      github.com/gitpod-io/gitpod/test/tests/components/ws-manager    76.450s
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/ide/jetbrains    3.031s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/ide/vscode       2.994s [no tests to run]
testing: warning: no tests to run
PASS
ok      github.com/gitpod-io/gitpod/test/tests/workspace        3.216s [no tests to run]
?       github.com/gitpod-io/gitpod/test/tests/workspace/common [no test files]

Release Notes

None

Documentation

@princerachit
Copy link
Contributor Author

princerachit commented May 12, 2022

Blocked on this error from testing this PR https://gitpod.slack.com/archives/C032A46PWR0/p1652349992307799

Fixed

@princerachit princerachit requested a review from jenting May 12, 2022 10:08
@princerachit princerachit marked this pull request as ready for review May 12, 2022 10:37
@princerachit princerachit requested a review from a team May 12, 2022 11:38
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label May 12, 2022
Copy link
Contributor

@jenting jenting left a comment

Choose a reason for hiding this comment

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

/lgtm Thank you @princerachit

@roboquat roboquat merged commit 3939796 into main May 12, 2022
@roboquat roboquat deleted the prs/test-fix branch May 12, 2022 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none size/M team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix broken integration test TestRegularWorkspaceTasks
3 participants