Skip to content

Commit

Permalink
Remove leftover merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kordyjan committed Apr 21, 2022
1 parent 35d9a76 commit 944bf01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 131 deletions.
52 changes: 1 addition & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,56 +363,10 @@ jobs:
git submodule update --init --recursive --jobs 7
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
<<<<<<< HEAD
- name: Show dependency tracking file
if: ${{ always() }}
run: cat community-build/dotty-community-build-deps || true

community_build_forward_compat:
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2021-03-22
options: --cpu-shares 4096
volumes:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
|| (
github.event_name == 'pull_request'
&& !contains(github.event.pull_request.body, '[skip ci]')
&& !contains(github.event.pull_request.body, '[skip community_build]')
&& contains(github.event.pull_request.body, '[test_forward_compat]')
)
|| (
github.event_name == 'workflow_dispatch'
&& github.repository == 'lampepfl/dotty'
)"

steps:
- name: Reset existing repo
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true

- name: Checkout cleanup script
uses: actions/checkout@v2

- name: Cleanup
run: .github/workflows/cleanup.sh

- name: Git Checkout
uses: actions/checkout@v2

- name: Add SBT proxy repositories
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true

- name: Test
run: |
git submodule sync
git submodule update --init --recursive --jobs 7
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestForwardCompat"
=======
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
test_sbt:
runs-on: [self-hosted, Linux]
container:
Expand Down Expand Up @@ -512,11 +466,7 @@ jobs:
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
<<<<<<< HEAD
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, community_build_forward_compat, test_sbt, test_java8]
=======
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
needs: [test_non_bootstrapped, test, mima, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
env:
NIGHTLYBUILD: yes
Expand Down
73 changes: 4 additions & 69 deletions community-build/src/scala/dotty/communitybuild/projects.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,6 @@ final case class SbtCommunityProject(
s"--addPluginSbtFile=$sbtPluginFilePath"
)

<<<<<<< HEAD
def forwardCompat: SbtCommunityProject =
this.copy(
project = project + "-forward-compat",
dependencies = () => dependencies().map(forwardCompatMapping),
testOnlyDependencies = () => testOnlyDependencies().map(forwardCompatMapping),
isForwardCompatProject = true
)

def withScalaRelease(release: String): SbtCommunityProject =
this.copy(
scalacOptions = scalacOptions ++ Seq("-scala-output-version", release)
)

=======
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
object SbtCommunityProject:
def scalacOptions = List(
"-Xcheck-macros",
Expand Down Expand Up @@ -431,12 +415,8 @@ object projects:
project = "zio",
sbtTestCommand = "testJVMDotty",
sbtDocCommand = forceDoc("coreJVM"),
<<<<<<< HEAD
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Xcheck-macros"),
dependencies = () => List(izumiReflect)
=======
dependencies = List(izumiReflect)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
dependencies =List(izumiReflect)
)

lazy val munit = SbtCommunityProject(
Expand All @@ -460,12 +440,8 @@ object projects:
sbtTestCommand = "unitTests/test",
// Adds <empty> package
sbtDocCommand = "coreJVM/doc",
<<<<<<< HEAD
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
dependencies = () => List(munit, scodecBits),
=======
dependencies = List(munit, scodecBits),
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val scalaParserCombinators = SbtCommunityProject(
Expand Down Expand Up @@ -515,11 +491,6 @@ object projects:
dependencies = List(cats, coop, disciplineSpecs2, scalacheck)
)

<<<<<<< HEAD
lazy val catsEffect3ForwardCompat = catsEffect3.forwardCompat.copy(compilerVersion = "3.0.2")

=======
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
lazy val scalaParallelCollections = SbtCommunityProject(
project = "scala-parallel-collections",
sbtTestCommand = "test",
Expand Down Expand Up @@ -552,12 +523,8 @@ object projects:
project = "discipline",
sbtTestCommand = "coreJVM/test;coreJS/test",
sbtPublishCommand = "set every credentials := Nil;coreJVM/publishLocal;coreJS/publishLocal",
<<<<<<< HEAD
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
dependencies = () => List(scalacheck)
=======
dependencies = List(scalacheck)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val disciplineMunit = SbtCommunityProject(
Expand Down Expand Up @@ -597,11 +564,6 @@ object projects:
dependencies = List(cats, disciplineMunit)
)

<<<<<<< HEAD
lazy val catsMtlForwardCompat = catsMtl.forwardCompat.copy(compilerVersion = "3.0.2")

=======
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
lazy val coop = SbtCommunityProject(
project = "coop",
sbtTestCommand = "test",
Expand Down Expand Up @@ -677,13 +639,8 @@ object projects:
project = "Lucre",
sbtTestCommand = "adjunctJVM/test;baseJVM/test;confluentJVM/test;coreJVM/test;dataJVM/test;exprJVM/test;geomJVM/test;lucre-bdb/test;testsJVM/test",
extraSbtArgs = List("-Dde.sciss.lucre.ShortTests=true"),
<<<<<<< HEAD
sbtPublishCommand = "adjunctJVM/publishLocal;baseJVM/publishLocal;confluentJVM/publishLocal;coreJVM/publishLocal;dataJVM/publishLocal;exprJVM/publishLocal;geomJVM/publishLocal;lucre-bdb/publishLocal",
dependencies = () => List(scalaSTM, scissAsyncFile, scissEqual, scissFingerTree, scissLog, scissModel, scissNumbers, scissSerial, scissSpan, scalatest),
=======
sbtPublishCommand = "adjunctJVM/publishLocal;baseJVM/publishLocal;confluentJVM/publishLocal;coreJVM/publishLocal;dataJVM/publishLocal;expr0JVM/publishLocal;expr1JVM/publishLocal;exprJVM/publishLocal;geomJVM/publishLocal;lucre-bdb/publishLocal",
dependencies = List(scalaSTM, scissAsyncFile, scissEqual, scissFingerTree, scissLog, scissModel, scissNumbers, scissSerial, scissSpan, scalatest),
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val izumiReflect = SbtCommunityProject(
Expand All @@ -703,8 +660,7 @@ object projects:

lazy val akka = SbtCommunityProject(
project = "akka",
<<<<<<< HEAD
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$testedCompilerVersion"),
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$compilerVersion"),
sbtTestCommand = List(
"set every targetSystemJdk := true",
// selectively disable -Xfatal-warnings due to deprecations
Expand All @@ -714,12 +670,7 @@ object projects:
"akka-actor-tests/Test/compile",
).mkString("; "),
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
dependencies = () => List(scalatest, scalatestplusJunit, scalatestplusScalacheck)
=======
extraSbtArgs = List(s"-Dakka.build.scalaVersion=$compilerVersion"),
sbtTestCommand = "set every targetSystemJdk := true; akka-actor-tests/Test/compile",
dependencies = List(scalatest, scalatestplusJunit, scalatestplusScalacheck)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val monocle = SbtCommunityProject(
Expand All @@ -733,11 +684,7 @@ object projects:
extraSbtArgs = List("-Dcommunity=true", "-DcommunityRemote=true", "-Dquill.macro.stdout=true"),
sbtTestCommand = "runCommunityBuild",
sbtPublishCommand = "publishLocal",
<<<<<<< HEAD
dependencies = () => List(scalatest),
=======
dependencies = List(), // TODO add scalatest and pprint (see protoquill/build.sbt)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
dependencies = List(scalatest),
scalacOptions = List("-language:implicitConversions"), // disabled -Ysafe-init, due to bug in macro
)

Expand Down Expand Up @@ -773,12 +720,8 @@ object projects:
project = "fs2",
sbtTestCommand = "coreJVM/test; coreJS/test", // io/test requires JDK9+
sbtPublishCommand = "coreJVM/publishLocal; coreJS/publishLocal",
<<<<<<< HEAD
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
dependencies = () => List(cats, catsEffect3, munitCatsEffect, scalacheckEffect, scodecBits)
=======
dependencies = List(cats, catsEffect3, munitCatsEffect, scalacheckEffect, scodecBits)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val libretto = SbtCommunityProject(
Expand Down Expand Up @@ -806,20 +749,16 @@ object projects:
project = "spire",
sbtTestCommand = "test",
sbtPublishCommand = "publishLocal",
<<<<<<< HEAD
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Xcheck-macros"),
dependencies = () => List(cats, disciplineMunit)
=======
dependencies = List(cats, disciplineMunit)
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val http4s = SbtCommunityProject(
project = "http4s",
sbtTestCommand = "tests/test; server/test; client/test; ember-core/test; ember-server/test; ember-client/test; circe/test",
sbtPublishCommand = "publishLocal",
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Ysafe-init"),
dependencies = () => List(cats, catsEffect3, fs2, disciplineMunit, scalacheckEffect)
dependencies = List(cats, catsEffect3, fs2, disciplineMunit, scalacheckEffect)
)

end projects
Expand Down Expand Up @@ -900,13 +839,9 @@ def allProjects = List(
projects.libretto,
projects.jacksonModuleScala,
projects.specs2,
<<<<<<< HEAD
projects.coop,
projects.coopForwardCompat,
projects.spire,
projects.http4s
=======
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
)

lazy val projectMap = allProjects.groupBy(_.project)
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,9 @@ object CommunityBuildPlugin extends AutoPlugin {

override val buildSettings: Seq[Setting[_]] = Seq(
dependencyOverrides ++= {
<<<<<<< HEAD
if (scalaVersion.value.startsWith("3.")) {
val forwardCompatFilter: ModuleID => Boolean = if (isForwardCompatProject.value) (_.revision.contains("-forward-compat")) else (!_.revision.contains("-forward-compat"))
val stdlibOverrides = Seq(
scalaOrganization.value %% "scala3-library" % scalaVersion.value,
scalaOrganization.value %% "scala3-library_sjs1" % scalaVersion.value
)
CommunityBuildDependencies.allOverrides(sLog.value).filter(forwardCompatFilter) ++ stdlibOverrides
} else Nil
=======
if (scalaVersion.value.startsWith("3."))
CommunityBuildDependencies.allOverrides(sLog.value)
else Nil
>>>>>>> parent of e39b618f9a (-Yscala-release support: extend community build with basic forward-compat tests (compiling selected projects with "-Yscala-release 3.0"))
}
)
}
Expand Down

0 comments on commit 944bf01

Please sign in to comment.