Skip to content

CI warning: "Failed to write to remote cache (1 occurrences so far): Declared output directory path RelativePath("3rdparty/tools/act/act") in output digest ... contained a file instead." #19852

Open
@huonw

Description

@huonw

Describe the bug

Test shard 4 in CI currently has a warning:

[WARN] Failed to write to remote cache (1 occurrences so far): Declared output directory path RelativePath("3rdparty/tools/act/act") in output digest Digest { hash: Fingerprint<266c7e02f8705703f1c3df8f3dc12719ef360d5b945b04108cd675f2db6df8d5>, size_bytes: 82 } contained a file instead.

https://github.com/pantsbuild/pants/actions/runs/6216412029/job/16870266029#step:11:243

We can fix the specific instance, but the problem here should be caught earlier than uploading to remote source, probably:

shell_command(
name="extracted-act",
command="tar -xf act.tar.gz",
tools=["tar", "gzip"],
execution_dependencies=[":downloaded-act"],
output_directories=["act"],
)

Pants version

main a064a6b

OS
Linux

Additional info
N/A

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

    bugcategory:internalCI, fixes for not-yet-released features, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions