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

nightly release-package-unix jobs failing #74

Closed
SethTisue opened this issue Jan 20, 2016 · 8 comments
Closed

nightly release-package-unix jobs failing #74

SethTisue opened this issue Jan 20, 2016 · 8 comments
Labels

Comments

@SethTisue
Copy link
Member

see e.g. https://scala-ci.typesafe.com/job/scala-2.11.x-release-package-unix/356/console

java.lang.RuntimeException: Error tarballing /home/jenkins/workspace/scala-2.11.x-release-package-unix/target/universal-docs/scala-docs-2.11.8-f6bd712-nightly.txz. Exit code: 2

perhaps another consequence of scala/scala-dist#154 and/or scala/scala-dist#156

@SethTisue
Copy link
Member Author

last green build was Jan 15 scala/scala-dist@8b824c1
first red build was Jan 16 scala/scala-dist@d40dd6f

the latter is the merge commit for #156, so that almost certainly must be the source. it included version bumps for both sbt-native-packager and sbt

@SethTisue
Copy link
Member Author

if I ssh to jenkins-worker-ubuntu-publish and run sbt -Dproject.version=2.11.7 followed by universal-docs:packageXzTarball, I get:

Running with tar /tmp/sbt_7bbb8416/scala-docs-2.11.7.tar scala-2.11.7
tar: Old option 'b' requires an argument.
Try 'tar --help' or 'tar --usage' for more information.
[trace] Stack trace suppressed: run last universal-docs:packageXzTarball for the full output.
[error] (universal-docs:packageXzTarball) Error tarballing /home/jenkins/workspace/scala-2.11.x-release-package-unix/target/universal-docs/scala-docs-2.11.7.txz. Exit code: 2

it seems likely this is the cause, and the information about "old option 'b'" being the culprit just isn't showing up in the Jenkins log for some reason

UPDATE:

universal-docs:packageZipTarball gives a little bit different error:

> universal-docs:packageZipTarball
Running with tar /tmp/sbt_1205a627/scala-docs-2.11.7.tar scala-2.11.7
tar: invalid option -- '/'
Try 'tar --help' or 'tar --usage' for more information.
[trace] Stack trace suppressed: run last universal-docs:packageZipTarball for the full output.
[error] (universal-docs:packageZipTarball) Error tarballing /home/jenkins/workspace/scala-2.11.x-release-package-unix/target/universal-docs/scala-docs-2.11.7.tgz. Exit code: 64
[error] Total time: 4 s, completed Jan 21, 2016 7:02:01 PM

@SethTisue
Copy link
Member Author

@muuki88 does this ring any bells with you...?

@SethTisue
Copy link
Member Author

sbt/sbt-native-packager#666 is the culprit, I think. tar is supposed to be invoked with -pcvf, but isn't being invoked with any flags at all:

> universal-docs:packageXzTarball::universalArchiveOptions
[info] List()

because since 666, universalArchiveOptions in packageKey := Nil, should be Seq("-pcvf") IMO (or perhaps include --force-local too, I see in other PRs there's been back-and-forth on that). there's a defaultUniversalArchiveOptions that has the right value, but for some reason it isn't taking effect.

I should file a bug in the sbt-native-packager repo. I think we can work around it with:

set universalArchiveOptions in (UniversalDocs, packageZipTarball) := Seq("--force-local", "-pcvf")
set universalArchiveOptions in (UniversalDocs, packageXzTarball) := Seq("--force-local", "-pcvf")

when troubleshooting this, a rm -rf /tmp/sbt_* may be necessary from time to time to keep the partition from filling up

@muuki88
Copy link

muuki88 commented Jan 21, 2016

@SethTisue this is interesting. Please fill a bug and lets see how we can fix this.

SethTisue added a commit to SethTisue/scala-dist that referenced this issue Jan 21, 2016
where some doc tasks were invoking `tar` without any flags at all
see scala/scala-dev#74
SethTisue added a commit to SethTisue/scala-dist that referenced this issue Jan 21, 2016
where some doc tasks were invoking `tar` without any flags at all
see scala/scala-dev#74
@SethTisue
Copy link
Member Author

Please fill a bug

sbt/sbt-native-packager#731

@SethTisue
Copy link
Member Author

worked around it for now with scala/scala-dist#159

@SethTisue
Copy link
Member Author

yay, last night's automatic run succeeded https://scala-ci.typesafe.com/job/scala-2.11.x-release-package-unix/362/consoleFull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants