From 8035feee6a47bdde87c87888d7e79a3119dc8e3d Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Tue, 9 Jan 2024 13:52:49 +0100 Subject: [PATCH 1/2] chore: Fix listing release versions for bisect script. (#19356) Use `maven-metadata.xml` to list released Scala versions instead of parsing HTML of Maven index. [Cherry-picked 5346c999fb3f99947d706f31ae90c9d658f06e6b] --- project/scripts/bisect.scala | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/project/scripts/bisect.scala b/project/scripts/bisect.scala index 712f58056a4a..d920dfd528a1 100755 --- a/project/scripts/bisect.scala +++ b/project/scripts/bisect.scala @@ -169,9 +169,13 @@ class Releases(val releases: Vector[Release]) object Releases: lazy val allReleases: Vector[Release] = - val re = raw"""(?<=title=")(.+-bin-\d{8}-\w{7}-NIGHTLY)(?=/")""".r - val html = Source.fromURL("https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/") - re.findAllIn(html.mkString).map(Release.apply).toVector + val re = raw"(.+-bin-\d{8}-\w{7}-NIGHTLY)".r + val xml = io.Source.fromURL( + "https://repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/maven-metadata.xml" + ) + re.findAllMatchIn(xml.mkString) + .flatMap{ m => Option(m.group(1)).map(Release.apply) } + .toVector def fromRange(range: ReleasesRange): Vector[Release] = range.filter(allReleases) From aaf0527684b64613984e1903f57e1cdaf15301d8 Mon Sep 17 00:00:00 2001 From: odersky Date: Sun, 27 Aug 2023 23:06:12 +0200 Subject: [PATCH 2/2] Disable posWithCompilerCC for now Need to follow up later --- .../dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala b/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala index 6a5e92a51a37..9529f94a3890 100644 --- a/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala +++ b/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala @@ -32,7 +32,8 @@ class BootstrappedOnlyCompilationTests { ).checkCompile() } - @Test def posWithCompilerCC: Unit = + // @Test + def posWithCompilerCC: Unit = implicit val testGroup: TestGroup = TestGroup("compilePosWithCompilerCC") aggregateTests( compileDir("tests/pos-with-compiler-cc/dotc", withCompilerOptions.and("-language:experimental.captureChecking"))