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

Updates: 27-03-24 #329

Merged
merged 5 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/build-project/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ runs:
uses: addnab/docker-run-action@v3
if: steps.check-history.outputs.can-skip-build != 'true'
with:
image: "virtuslab/scala-community-build-project-builder:jdk${{ env.java-version }}-v0.3.9"
image: "virtuslab/scala-community-build-project-builder:jdk${{ env.java-version }}-v0.3.10"
options: -v ${{ github.workspace }}:/opencb/ -v ${{ github.workspace }}/github_key:/root/.ssh/github_key:ro
run: |
# Setup ssh required for downloading submodules
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ runs:
uses: addnab/docker-run-action@v3
if: steps.check-published.outputs.is-compiler-published == 'false'
with:
image: "virtuslab/scala-community-build-compiler-builder:v0.3.9"
image: "virtuslab/scala-community-build-compiler-builder:v0.3.10"
options: -v ${{ github.workspace }}/compiler:/compiler/
run: |
Version="${{ steps.calc-version.outputs.effective-scala-version }}"
Expand Down
2 changes: 1 addition & 1 deletion cli/scb-cli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FailedProjectException(msg: String)
with NoStackTrace

val communityBuildVersion =
sys.props.getOrElse("communitybuild.version", "v0.3.9")
sys.props.getOrElse("communitybuild.version", "v0.3.10")
private val CBRepoName = "VirtusLab/community-build3"
val projectBuilderUrl =
s"https://raw.githubusercontent.com/$CBRepoName/master/project-builder"
Expand Down
33 changes: 29 additions & 4 deletions coordinator/configs/projects-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ armanbilge_feral.projects.exclude = [
"com.armanbilge%feral-lambda-api-gateway-proxy-http4s",
"com.armanbilge%feral-core"
]
armanbilge_gcp4s.tests = compile-only
armanbilge_gcp4s {
// Needs reordeding of given instances (since 3.4), fails to compile under -source:3.4
sbt.commands = ["""set every excludeFilter ~= { _ || "EndToEndSuite.scala" }"""]
tests = compile-only
}
armanbilge_van-cats.source-version=3.4 // override -source:future
assist-iot-sripas_scala-mqtt-wrapper {
sbt.commands = [
Expand Down Expand Up @@ -374,7 +378,10 @@ hedgehogqa_scala-hedgehog{
// -siteroot in Compile/scalacOptions since 3.0.2+ gives a warnings
sbt.commands = ["disableFatalWarnings"]
}
haifengl_smile.tests = compile-only
haifengl_smile {
tests = compile-only
java.version = 17
}
herminiogg_dmaog.tests = compile-only
herminiogg_label2thesaurus.tests = compile-only
herminiogg_shexml.tests = compile-only
Expand Down Expand Up @@ -432,11 +439,18 @@ japgolly_test-state {
}
japgolly_clear-config.tests = compile-only
jbwheatley_pact4s.sbt.commands = ["""set shared/scalacOptions --= Seq("-Wconf:cat=deprecation:i", "-Xfatal-warnings") """]
jchapuis_fs2-kafka-mock{
jchapuis_fs2-kafka-mock {
sbt.commands = [
"excludeLibraryDependency org.wartremover:wartremover_{scalaVersion}",
"removeScalacOptionsStartingWith -P:wartremover"
]
source-patches = [
{
path = "src/test/scala/io/github/jchapuis/fs2/kafka/mock/MockKafkaProducerSuite.scala"
pattern = "implicit val patience = MockKafkaProducer.Patience"
replace-with = "implicit val patience: MockKafkaProducer.Patience = MockKafkaProducer.Patience"
}
]
}
jcouyang_dhall-generic.sbt.commands = ["set every Test/classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat"]
jmcardon_tsec.tests=compile-only
Expand Down Expand Up @@ -471,6 +485,7 @@ joernio_joern{
}
projects.exclude=[php2cpg] // Malformed setup file
}
json4s_json4s.source-version=3.3
julianpeeters_avrohugger.tests = compile-only
jwojnowski_googlecloud4s.tests = compile-only // uses docker
juliano_pokeapi-scala.tests = compile-only
Expand Down Expand Up @@ -622,7 +637,13 @@ monix_implicitbox.sbt.commands = ["set every Test/classLoaderLayeringStrategy :=
mvv_sager.sbt.commands = ["disableFatalWarnings"]
mvv_typine.sbt.commands = ["disableFatalWarnings"]

nafg_css-dsl.projects.exclude = ["io.github.nafg.css-dsl%fomanticui_scalatags"] // codegen fails
nafg_css-dsl.projects.exclude = [
// codegen fails
"io.github.nafg.css-dsl%fomanticui_scalajsreact",
"io.github.nafg.css-dsl%fomanticui_scalatags",
"io.github.nafg.css-dsl%bulma_scalatags",
"io.github.nafg.css-dsl%bulma_scalajsreact"
]
nafg_slick-migration-api.tests = compile-only
nau_scalus.tests = compile-only
naoh87_lettucef.tests = compile-only
Expand Down Expand Up @@ -656,6 +677,9 @@ pjfanning_pekko-rabbitmq.tests = compile-only
pjfanning_scala-faker.tests = compile-only
playframework_playframework.tests = compile-only
playframework_play-json.tests = compile-only
plokhotnyuk_jsoniter-scala {
sbt.commands = ["""set every Test/unmanagedSources/excludeFilter := HiddenFileFilter || "JsonCodecMakerNewTypeSpec.scala" """]
}
polynote_uzhttp {
source-patches = [
{
Expand Down Expand Up @@ -874,6 +898,7 @@ regis-leray_fs2-ftp.tests = compile-only
rssh_cps-async-connect.java.version = 21

t2v_holidays.tests = compile-only // invalid classpath at runtime
taig_backmail.source-version=3.4
taig_scala-linguist.projects.exclude=["io.taig%scala-linguist-graalvm-ruby"] // needs GraalVM
taig_scala-pygments.projects.exclude=["io.taig%scala-pygments-graalvm-python"]
takezoe_solr-scala-client.tests = compile-only
Expand Down
10 changes: 5 additions & 5 deletions coordinator/configs/slow-projects.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
akka/akka
akka/akka-http
akka/akka-persistence-cassandra
apache/incubator-pekko
apache/incubator-pekko-connectors-kafka
apache/incubator-pekko-connectors
apache/incubator-pekko-persistence-cassandra
apache/incubator-pekko-http
apache/pekko
apache/pekko-connectors-kafka
apache/pekko-connectors
apache/pekko-persistence-cassandra
apache/pekko-http
automorph-org/automorph
babylonhealth/lit-fhir
epfl-lara/lisa
Expand Down
6 changes: 3 additions & 3 deletions project-builder/mill/MillCommunityBuild.sc
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ private def checkedModuleMappings(
val mappings = moduleMappings(ctx)
val unmatched = targetStrings.diff(mappings.keySet).diff(Set("*%*"))
if (unmatched.nonEmpty) {
sys.error(
s"Failed to resolve mappings for targets: ${unmatched.mkString(", ")}"
)
val msg = s"Failed to resolve mappings for ${unmatched.size}:${targetStrings.size} targets: ${unmatched.mkString(", ")}"
if(unmatched.size == targetStrings.size) sys.error(msg)
else System.err.println(msg)
}
mappings
}
Expand Down
8 changes: 4 additions & 4 deletions project-builder/sbt/CommunityBuildPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ object CommunityBuildPlugin extends AutoPlugin {
}
}
.orElse {
println(s"""Module mapping missing:
System.err.println(s"""Module mapping missing:
| id: $id
| testedIds: $testedFullIds
| scalaVersionSuffix: $scalaVersionSuffix
Expand All @@ -454,9 +454,9 @@ object CommunityBuildPlugin extends AutoPlugin {
}

if (idsWithMissingMappings.nonEmpty) {
throw new Exception(
s"Module mapping missing for: ${idsWithMissingMappings.toSeq.mkString(", ")}"
)
val msg = s"Failed to resolve mappings for ${idsWithMissingMappings.size}:${filteredIds.size} targets: ${idsWithMissingMappings.toSeq.mkString(", ")}"
if(idsWithMissingMappings.size >= filteredIds.size) sys.error(msg)
else System.err.println(msg)
}
mappedProjects.flatten.toSet
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/bisect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import java.nio.file.attribute.PosixFilePermissions
import java.nio.charset.StandardCharsets
import java.nio.file._

val communityBuildVersion = "v0.3.9"
val communityBuildVersion = "v0.3.10"

@main def run(args: String*): Unit =
val config = scopt.OParser
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ne 1 ]; then
fi

VERSION="$1"
export PREV_CB_VERSION="v0.3.8"
export PREV_CB_VERSION="v0.3.9"

javaDefault=11
javaAccessoryVersions=(8 17 21)
Expand Down