-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: support jdk 8-13 during build #61
Conversation
@lili2311 , I need some help with this one. Does it have anything to do with the fact that I am not part of Snyk org or is something that is broken on my end? |
Checking |
Just looks flaky 🤔 Re-running and let's see |
These tests on cli plugins run without any snyk token, only npm token for releasing |
Different failure now, looks legit? Please take a look |
I think I found the culprit:
And after 10 min (i.e. 600seconds) it will timeout ( I'm guessing since the stages now will take longer since it will do multiple jdks, the VM from travis is probably slower at running the tests in parallel. I've increased it to 700. Not sure if this will fix it. Let me know if this is something is not desired. |
Another idea would be to disable the timeout. (i.e. replacing --timeout with --no-timeout). |
I went ahead and created a separate branch on my fork and re-run with different things so I don't clutter this PR, but at the end I only have one problem and that is running against jdk13. (https://travis-ci.org/sfat/snyk-sbt-plugin/builds/570305508) |
@sfat Is there a tool which would allow installation of different sbt version during particular job? Please have a look at https://github.com/snyk/snyk-gradle-plugin/blob/master/.travis.yml#L30 |
@miiila
Not sure if it's a good idea to have all jobs run the same scala version. I've also looked at changing the different sbt version, but still the latest is 1.2.8 which is bound to 2.12.7 scala version which does not have the fix for jdk13 issue as mentioned in my previous comment. I also tried using
Which is not the version that scala fixed the jdk13 issue (2.12.9) I would say until there is a compatible sbt that comes with scala 2.12.9, we can't do much about jdk13. The main problem is that you can set whatever version you like in If I go with the I think having the version of sbt in each projects let's leverage testing different combination of sbt (0.13 vs 1.2.8) in the different projects. I'm thinking if it's worth adding support for jdk13 for now until things get better supported in sbt/scala/sdkman? Maybe if sbt will use the 2.12.9 version, that we could potentially add a new test that will validate that it's working properly, but until then it's seems overkill, IMHO, since the combination of sbt+jdk13 will be a headache to configure their projects in the first place. What do you think? Would it be an option to ditch jdk13 for now? |
regarding the current failing build, it seems it there was a hiccup from maven central repo, as it seems similar to this issue: deanwampler/programming-scala-book-code-examples#8. |
Any update on how do you want me to proceed here? |
👋 Don't add java 13 for now, but leave a comment to mention that it is not supported at this moment. Sounds like what we have already is probably the easiest / best solution given what you found so let's keep the projects specifying their own scala version. So the test matrix is only Node vs Java versions what do you think? |
@lili2311 , got it. |
How does this sound as comment? Compability
|
Readme is great place for it :) |
The matrix looks good to me 👍 |
9390595
to
d691032
Compare
🎉 🎉 |
🎉 This PR is included in version 2.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What are the relevant tickets?
#60