Skip to content

[Bazel CI] Error : build_tar.exe failed: error executing PackageTar command (from pkg_tar_impl rule target //:platforms-srcs) #28047

@bharadwaj08-one

Description

@bharadwaj08-one

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5149#019b2fa6-9efa-4ef6-9830-f719d5395153

Platform: Windows

Logs:

(04:12:10) ERROR: C:/b/bk-windows-skgg/bazel-org-repo-root/bazel/BUILD:191:8: Writing: bazel-out/x64_windows-fastbuild/bin/platforms-srcs.tar failed: (Exit 2): build_tar.exe failed: error executing PackageTar command (from pkg_tar_impl rule target //:platforms-srcs)
  cd /d C:/b/ewu6tvui/execroot/_main
  SET LANG=en_US.UTF-8
    SET LC_CTYPE=UTF-8
    SET PATH=C:\tools\msys64\usr\bin;C:\tools\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0
    SET PYTHONIOENCODING=UTF-8
    SET PYTHONUTF8=1
    SET RUNFILES_MANIFEST_ONLY=1
  bazel-out\default_host_platform-opt-exec\bin\external\rules_pkg+\pkg\private\tar\build_tar.exe --output=bazel-out/x64_windows-fastbuild/bin/platforms-srcs.tar --mode=0555 --owner=0.0 --owner_name=. --directory=/ --mtime=portable --compression_level=-1 --manifest=bazel-out/x64_windows-fastbuild/bin/platforms-srcs.manifest --create_parents
# Configuration: 81cb29a85f225abe06a01b8f23eb87e844ad592f9e1482a391b93f0c4c670dac
# Execution platform: //:default_host_platform
LAUNCHER ERROR: Cannot launch process: "python.exe" C:\b\ewu6tvui\execroot\_main\bazel-out\default_host_platform-opt-exec\bin\external\rules_pkg+\pkg\private\tar\build_tar.zip --output=bazel-out/x64_windows-fastbuild/bin/platforms-srcs.tar --mode=0555 --owner=0.0 --owner_name=. --directory=/ --mtime=portable --compression_level=-1 --manifest=bazel-out/x64_windows-fastbuild/bin/platforms-srcs.manifest --create_parents
Reason: (error: 2): The system cannot find the file specified.
(04:12:10) INFO: Elapsed time: 20.978s, Critical Path: 0.82s
(04:12:10) INFO: 1605 processes: 261 remote cache hit, 1341 internal, 3 local.
(04:12:10) ERROR: Build did NOT complete successfully

Culprit:

Steps:

git clone https://github.com/bazelbuild/bazel
git reset d6dc63124242e697b6896777db0ca83c103643b5 --hard
export USE_BAZEL_VERSION=e7d0f4670e90e96058a9e70aef331f929251b2a5
bazel build --config=my-rbe //src:bazel //src:bazel_jdk_minimal //src:test_repos //src/main/java/...

CC Greenteam @meteorcloudy

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions