Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690794 - dev-util/bazel: uses RESTRICT=network-sandbox
Summary: dev-util/bazel: uses RESTRICT=network-sandbox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-27 05:44 UTC by Michał Górny
Modified: 2019-07-29 06:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-27 05:44:30 UTC
Per ebuild(5):

  Should not be used in the main Gentoo tree.

Please replace this with complete test restriction if you can't fix tests.  It's not acceptable to silently reenable network access for users.
Comment 1 Zac Medico gentoo-dev 2019-07-29 06:17:20 UTC
I'll go ahead and set RESTRICT=test. It fails like this with FEATURES=network-sandbox:

> >>> Test phase: dev-util/bazel-0.28.1
> Extracting Bazel installation...
> Starting local Bazel server and connecting to it...
> WARNING: ignoring LD_PRELOAD in environment.
> INFO: Call stack for the definition of repository 'io_bazel_skydoc' which is a http_archive (rule definition at /var/tmp/portage/dev-util/bazel-0.28.1/homedir/.cache/bazel/_bazel_portage/c156ce21e32bd9ae25f9aa5ae5f1acde/external/bazel_tools/tools/build_defs/repo/http.bz
> l:237:16):
>  - /var/tmp/portage/dev-util/bazel-0.28.1/work/WORKSPACE:383:1
> ERROR: An error occurred during the fetch of repository 'io_bazel_skydoc':
>    java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz, https://github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz] to /var/tmp/portage/dev-util/bazel-0.28.1/homedir/.cache/bazel/_bazel_portage/c156ce21e32bd9ae25f9aa5ae5f1acde/external/io_bazel_skydoc/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz: All mirrors are down: [Network is unreachable (connect failed)]
> ERROR: no such package '@io_bazel_skydoc//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz, https://github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz] to /var/tmp/portage/dev-util/bazel-0.28.1/homedir/.cache/bazel/_bazel_portage/c156ce21e32bd9ae25f9aa5ae5f1acde/external/io_bazel_skydoc/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz: All mirrors are down: [Network is unreachable (connect failed)]
> ERROR: no such package '@io_bazel_skydoc//': java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz, https://github.com/bazelbuild/skydoc/archive/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz] to /var/tmp/portage/dev-util/bazel-0.28.1/homedir/.cache/bazel/_bazel_portage/c156ce21e32bd9ae25f9aa5ae5f1acde/external/io_bazel_skydoc/1ca560df1cf6e280f987af2f8d08a5edc7ac6b54.tar.gz: All mirrors are down: [Network is unreachable (connect failed)]
> INFO: Elapsed time: 16.291s
> INFO: 0 processes.
> FAILED: Build did NOT complete successfully (0 packages loaded)
> FAILED: Build did NOT complete successfully (0 packages loaded)
>  * ERROR: dev-util/bazel-0.28.1::gentoo failed (test phase):
>  *   (no error message)
>  *
>  * Call stack:
>  *     ebuild.sh, line 125:  Called src_test
>  *   environment, line 2918:  Called die
>  * The specific snippet of code:
>  *       output/bazel test --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone --verbose_test_summary examples/cpp:hello-success_test || die;
>  *
>  * If you need support, post the output of `emerge --info '=dev-util/bazel-0.28.1::gentoo'`,
>  * the complete build log and the output of `emerge -pqv '=dev-util/bazel-0.28.1::gentoo'`.
> !!! When you file a bug report, please include the following information:
> GENTOO_VM=openjdk-11  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-11"
> JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
> and of course, the output of emerge --info =bazel-0.28.1
>  * The complete build log is located at '/var/tmp/portage/dev-util/bazel-0.28.1/temp/build.log'.
>  * The ebuild environment file is located at '/var/tmp/portage/dev-util/bazel-0.28.1/temp/environment'.
>  * Working directory: '/var/tmp/portage/dev-util/bazel-0.28.1/work'
>  * S: '/var/tmp/portage/dev-util/bazel-0.28.1/work'
Comment 2 Larry the Git Cow gentoo-dev 2019-07-29 06:41:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3a38739108e676f971602127d4c00bf6ff5bcda

commit f3a38739108e676f971602127d4c00bf6ff5bcda
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-07-29 06:30:24 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-07-29 06:40:52 +0000

    dev-util/bazel: RESTRICT=test
    
    Closes: https://bugs.gentoo.org/690794
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-util/bazel/bazel-0.24.1-r1.ebuild | 5 +++--
 dev-util/bazel/bazel-0.26.1-r1.ebuild | 5 +++--
 dev-util/bazel/bazel-0.27.0-r1.ebuild | 5 +++--
 dev-util/bazel/bazel-0.27.2.ebuild    | 5 +++--
 dev-util/bazel/bazel-0.28.1.ebuild    | 5 +++--
 5 files changed, 15 insertions(+), 10 deletions(-)