Skip to content

Resource image build still copies the old harness path #229

Closed

Description

@lanyue-llk

Problem

examples/web_fetch/docker/resource.Dockerfile line 123 has COPY harness ./harness, but the package moved to src/harness/. git ls-files harness lists 0 files and git ls-files src/harness lists 374. The Dockerfile was last changed before the move, so make resource-image should fail at that COPY.

I read this from the files and could not run docker build, because no Docker daemon was available.

What else depends on the old path

  • ContainerResourceRunner.validate() hashes /workspace/harness/web_fetch/providers/headless_worker.py inside the image.
  • tests/test_resource_build_context.py uses harness/provider.py as its required fixture path, so it does not notice the move.

Why it matters now

A container cohort gets a change to headless.py only through a rebuild, for example the ownership proof from #170. validate() compares only the worker hash, so an older image that still runs the previous headless.py passes without any warning.

Done when

  • make resource-image builds from the current layout.
  • The build context test and the validate() path match that layout.
  • Decide whether validate() should also bind the modules the worker imports. That decision needs an owner, because the hash is part of the recorded environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions