Skip to content

Commit 42c1a99

Browse files
authored
build(251): bump build target to beta 2 (#5372)
1 parent 447296a commit 42c1a99

File tree

21 files changed

+123
-35
lines changed

21 files changed

+123
-35
lines changed

buildSrc/src/main/kotlin/software/aws/toolkits/gradle/intellij/IdeVersions.kt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ object IdeVersions {
127127
),
128128
marketplacePlugins = listOf(
129129
"org.toml.lang:242.20224.155",
130-
"Pythonid:242.20224.300",
130+
"PythonCore:242.20224.300",
131131
"org.jetbrains.plugins.go:242.20224.300",
132132
)
133133
),
@@ -183,42 +183,40 @@ object IdeVersions {
183183
Profile(
184184
name = "2025.1",
185185
gateway = ProductProfile(
186-
sdkVersion = "251.14649-EAP-CANDIDATE-SNAPSHOT",
186+
sdkVersion = "251.23774-EAP-CANDIDATE-SNAPSHOT",
187187
bundledPlugins = listOf("org.jetbrains.plugins.terminal")
188188
),
189189
community = ProductProfile(
190-
sdkVersion = "251.14649-EAP-CANDIDATE-SNAPSHOT",
190+
sdkVersion = "251.23774.109-EAP-SNAPSHOT",
191191
bundledPlugins = commonPlugins + listOf(
192192
"com.intellij.java",
193193
"com.intellij.gradle",
194194
"org.jetbrains.idea.maven",
195195
),
196196
marketplacePlugins = listOf(
197-
"org.toml.lang:251.14649.45",
198-
"PythonCore:251.14649.49",
199-
"Docker:251.14649.49"
197+
"PythonCore:251.23774.109",
198+
"Docker:251.23774.109"
200199
)
201200
),
202201
ultimate = ProductProfile(
203-
sdkVersion = "251.14649-EAP-CANDIDATE-SNAPSHOT",
202+
sdkVersion = "251.23774.109-EAP-SNAPSHOT",
204203
bundledPlugins = commonPlugins + listOf(
205204
"JavaScript",
206205
"JavaScriptDebugger",
207206
"com.intellij.database",
208207
"com.jetbrains.codeWithMe",
209208
),
210209
marketplacePlugins = listOf(
211-
"org.toml.lang:251.14649.45",
212-
"Pythonid:251.14649.49",
213-
"org.jetbrains.plugins.go:251.14649.49",
210+
"Pythonid:251.23774.109",
211+
"org.jetbrains.plugins.go:251.23774.109",
214212
)
215213
),
216214
rider = RiderProfile(
217-
sdkVersion = "2025.1-EAP1-SNAPSHOT",
215+
sdkVersion = "2025.1-EAP8-SNAPSHOT",
218216
bundledPlugins = commonPlugins,
219217
netFrameworkTarget = "net472",
220-
rdGenVersion = "2024.3.1",
221-
nugetVersion = " 2025.1.0-eap01"
218+
rdGenVersion = "2025.1.1",
219+
nugetVersion = " 2025.1.0-eap08"
222220
)
223221
),
224222
).associateBy { it.name }

buildSrc/src/main/kotlin/toolkit-intellij-subplugin.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,22 @@ dependencies {
103103
}
104104
}
105105

106+
tasks.prepareTestSandbox {
107+
disabledPlugins.addAll(
108+
"com.intellij.swagger",
109+
"org.jetbrains.plugins.kotlin.jupyter",
110+
)
111+
}
112+
106113
tasks.jar {
107114
// :plugin-toolkit:jetbrains-community results in: --plugin-toolkit-jetbrains-community-IC-<version>.jar
108115
archiveBaseName.set(toolkitIntelliJ.ideFlavor.map { "${project.buildTreePath.replace(':', '-')}-$it" })
109116
}
110117

