Uh oh!
There was an error while loading. Please reload this page.
Fix remote cache miss - #748
Conversation
In some cases, the hermetic python toolchain would generate .pyc files when being used, resulting in a remote cache miss. This commit excludes generated files from the "files" filegroup to resolve this issue
1e9a39f to
d7bf5deCompare
hrfuller
left a comment
There was a problem hiding this comment.
LGTM. Could you please clarify when the pyc's are generated. Is it during some build step of the hermetic interpreter external repo?
f0rmiga
commented
Jul 12, 2022
Please, see: #713. |
jheaff1
commented
Jul 12, 2022
After reading #713, it seems that the issue shouldn’t occur if not building as root. I was indeed building as the root user “ContainerAdministrator” within a Windows Container. I’ll try building as non-root. Thanks! |
f0rmiga
commented
Jul 12, 2022
Cool! I'm working on a solution to warn the user about this. |
f0rmiga
commented
Jul 12, 2022
jheaff1
commented
Jul 13, 2022
@f0rmiga This issue does indeed go away when building as non-root, however when building as non-root in a Windows Container, symlinks cannot be created, which prevents the usage of features like Given this scenario, and perhaps others where it is troublesome to build as non-root, should we instead exclude the pyc files from the filegroup? |
f0rmiga
commented
Jul 13, 2022
Then, I guess we should exclude unconditionally under Windows only. Thanks for the extra info on Windows! |
f0rmiga
commented
Jul 13, 2022
Another thing we can add is an attribute to exclude them under Linux too. |
In some cases, the hermetic python toolchain would generate .pyc files
when being used, resulting in a remote cache miss. This commit excludes
generated files from the "files" filegroup to resolve this issue
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information