Skip to content

Rules docker red on bazel ci #363

Closed
Closed

Description

@hlopko

Hello,

I see these failures on bazel ci:

FAIL: test_py_image (__main__.ImageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/aac15dbeadd534b83edadb98c46515e3/sandbox/2301095927931048963/execroot/io_bazel_rules_docker/bazel-out/k8-fastbuild/bin/container/image_test.runfiles/io_bazel_rules_docker/container/image_test.py", line 387, in test_py_image
    '/app/testdata/py_image.binary.runfiles/io_bazel_rules_docker/external',
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/aac15dbeadd534b83edadb98c46515e3/sandbox/2301095927931048963/execroot/io_bazel_rules_docker/bazel-out/k8-fastbuild/bin/container/image_test.runfiles/io_bazel_rules_docker/container/image_test.py", line 48, in assertTopLayerContains
    self.assertLayerNContains(img, 0, paths)
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/aac15dbeadd534b83edadb98c46515e3/sandbox/2301095927931048963/execroot/io_bazel_rules_docker/bazel-out/k8-fastbuild/bin/container/image_test.runfiles/io_bazel_rules_docker/container/image_test.py", line 45, in assertLayerNContains
    self.assertTarballContains(layer, paths)
  File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/aac15dbeadd534b83edadb98c46515e3/sandbox/2301095927931048963/execroot/io_bazel_rules_docker/bazel-out/k8-fastbuild/bin/container/image_test.runfiles/io_bazel_rules_docker/container/image_test.py", line 40, in assertTarballContains
    self.assertEqual(paths, tar.getnames())
AssertionError: Lists differ: ['.', './app', './app/testdata... != ['.', './app', './app/testdata...

First differing element 8:
/app
./app/testdata/py_image.binary.runfiles/io_bazel_rules_docker/testdata/__init__.py

Diff is 1018 characters long. Set self.maxDiff to None to see it.

----------------------------------------------------------------------
Ran 48 tests in 42.642s

FAILED (failures=1)

Any idea what went wrong?
Example build:
https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/174#2e74634d-5bc8-4009-9e87-7a415f7a834e

Activity

  1. mattmoor commented on Mar 24, 2018

    @mattmoor
    Contributor

    Looks like you guys stopped emitting __init__.py at some level at HEAD?

  2. assigned and unassigned on Mar 24, 2018
  3. hlopko commented on Mar 27, 2018

    @hlopko
    MemberAuthor

    The offending commit is somewhere between 16 and 42 days :) Bisecting now.

  4. hlopko commented on Mar 28, 2018

    @hlopko
    MemberAuthor

    So the offender is bazelbuild/bazel@e9c885a in attempt to fix bazel-contrib/rules_python#55.

    @mattmoor @lberki what's the best way to proceed?

  5. assigned and unassigned on Mar 28, 2018
  6. mattmoor commented on Mar 28, 2018

    @mattmoor
    Contributor

    If the fix is to simply remove one __init__.py from the expected file list, then that SGTM?

  7. lberki commented on Apr 6, 2018

    @lberki

    Yep, looks good -- sorry for the late reply, I somehow managed to overlook this bug.

  8. added 2 commits that reference this issue on Apr 9, 2018
    18945ac
    31fad39
  9. added a commit that references this issue on Nov 28, 2025
    534931e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions