Skip to content

Commit

Permalink
Backport "Fix listing release versions for bisect script." to LTS (#2…
Browse files Browse the repository at this point in the history
…0812)

Backports #19356 to the LTS branch.

PR submitted by the release tooling.
  • Loading branch information
WojciechMazur authored Jun 26, 2024
2 parents 1096abb + aaf0527 commit 4e3dbed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
10 changes: 7 additions & 3 deletions project/scripts/bisect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"<version>(.+-bin-\d{8}-\w{7}-NIGHTLY)</version>".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)

Expand Down

0 comments on commit 4e3dbed

Please sign in to comment.