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

ammonite.session.ProjectTests.deeplearning should skip on MacOS/Apple Silicon #1353

Open
LuciferYang opened this issue Jun 5, 2023 · 0 comments

Comments

@LuciferYang
Copy link
Contributor

LuciferYang commented Jun 5, 2023

ammonite.session.ProjectTests.deeplearning using import $ivy.org.nd4j:nd4j-native-platform:0.8.0, but it seems that nd4j lacks support for MacOS/Apple Silicon:

ProjectTests
@ import $ivy.`com.thoughtworks.deeplearning::plugins-builtins:2.0.0-RC0`
@ import $ivy.`org.nd4j:nd4j-native-platform:0.8.0`
X ammonite.session.ProjectTests.deeplearning 327ms 
  utest.AssertionError: assert{
  error: String = Failed to resolve ivy dependencies:https://repo1.maven.org/maven2/org/nd4j/nd4j-native/0.8.0/nd4j-native-0.8.0-${javacpp.platform}.jar: not found: https://repo1.maven.org/maven2/org/nd4j/nd4j-native/0.8.0/nd4j-native-0.8.0-${javacpp.platform}.jar
  

  warning: String = 
  out: String = 
  res: String = 
  info: String = 
  expected: String = import $ivy.$
    utest.asserts.Asserts$.assertImpl(Asserts.scala:30)
    ammonite.TestRepl.$anonfun$session$5(TestRepl.scala:323)
    ammonite.TestRepl.$anonfun$session$5$adapted(TestRepl.scala:217)
    scala.collection.TraversableLike$WithFilter.$anonfun$foreach$1(TraversableLike.scala:985)
    scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:984)
    ammonite.TestRepl.session(TestRepl.scala:217)
    ammonite.DualTestRepl.$anonfun$session$1(DualTestRepl.scala:34)
    ammonite.DualTestRepl.$anonfun$session$1$adapted(DualTestRepl.scala:34)
    scala.collection.immutable.List.foreach(List.scala:431)
    ammonite.DualTestRepl.session(DualTestRepl.scala:34)
    ammonite.session.ProjectTests$.$anonfun$tests$18(ProjectTests.scala:281)

So I think we should skip this test when test environment is MacOS/Apple Silicon

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

No branches or pull requests

1 participant