Skip to content

Commit 4e3dbed

Browse files
Backport "Fix listing release versions for bisect script." to LTS (#20812)
Backports #19356 to the LTS branch. PR submitted by the release tooling.
2 parents 1096abb + aaf0527 commit 4e3dbed

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Diff for: compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class BootstrappedOnlyCompilationTests {
3232
).checkCompile()
3333
}
3434

35-
@Test def posWithCompilerCC: Unit =
35+
// @Test
36+
def posWithCompilerCC: Unit =
3637
implicit val testGroup: TestGroup = TestGroup("compilePosWithCompilerCC")
3738
aggregateTests(
3839
compileDir("tests/pos-with-compiler-cc/dotc", withCompilerOptions.and("-language:experimental.captureChecking"))

Diff for: project/scripts/bisect.scala

+7-3
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,13 @@ class Releases(val releases: Vector[Release])
169169

170170
object Releases:
171171
lazy val allReleases: Vector[Release] =
172-
val re = raw"""(?<=title=")(.+-bin-\d{8}-\w{7}-NIGHTLY)(?=/")""".r
173-
val html = Source.fromURL("https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/")
174-
re.findAllIn(html.mkString).map(Release.apply).toVector
172+
val re = raw"<version>(.+-bin-\d{8}-\w{7}-NIGHTLY)</version>".r
173+
val xml = io.Source.fromURL(
174+
"https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/maven-metadata.xml"
175+
)
176+
re.findAllMatchIn(xml.mkString)
177+
.flatMap{ m => Option(m.group(1)).map(Release.apply) }
178+
.toVector
175179

176180
def fromRange(range: ReleasesRange): Vector[Release] = range.filter(allReleases)
177181

0 commit comments

Comments
 (0)