Skip to content

Commit 71dbebb

Browse files
committed
11111111
1 parent 945a79b commit 71dbebb

File tree

14 files changed

+276
-27
lines changed

14 files changed

+276
-27
lines changed

.github/workflows/jetbrains-auto-update.yml

-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
export WS_ENDPOINT=$(jq -r '.inputs.secret_endpoint' $GITHUB_EVENT_PATH)
5757
export GATEWAY_PLUGIN_PATH=$(pwd)/build/gateway-test.zip
5858
59-
echo "$WS_ENDPOINT ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCybpjrskn0GkkjkxgT/OK108wu1UkCkWVkuvA+TEMtjnyNvwPs7PJZwk1N1Isk7F40/1eF3luTixDcvzTn4R6AAWG2/DRbDJTUoy9bV2MH84bB64SMBLYwRUj60e8zF1GFGtQxolrIO75M61qqAM1vCkpEAuLszKIC7xKkYNIVI1sDXAZDrRjn5MdtFSRpeTCN7mt6EvZVtZKPgzUkSiA507w0IxexSX8OEz1UxidMoTagS8wK+U+VaMWJja6bQ6jqzZ7Ou/uCz0Q99q7hFs0cdAh5Q2KNDG518PB750FoUIxWBsniHtRMh2YLtkrYdHhjRVsmg3ltG78hM3iISCbro4avUo3d7IKL97mLAETKxvAwUTn5pcNzk8jSqo51RlmxWHMgE++xNUeuUirhXTzQHSlCcbKsNcdP9gc2jMOQPAiRmHtzLIuHGGwS85M146PsFy6DG/XZOhu9/DhGVMq51NDKs3X8JHzXVGWxmZqLfM9BM+rojvepZgUa5S1mdwE=" >> ~/.ssh/known_hosts
60-
echo "$WS_ENDPOINT ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDMaWYf9zrhI79dA9iBi7qF1anYtUCdT9l0xG2w9oNKHezKuSrJb+pFbHPsL/HuBHK8Yx1HJEufE4uIv//WGCOlCIdW4D40aKhEu5WXtpo8zI0SxkuOvaWDRuUbYNb3/oNNo79WNuhXR6mWn5skm6D+J5vv8H7V5tYrsZf6UqYZF5uLkeQFsis0UVm3+jNFVY/PuHbo6ndrh9DFCQF4YhMQpGTAG0PLal4VLJ4L31TOnb3buBtCWcf3CslT8IiqREdFcJE6MjaMVMCgENQHRWQ57vjv0xKxoI/sA1tMMzD8KrZxC+yB7Qwiby/8iAuhb1Zluh8sxH0NBv8fh1zI8rxbwP5pG3MnTxsCKYpBN01hyuFWtruARfrEGtSMZ4z5oMAFl08BuXSq+e1Ty/dEjfxv2EuG6enU0EJezqJLeCLWqVPZw7hncJD74J4H2pHlk9v3/q9EAD83GY++IChChBLK6wQybEVk+Md7n9GxjCiDAowspSTnq5FHPuKRjDpc1s8=" >> ~/.ssh/known_hosts
6159
mkdir -p ~/Library/Application\ Support/JetBrains/consentOptions
6260
echo -n "rsch.send.usage.stat:1.1:0:1644945193441" > ~/Library/Application\ Support/JetBrains/consentOptions/accepted
6361
mkdir -p ~/Library/Application\ Support/JetBrains/JetBrainsClient/options

.werft/integration-tests-startup.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pod:
8383
echo "using integration-test image: ${INTEGRATION_VERSION}" | werft log slice "test"
8484
8585
86-
TEST_BUILD_ID=$(werft run github -a version=${INTEGRATION_VERSION} -a namespace=staging-gitpod-test-main -j .werft/run-integration-tests-ide.yaml -a testPattern=ide.test github.com/gitpod-io/gitpod:main)
86+
TEST_BUILD_ID=$(werft run github -a version=${INTEGRATION_VERSION} -a namespace=staging-gitpod-test-main -j .werft/run-integration-tests-ide.yaml -a testPattern=vscode.test github.com/gitpod-io/gitpod:main)
8787
8888
echo "running integration, job name: ${TEST_BUILD_ID}" | werft log slice "test"
8989
werft log result -d "integration test job" url "https://werft.gitpod-dev.com/job/${TEST_BUILD_ID}"

.werft/run-integration-tests-ide.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ pod:
6767
secretKeyRef:
6868
name: integration-test-user
6969
key: token
70+
- name: ROBOQUAT_TOKEN
71+
valueFrom:
72+
secretKeyRef:
73+
name: github-roboquat-automatic-changelog
74+
key: token
7075
command:
7176
- /bin/bash
7277
- -c
@@ -76,6 +81,9 @@ pod:
7681
7782
echo "[prep] receiving config..."
7883
export GOOGLE_APPLICATION_CREDENTIALS="/config/gcloud/legacy_credentials/[email protected]/adc.json"
84+
85+
printf '{{ toJson .Annotations }}' > context.json
86+
7987
echo "[prep] received config."
8088
8189
echo "[prep] using username: $USERNAME"

