Skip to content

Commit 270fc87

Browse files
authored
chore: remove old drone configuration (dead-code) (#22840)
Support and usage of drone was removed a few years ago. This PR removes some dead-code I found while working on vulpix.
2 parents 03a6792 + 0f51329 commit 270fc87

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

community-build/src/scala/dotty/communitybuild/CommunityBuildRunner.scala

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ object CommunityBuildRunner:
1313
* is necessary since we run tests each time on a fresh
1414
* Docker container. We run the update on Docker container
1515
* creation time to create the cache of the dependencies
16-
* and avoid network overhead. See https://github.com/lampepfl/dotty-drone
17-
* for more infrastructural details.
16+
* and avoid network overhead.
1817
*/
1918
extension (self: CommunityProject)
2019
def run()(using suite: CommunityBuildRunner): Unit =

compiler/test/dotty/Properties.scala

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ object Properties {
1919

2020
/** Are we running on the CI? */
2121
val isRunByCI: Boolean = sys.env.isDefinedAt("DOTTY_CI_RUN")
22-
|| sys.env.isDefinedAt("DRONE") // TODO remove this when we drop Drone
2322

2423
val testCache: Path =
2524
sys.env.get("DOTTY_TEST_CACHE").map(Paths.get(_)).getOrElse {

compiler/test/dotty/tools/vulpix/VulpixUnitTests.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ object VulpixUnitTests extends ParallelTesting {
105105
def maxDuration = 3.seconds
106106
def numberOfSlaves = 5
107107
def safeMode = sys.env.get("SAFEMODE").isDefined
108-
def isInteractive = !sys.env.contains("DRONE")
108+
def isInteractive = !sys.env.contains("DOTTY_CI_RUN")
109109
def testFilter = Nil
110110
def updateCheckFiles: Boolean = false
111111
def failedTests = None

project/Build.scala

+2-9
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,8 @@ object Build {
403403
PgpKeys.pgpPassphrase := sys.env.get("PGP_PW").map(_.toCharArray()),
404404
PgpKeys.useGpgPinentry := true,
405405

406-
javaOptions ++= {
407-
val ciOptions = // propagate if this is a CI build
408-
sys.props.get("dotty.drone.mem") match {
409-
case Some(prop) => List("-Xmx" + prop)
410-
case _ => List()
411-
}
412-
// Do not cut off the bottom of large stack traces (default is 1024)
413-
"-XX:MaxJavaStackTraceDepth=1000000" :: agentOptions ::: ciOptions
414-
},
406+
// Do not cut off the bottom of large stack traces (default is 1024)
407+
javaOptions ++= "-XX:MaxJavaStackTraceDepth=1000000" :: agentOptions,
415408

416409
excludeLintKeys ++= Set(
417410
// We set these settings in `commonSettings`, if a project

0 commit comments

Comments
 (0)