Skip to content

[Bug]: The test module directory does not exist in the source archive #6220

@rickeylev

Description

@rickeylev

What happened?

While trying to release rules_python_gazelle, the presubmits say that the test module doesn't exist.

https://buildkite.com/organizations/bazel/pipelines/bcr-presubmit/builds/21238/jobs/0199ea7d-1a90-4844-8196-796c0807a8d3/log


ERROR: The test module directory does not exist in the source archive: /var/lib/buildkite-agent/builds/bk-docker-8rpq/bazel-org-repo-root/module_src/../examples/bzlmod_build_file_generation

This worked last month, and rules_python didn't change its BCR releasing configs.

I tried some alternate paths, but none seem to work.

My only guess is, because the sources.json uses strip_prefix=rules_python-$version/gazelle, but the example lives at e.g. rules_python-$version/examples/bzlmod_build_file_generation, that what gets extracted to disk is only the gazelle subdirectory. I can't see the file system to verify this, though.

If so, that's sensible. We, on the rules_python side, should fix the archive so the gazelle module is more self-contained. But, just wanted to file an issue to make sure that is the case, and its not an edge case in how BCR handles this (I think rules_python is one of the few doing this "multiple modules in one archive/pr" thing)

Version

n/a

How to reproduce

Copy PR https://github.com/bazelbuild/bazel-central-registry/pull/6219 and run presubmits

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions