Ryan Yang

Results 58 comments of Ryan Yang

Prototype done! Thanks for all the pointers! not pretty, but it does generate all the pyc files! (in our case, we use python310) ``` def maybe_precompile(ctx, srcs): """Computes all the...

> leave out the "magic tag" altogether, ... worst case you ... it just rejects and ignores the .pyc > From what I'm reading, the foo..pyc is only read from...

ah I see, python will only import the pyc in the same directory as the py file *if and only if* the original py file doesn't exist. For the consumer...

> UNCHECKED_HASH should see a speedup regardless of whether the .py sources are present. hm... maybe my testing methodology is wrong or perhaps I'm missing something? Using the site-packages for...

![image](https://github.com/bazelbuild/rules_python/assets/31294356/c4e976b7-a47f-4f92-8f66-accc7c47f26c) 😅 I was under the impression that py + pyc in the same directory would not result in speedups https://peps.python.org/pep-3147/

I think we have the following paths: - pyc + py --> we'd need to use the magic tag + pycache directory - pyc only --> no need for magic...

Assuming we want to solve for the use case of - pyc only ( will need to document caveats for multi python version build environments) - pyc + py (default...

I don't have a reliable repro; it just periodically happens when running large amounts of tests. we're in the process of upgrading to bazel 7, but still need to upgrade...

no dynamic execution (this is with a local execution with remote cache)

adding some details here: We've seen this same error in the following situations: 1. System Mem is close to OOM 2. System Mem is only at 50% usage Originally I...