dev/jetbrains-test/build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
33
}
44

5-
group 'org.example'
5+
group 'io.gitpod'
66
version '1.0-SNAPSHOT'
77

88
repositories {
@@ -11,14 +11,14 @@ repositories {
1111
}
1212

1313
test {
14-
systemProperty 'video.save.mode', 'ALL'
15-
systemProperty 'gateway_link', System.getenv('GATEWAY_LINK')
16-
systemProperty 'gateway_plugin_path', System.getenv('GATEWAY_PLUGIN_PATH')
14+
systemProperty('video.save.mode', 'ALL')
15+
systemProperty('gateway_link', System.getenv('GATEWAY_LINK'))
16+
systemProperty('gateway_plugin_path', System.getenv('GATEWAY_PLUGIN_PATH'))
1717
useJUnitPlatform()
1818
}
1919

2020
dependencies {
21-
implementation "org.jetbrains.kotlin:kotlin-stdlib"
21+
implementation("org.jetbrains.kotlin:kotlin-stdlib")
2222

2323
implementation("com.google.code.gson:gson:2.8.9")
2424
implementation("com.squareup.okhttp3:okhttp:4.9.3")
@@ -29,8 +29,8 @@ dependencies {
2929
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
3030

3131
// Logging Network Calls
32-
testImplementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
32+
testImplementation('com.squareup.okhttp3:logging-interceptor:4.9.3')
3333

3434
// Video Recording
35-
implementation 'com.automation-remarks:video-recorder-junit5:2.0'
35+
implementation('com.automation-remarks:video-recorder-junit5:2.0')
3636
}

dev/jetbrains-test/src/test/kotlin/io/gitpod/jetbrains/launcher/CommandLineProjectTest.kt renamed to dev/jetbrains-test/src/test/kotlin/io/gitpod/jetbrains/launcher/GatewayLauncherTest.kt

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import java.util.*
2828
import java.util.prefs.Preferences
2929

3030
@Timeout(value = 25, unit = TimeUnit.MINUTES)
31-
class CommandLineProjectTest {
31+
class GatewayLauncherTest {
3232
companion object {
3333
private var gatewayProcess: Process? = null
3434
private var tmpDir: Path = Files.createTempDirectory("launcher")
@@ -60,6 +60,7 @@ class CommandLineProjectTest {
6060
@Test
6161
@Video
6262
fun test() {
63+
// bypass privacy_policy
6364
setPreferences("jetbrains.privacy_policy.accepted_version", "999.999")
6465
setPreferences("jetbrains.privacy_policy.cwmguesteua_accepted_version", "999.999")
6566
setPreferences("jetbrains.privacy_policy.ij_euaeap_accepted_version", "999.999")
@@ -95,4 +96,8 @@ class CommandLineProjectTest {
9596
log.atInfo().log("remoteRobot available")
9697
Thread.sleep(1000 * 120)
9798
}
98-
}
99+
}
100+
101+
fun RemoteRobot.isAvailable(): Boolean = runCatching {
102+
callJs<Boolean>("true")
103+
}.getOrDefault(false)

dev/jetbrains-test/src/test/kotlin/io/gitpod/jetbrains/launcher/RemoteRobotExt.kt

-7
This file was deleted.

test/go.mod

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ require (
1111
github.com/gitpod-io/gitpod/supervisor/api v0.0.0-00010101000000-000000000000
1212
github.com/gitpod-io/gitpod/ws-manager/api v0.0.0-00010101000000-000000000000
1313
github.com/go-sql-driver/mysql v1.5.0
14+
github.com/google/go-github/v42 v42.0.0
1415
github.com/google/uuid v1.2.0
1516
github.com/prometheus/procfs v0.7.3
17+
golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1
1618
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
1719
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22
1820
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
@@ -56,6 +58,7 @@ require (
5658
github.com/golang/protobuf v1.5.2 // indirect
5759
github.com/google/btree v1.0.1 // indirect
5860
github.com/google/go-cmp v0.5.6 // indirect
61+
github.com/google/go-querystring v1.1.0 // indirect
5962
github.com/google/gofuzz v1.1.0 // indirect
6063
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
6164
github.com/googleapis/gax-go/v2 v2.0.5 // indirect
@@ -110,11 +113,10 @@ require (
110113
go.opencensus.io v0.23.0 // indirect
111114
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
112115
go.uber.org/atomic v1.8.0 // indirect
113-
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
116+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
114117
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
115118
golang.org/x/mod v0.4.2 // indirect
116119
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect
117-
golang.org/x/oauth2 v0.0.0-20210615190721-d04028783cf1 // indirect
118120
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
119121
golang.org/x/text v0.3.6 // indirect
120122
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect

0 commit comments

Comments
 (0)