Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that Tree contents are uploaded after creation. #13008

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

stuhood
Copy link
Member

@stuhood stuhood commented Sep 25, 2021

We currently do not upload the file Digests referenced by Trees, which will later cause a "missing file" to be reported during eager fetch of a cache entry.

As discussed in #13006: we should likely have native support for storing and uploading Trees, but this change fixes the immediate issue in a cherry-pickable way.

[ci skip-build-wheels]

@stuhood stuhood added this to the 2.7.x milestone Sep 25, 2021
@stuhood
Copy link
Member Author

stuhood commented Sep 25, 2021

Although this should be picked to 2.7.x, it doesn't block 2.7.0: we only started experiencing the effects more strongly recently when the PEX rules began producing output_directories: https://github.com/pantsbuild/pants/blame/e6f3641835082dbe6fea8aa934e21bc80c389ccd/src/python/pants/backend/python/util_rules/pex.py#L492-L500

@stuhood stuhood force-pushed the stuhood/upload-tree-contents branch from b1b54df to f8bd865 Compare September 25, 2021 19:45
Copy link
Contributor

@tdyas tdyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@stuhood stuhood merged commit 1b8c258 into pantsbuild:main Sep 25, 2021
@stuhood stuhood deleted the stuhood/upload-tree-contents branch September 25, 2021 21:20
stuhood added a commit to stuhood/pants that referenced this pull request Sep 25, 2021
…13008)

We currently do not upload the file `Digest`s referenced by `Tree`s, which will later cause a "missing file" to be reported during eager fetch of a cache entry.

As discussed in pantsbuild#13006: we should likely have native support for storing and uploading `Tree`s, but this change fixes the immediate issue in a cherry-pickable way.

[ci skip-build-wheels]
stuhood added a commit that referenced this pull request Sep 25, 2021
#13008) (#13009)

We currently do not upload the file `Digest`s referenced by `Tree`s, which will later cause a "missing file" to be reported during eager fetch of a cache entry.

As discussed in #13006: we should likely have native support for storing and uploading `Tree`s, but this change fixes the immediate issue in a cherry-pickable way.
@wisechengyi wisechengyi mentioned this pull request Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants