Fix versions in poms, etc, unmute and fix appropriate test

This commit is contained in:
Ilya Chernikov
2022-04-19 16:36:51 +02:00
parent 24f3c7dc7d
commit 352fa7540c
24 changed files with 26 additions and 27 deletions
@@ -33,7 +33,7 @@ import javax.xml.parsers.SAXParserFactory
@WithMutedInDatabaseRunTest @WithMutedInDatabaseRunTest
class KotlinVersionsTest : KtUsefulTestCase() { class KotlinVersionsTest : KtUsefulTestCase() {
fun testVersionsAreConsistent() { fun testVersionsAreConsistent() {
val versionPattern = "(\\d+)\\.(\\d+)(\\.(\\d+)|-SNAPSHOT)?".toRegex() val versionPattern = "(\\d+)\\.(\\d+)(\\.(\\d+))?(?:-(\\p{Alpha}*\\p{Alnum}|[\\p{Alpha}-]*))?(?:-(\\d+))?".toRegex()
data class Version(val major: Int, val minor: Int, val patch: Int?, val versionString: String, val source: String) { data class Version(val major: Int, val minor: Int, val patch: Int?, val versionString: String, val source: String) {
fun isConsistentWith(other: Version): Boolean { fun isConsistentWith(other: Version): Boolean {
@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
@@ -8,7 +8,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Kotlin</name> <name>Kotlin</name>
@@ -16,7 +16,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-bom</artifactId> <artifactId>kotlin-bom</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<!-- No parent to avoid accidentally inheriting parent's dependencyManagement section --> <!-- No parent to avoid accidentally inheriting parent's dependencyManagement section -->
@@ -1 +1 @@
publishing_version = 1.0-5.3-1.6.255-SNAPSHOT publishing_version = 1.0-5.3-1.7.255-SNAPSHOT
+1 -1
View File
@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -12,7 +12,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@@ -7,7 +7,7 @@ final String kotlinRootDir = rootProject.file("../../../").absolutePath.replace(
final String kotlinLibsDir = "$buildDir/libs" final String kotlinLibsDir = "$buildDir/libs"
final String githubRevision = isTeamcityBuild ? project.property("githubRevision") : "master" final String githubRevision = isTeamcityBuild ? project.property("githubRevision") : "master"
final String kotlinVersion = isTeamcityBuild ? project.property("deployVersion") : "1.6.255-SNAPSHOT" final String kotlinVersion = isTeamcityBuild ? project.property("deployVersion") : "1.7.255-SNAPSHOT"
final String repo = isTeamcityBuild ? project.property("kotlinLibsRepo") : "$kotlinRootDir/build/repo" final String repo = isTeamcityBuild ? project.property("kotlinLibsRepo") : "$kotlinRootDir/build/repo"
println("# Extracting info:") println("# Extracting info:")
@@ -18,7 +18,7 @@ class DeserializeStringTest {
"buildSystem": "Gradle", "buildSystem": "Gradle",
"buildSystemVersion": "6.7", "buildSystemVersion": "6.7",
"buildPlugin": "org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", "buildPlugin": "org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper",
"buildPluginVersion": "1.6.255-SNAPSHOT", "buildPluginVersion": "1.7.255-SNAPSHOT",
"projectSettings": { "projectSettings": {
"isHmppEnabled": false, "isHmppEnabled": false,
"isCompatibilityMetadataVariantEnabled": true "isCompatibilityMetadataVariantEnabled": true
@@ -78,7 +78,7 @@ class DeserializeStringTest {
assertEquals("Gradle", metadata.buildSystem) assertEquals("Gradle", metadata.buildSystem)
assertEquals("6.7", metadata.buildSystemVersion) assertEquals("6.7", metadata.buildSystemVersion)
assertEquals("org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", metadata.buildPlugin) assertEquals("org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", metadata.buildPlugin)
assertEquals("1.6.255-SNAPSHOT", metadata.buildPluginVersion) assertEquals("1.7.255-SNAPSHOT", metadata.buildPluginVersion)
assertFalse(metadata.projectSettings.isHmppEnabled) assertFalse(metadata.projectSettings.isHmppEnabled)
assertTrue(metadata.projectSettings.isCompatibilityMetadataVariantEnabled) assertTrue(metadata.projectSettings.isCompatibilityMetadataVariantEnabled)
assertFalse(metadata.projectSettings.isKPMEnabled) assertFalse(metadata.projectSettings.isKPMEnabled)
@@ -134,7 +134,7 @@ class DeserializeStringTest {
"buildSystem": "Gradle", "buildSystem": "Gradle",
"buildSystemVersion": "7.1", "buildSystemVersion": "7.1",
"buildPlugin": "org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", "buildPlugin": "org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper",
"buildPluginVersion": "1.6.255-SNAPSHOT", "buildPluginVersion": "1.7.255-SNAPSHOT",
"projectSettings": { "projectSettings": {
"isHmppEnabled": false, "isHmppEnabled": false,
"isCompatibilityMetadataVariantEnabled": true, "isCompatibilityMetadataVariantEnabled": true,
@@ -191,7 +191,7 @@ class DeserializeStringTest {
assertEquals("Gradle", metadata.buildSystem) assertEquals("Gradle", metadata.buildSystem)
assertEquals("7.1", metadata.buildSystemVersion) assertEquals("7.1", metadata.buildSystemVersion)
assertEquals("org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", metadata.buildPlugin) assertEquals("org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper", metadata.buildPlugin)
assertEquals("1.6.255-SNAPSHOT", metadata.buildPluginVersion) assertEquals("1.7.255-SNAPSHOT", metadata.buildPluginVersion)
assertFalse(metadata.projectSettings.isHmppEnabled) assertFalse(metadata.projectSettings.isHmppEnabled)
assertTrue(metadata.projectSettings.isCompatibilityMetadataVariantEnabled) assertTrue(metadata.projectSettings.isCompatibilityMetadataVariantEnabled)
assertTrue(metadata.projectSettings.isKPMEnabled) assertTrue(metadata.projectSettings.isKPMEnabled)
@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-archetypes-parent</artifactId> <artifactId>kotlin-archetypes-parent</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-archetypes-parent</artifactId> <artifactId>kotlin-archetypes-parent</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
+1 -1
View File
@@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-project</artifactId> <artifactId>kotlin-project</artifactId>
<version>1.6.255-SNAPSHOT</version> <version>1.7.255-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
-1
View File
@@ -43,7 +43,6 @@ org.jetbrains.kotlin.j2k.JavaToKotlinConverterSingleFileTestGenerated.AnonymousC
org.jetbrains.kotlin.j2k.JavaToKotlinConverterSingleFileTestGenerated.Issues.testKt_807,,, org.jetbrains.kotlin.j2k.JavaToKotlinConverterSingleFileTestGenerated.Issues.testKt_807,,,
org.jetbrains.kotlin.psi.injection.StringInterpolationInjectionTest.testInterpolationSimpleName, Stable failure during run may work in debug,, org.jetbrains.kotlin.psi.injection.StringInterpolationInjectionTest.testInterpolationSimpleName, Stable failure during run may work in debug,,
org.jetbrains.kotlin.shortenRefs.ShortenRefsTestGenerated.testExtensionForObject2, Always red,, org.jetbrains.kotlin.shortenRefs.ShortenRefsTestGenerated.testExtensionForObject2, Always red,,
org.jetbrains.kotlin.util.KotlinVersionsTest.testVersionsAreConsistent, KT-35567,,
org.jetbrains.kotlin.idea.debugger.test.AsyncStackTraceTestGenerated.testAsyncLambdas, redesign test AsyncStackTraces,, org.jetbrains.kotlin.idea.debugger.test.AsyncStackTraceTestGenerated.testAsyncLambdas, redesign test AsyncStackTraces,,
org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ConvertToAnonymousObject.testHasConcreateMember2, Unprocessed,, org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ConvertToAnonymousObject.testHasConcreateMember2, Unprocessed,,
org.jetbrains.uast.test.kotlin.KotlinUastTypesTest.testEa101715, Unprocessed,, org.jetbrains.uast.test.kotlin.KotlinUastTypesTest.testEa101715, Unprocessed,,
1 Test key Issue State (optional: MUTE or FAIL) Status (optional: FLAKY)
43 org.jetbrains.kotlin.j2k.JavaToKotlinConverterSingleFileTestGenerated.Issues.testKt_807
44 org.jetbrains.kotlin.psi.injection.StringInterpolationInjectionTest.testInterpolationSimpleName Stable failure during run may work in debug
45 org.jetbrains.kotlin.shortenRefs.ShortenRefsTestGenerated.testExtensionForObject2 Always red
org.jetbrains.kotlin.util.KotlinVersionsTest.testVersionsAreConsistent KT-35567
46 org.jetbrains.kotlin.idea.debugger.test.AsyncStackTraceTestGenerated.testAsyncLambdas redesign test AsyncStackTraces
47 org.jetbrains.kotlin.idea.quickfix.QuickFixTestGenerated.ConvertToAnonymousObject.testHasConcreateMember2 Unprocessed
48 org.jetbrains.uast.test.kotlin.KotlinUastTypesTest.testEa101715 Unprocessed