Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also check Scala 3 artifacts in MiMa #530

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Aug 3, 2023

While MiMa may not have worked on really early versions of Scala 3, its reported to be working fine with Scala 3.3 and I can also confirm this when adding MiMa to pekko-streams-circe (see mdedetrich/pekko-streams-circe#13)

Resolves: #493

@pjfanning
Copy link
Contributor

part of #493

@mdedetrich
Copy link
Contributor Author

part of #493

Thanks, added to resolves

@pjfanning
Copy link
Contributor

this doesn't resolve #493 because it doesn't enable a CI check

@mdedetrich
Copy link
Contributor Author

this doesn't resolve #493 because it doesn't enable a CI check

Thanks, if this works I will update PR to add check to CI

@mdedetrich mdedetrich marked this pull request as draft August 3, 2023 10:15
@@ -16,7 +16,7 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.33")
// sbt-osgi 0.9.5 is available but breaks including jdk9-only classes
// sbt-osgi 0.9.6 is available but breaks populating pekko-protobuf-v3
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.8.1")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This old version of sbt-mima is why it wasn't correctly resolving Scala 3 artifacts, this has since been resolved in latest MiMA

@mdedetrich mdedetrich marked this pull request as ready for review August 3, 2023 10:22
@@ -18,23 +18,18 @@ jobs:
if: github.repository == 'apache/incubator-pekko'
strategy:
fail-fast: false
matrix:
Copy link
Contributor Author

@mdedetrich mdedetrich Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matrix no longer needed, we test for all supported scala versions using sbt's +

@@ -43,11 +38,11 @@ jobs:
run: cp .jvmopts-ci .jvmopts

- name: Compile code
run: sbt "+~ ${{ matrix.scalaVersion }} Test/compile"
Copy link
Contributor Author

@mdedetrich mdedetrich Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no reason to also compile Test scope, the point of this github check is to validate binary compatibility issues and this is never done against test code. There are other github workflows which check that the code generally compiles.

Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mdedetrich mdedetrich merged commit ebb98f1 into apache:main Aug 3, 2023
17 checks passed
@mdedetrich mdedetrich deleted the also-check-scala3-in-mima branch August 3, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable mima checks for Scala 3
2 participants