scala / scala-dev

Scala 2 team issues. Not for user-facing bugs or directly actionable user-facing improvements. For build/test/infra and for longer-term planning and idea tracking. Our bug tracker is at https://github.com/scala/bug/issues
Apache License 2.0
130 stars 15 forks source link

Travis spec failure (sdkman_auto_answer not doing its thing) #824

Closed SethTisue closed 1 year ago

SethTisue commented 1 year ago

seen at https://app.travis-ci.com/github/scala/scala/jobs/586911433

Do you want java 8.0.352-tem to be set as default? (Y/n): 
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

The problem is occurring in Travis-CI's own code, not in ours. They must have changed something recently, and this is happening:

/home/travis/.travis/functions: line 112: /home/travis/.sdkman/etc/config: No such file or directory

the cause seems to be:

[[ -d $HOME/.sdkman/bin/ ]] || rm -rf $HOME/.sdkman/
curl -sL https://get.sdkman.io | bash
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config

They're trying to write something in a directory they just rm -rfed.

One hopes the Travis-CI people themselves will notice and fix this.

SethTisue commented 1 year ago

This hasn't been happening again — maybe because I deleted all our Travis-CI caches, maybe because something changed over at Travis-CI, I don't know which 🤷