111118
tasks.withType<Test>().configureEach {
119+
// conflict with Docker logging impl; so bypass service loader
120+
systemProperty("slf4j.provider", "org.slf4j.jul.JULServiceProvider")
121+
112122
systemProperty("log.dir", intellijPlatform.sandboxContainer.map { "$it-test/logs" }.get())
113123
systemProperty("testDataPath", project.rootDir.resolve("testdata").absolutePath)
114124
val jetbrainsCoreTestResources = project(":plugin-toolkit:jetbrains-core").projectDir.resolve("tst-resources")

buildspec/linuxTests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ env:
1313
phases:
1414
install:
1515
commands:
16+
- |
17+
>/home/codebuild-user/.gradle/gradle.properties echo "
18+
org.gradle.jvmargs=-Xmx4g
19+
kotlin.daemon.jvmargs=-Xmx4g
20+
"
1621
- useradd codebuild-user
1722
- dnf install -y acl
1823
- chown -R codebuild-user:codebuild-user /codebuild/output

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toolkitVersion=3.61-SNAPSHOT
88
publishToken=
99
publishChannel=
1010

11-
ideProfileName=2024.3
11+
ideProfileName=2025.1
1212

1313
remoteRobotPort=8080
1414

@@ -18,8 +18,8 @@ kotlin.code.style=official
1818
# Gradle settings
1919
org.gradle.parallel=true
2020
org.gradle.caching=true
21-
org.gradle.jvmargs=-Xmx2048m
22-
kotlin.daemon.jvmargs=-Xmx2048m
21+
org.gradle.jvmargs=-Xmx4g
22+
kotlin.daemon.jvmargs=-Xmx1500m -Xms500m
2323

2424
# prefer non-enterprise variant of test-retry
2525
systemProp.develocity.testretry.enabled=false

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ detekt = "1.23.7"
1010
diff-util = "4.12"
1111
intellijExt = "1.1.8"
1212
# match with <root>/settings.gradle.kts
13-
intellijGradle = "2.2.1"
13+
intellijGradle = "2.3.0"
1414
intellijRemoteRobot = "0.11.22"
1515
jackson = "2.17.2"
1616
jacoco = "0.8.12"

gradle/wrapper/gradle-wrapper.jar

79 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

plugins/amazonq/codewhisperer/jetbrains-ultimate/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies {
2020
compileOnly(project(":plugin-amazonq:shared:jetbrains-ultimate"))
2121

2222
compileOnly(project(":plugin-core:jetbrains-ultimate"))
23+
testCompileOnly(project(":plugin-core:jetbrains-ultimate"))
2324

2425
testImplementation(testFixtures(project(":plugin-amazonq:codewhisperer:jetbrains-community")))
2526
testImplementation(project(path = ":plugin-toolkit:jetbrains-ultimate", configuration = "testArtifacts"))

plugins/amazonq/codewhisperer/jetbrains-ultimate/tst/software/aws/toolkits/jetbrains/services/codewhisperer/importadder/CodeWhispererJSImportAdderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
package software.aws.toolkits.jetbrains.services.codewhisperer.importadder
55

66
import com.intellij.lang.ecmascript6.psi.ES6ImportDeclaration
7-
import com.intellij.lang.javascript.JavascriptLanguage
87
import com.intellij.psi.PsiElement
98
import com.intellij.psi.PsiFile
109
import com.intellij.psi.PsiFileFactory
1110
import com.intellij.psi.util.PsiTreeUtil
1211
import com.intellij.testFramework.runInEdtAndGet
1312
import com.intellij.testFramework.runInEdtAndWait
13+
import compat.com.intellij.lang.javascript.JavascriptLanguage
1414
import org.assertj.core.api.Assertions.assertThat
1515
import org.junit.Test
1616
import software.aws.toolkits.jetbrains.utils.rules.NodeJsCodeInsightTestFixtureRule
@@ -242,7 +242,7 @@ class CodeWhispererJSImportAdderTest : CodeWhispererImportAdderTestBase(
242242
private fun createImport(statement: String): PsiElement =
243243
runInEdtAndGet {
244244
val fileFactory = PsiFileFactory.getInstance(projectRule.project)
245-
val dummyFile = fileFactory.createFileFromText("dummy.js", JavascriptLanguage.INSTANCE, statement)
245+
val dummyFile = fileFactory.createFileFromText("dummy.js", JavascriptLanguage, statement)
246246
val importDeclarations = PsiTreeUtil.getChildrenOfType(dummyFile, ES6ImportDeclaration::class.java)
247247
importDeclarations?.first() ?: fail()
248248
}

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/credentials/profiles/ProfileWatcherTest.kt

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
package software.aws.toolkits.jetbrains.core.credentials.profiles
55

6-
import com.intellij.openapi.Disposable
76
import com.intellij.openapi.util.Disposer
87
import com.intellij.openapi.util.Ref
98
import com.intellij.openapi.vfs.LocalFileSystem
@@ -13,14 +12,17 @@ import com.intellij.openapi.vfs.newvfs.RefreshQueue
1312
import com.intellij.testFramework.ApplicationRule
1413
import com.intellij.testFramework.DisposableRule
1514
import org.assertj.core.api.Assertions.assertThat
15+
import org.junit.AssumptionViolatedException
1616
import org.junit.Before
1717
import org.junit.ClassRule
1818
import org.junit.Rule
1919
import org.junit.Test
2020
import org.junit.rules.TemporaryFolder
21+
import org.opentest4j.AssertionFailedError
2122
import software.aws.toolkits.core.rules.SystemPropertyHelper
2223
import software.aws.toolkits.jetbrains.utils.spinUntil
2324
import java.io.File
25+
import java.io.IOException
2426
import java.time.Duration
2527
import java.util.concurrent.CountDownLatch
2628
import java.util.concurrent.TimeUnit
@@ -56,6 +58,22 @@ class ProfileWatcherTest {
5658

5759
System.getProperties().setProperty("aws.configFile", profileFile.absolutePath)
5860
System.getProperties().setProperty("aws.sharedCredentialsFile", credentialsFile.absolutePath)
61+
62+
try {
63+
assertFileChange {
64+
profileFile.parentFile.mkdirs()
65+
profileFile.writeText("Test")
66+
profileFile.parentFile.deleteRecursively()
67+
}
68+
} catch (e: Throwable) {
69+
if (e is AssertionFailedError) {
70+
// suppress
71+
} else if (e.cause is IOException) {
72+
throw AssumptionViolatedException("native file watcher is not executable; possibly an issue with intellij-platform-gradle-plugin", e)
73+
} else {
74+
throw e
75+
}
76+
}
5977
}
6078

6179
@Test
@@ -106,15 +124,14 @@ class ProfileWatcherTest {
106124
private fun assertFileChange(block: () -> Unit) {
107125
val fileWatcher = (LocalFileSystem.getInstance() as LocalFileSystemImpl).fileWatcher
108126
Disposer.register(
109-
disposableRule.disposable,
110-
Disposable {
111-
fileWatcher.shutdown()
127+
disposableRule.disposable
128+
) {
129+
fileWatcher.shutdown()
112130

113-
spinUntil(Duration.ofSeconds(10)) {
114-
!fileWatcher.isOperational
115-
}
131+
spinUntil(Duration.ofSeconds(10)) {
132+
!fileWatcher.isOperational
116133
}
117-
)
134+
}
118135

119136
val watcherTriggered = CountDownLatch(1)
120137
fileWatcher.startup {

0 commit comments

Comments
 (0)