sparse-lifeguard-95737
06/02/2022, 10:08 PMplatform_tag
in each lockfile from:
"platform_tag": [
"cp38",
"cp38",
"macosx_12_0_x86_64"
]
to:
"platform_tag": [
"cp38",
"cp38",
"manylinux_2_31_x86_64"
]
and vice-versa, depending on the OS of the developer making the change
we haven’t noticed any negative results from this other than confusion during code review, and I see artifacts for all platforms listed in the lockfile regardless. what’s the purpose of platform_tag
? do we need to worry about it flapping back and forth between values?square-forest-55300
06/03/2022, 2:48 AMsquare-forest-55300
06/03/2022, 2:49 AMrhythmic-morning-87313
06/03/2022, 3:09 AM${{ runner.os }}-
only as the doc/example suggests? The workflow log always says that "it is not saving the cache because the cache is hit", meaning that any newly updated contents would not reside inside the cache.rhythmic-morning-87313
06/03/2022, 3:11 AMhashFiles()
or some other mechanism that lets actions/cache
know if the cache requires update.rhythmic-morning-87313
06/03/2022, 3:11 AMhashFiles()
against the lock files and pants.toml
, for instance?curved-television-6568
06/03/2022, 5:47 AMambitious-actor-36781
06/03/2022, 5:56 AMrefined-addition-53644
06/03/2022, 5:53 PMpants
with aws codeartifact?
I see internally we are using it with npm packages.
Codeartifact does support pip. Not sure how would I integrate it with pants though?polite-garden-50641
06/03/2022, 6:03 PMbrainy-solstice-27042
06/03/2022, 7:28 PMgorgeous-eve-12553
06/03/2022, 7:34 PMbitter-ability-32190
06/04/2022, 12:51 AMbusy-vase-39202
06/04/2022, 12:53 AMbitter-ability-32190
06/04/2022, 12:54 AM./pants run
. Having so many ideas is hard work 😅busy-vase-39202
06/04/2022, 12:55 AMbitter-ability-32190
06/04/2022, 12:57 AMbusy-vase-39202
06/04/2022, 12:58 AMtall-kangaroo-21898
06/06/2022, 8:15 AMfirebase-admin==5.2.0
as a python dependency to our project, but when I run ./pants generate-lockfiles --resolve=python-default
it seems to hang on "Generate lockfile for python-default" (now for 1 hour), is there any way to debug this?bitter-ability-32190
06/06/2022, 12:40 PM./script-runner devops docs generate
would invoke a shell script at /scripts/devops/docs/generate.sh
, in turn that script run ./pants run path/to/the/script.py
. Now we
can rename or move or change implementations without rewiring brains or other scripts.
I want to "bring this into Pants" a bit more, if nothing more than to ensure the Pants spec in the shell script is valid.
My thoughts are:
• Try and implement a linter for these scripts. Match probable pants commands and specs and then error if the spec isn't valid
• Bring the whole system into pants. Then the world is my oyster with a new goal, could be a single TOML file or spread or whatever. Lots more thought and plumbing though
Anyone else do something similar? Have ideas?quaint-forest-8735
06/06/2022, 2:53 PMfaint-businessperson-86903
06/06/2022, 3:19 PMpython_awslambda
, with this resolver error being raised when the function is invoked:
[ERROR] ResolveError: A distribution for orjson could not be resolved in this environment.Found 1 distribution for orjson that do not apply:
1.) The wheel tags for orjson 3.7.1 are cp38-cp38-manylinux_2_28_x86_64 which do not match the supported tags of DistributionTarget(interpreter=PythonInterpreter('/var/lang/bin/python3.8', PythonIdentity('/var/lang/bin/python3.8', 'cp38', 'cp38', 'manylinux_2_26_x86_64', (3, 8, 13)))):
cp38-cp38-manylinux_2_26_x86_64
cp38-cp38-manylinux_2_25_x86_64
cp38-cp38-manylinux_2_24_x86_64
cp38-cp38-manylinux_2_23_x86_64
cp38-cp38-manylinux_2_22_x86_64
cp38-cp38-manylinux_2_21_x86_64
...
Does anyone happen to know what can be done here? Am I to believe that the cp38-cp38-manylinux_2_28_x86_64
platform is not compatible with that of the lambda runtime?adamant-umbrella-23142
06/06/2022, 4:50 PMadamant-umbrella-23142
06/06/2022, 4:50 PMadamant-umbrella-23142
06/06/2022, 4:51 PMrefined-activity-15169
06/06/2022, 7:42 PMcool-printer-74432
06/06/2022, 10:45 PMdist/codegen
? E.g., _pb2.py
from protobuf_sources
. Pointing VSCode at the virtualenv created by pants export
gives me a mostly usable VSCode experience, but I still get mypy errors inside VSCode about missing _pb2
modules. I found that I can add symlinks in the same directories as my .proto
files that point to the generated files in dist/codegen
. And add *_pb2.py
and *_pb2.pyi
to .gitignore
. But this feels, uh, pretty kludgy.narrow-vegetable-37489
06/06/2022, 11:13 PM./pants publish
being rather flaky when building docker images? --> 🧵mysterious-motherboard-97366
06/07/2022, 7:30 AMresolve
for all python_sources
targets. Is it possible to configure ./pants tailor
to do that when adding more targets? I tried to make a macro, for use with https://www.pantsbuild.org/docs/reference-tailor#section-alias-mapping, but I got an error: Exception: Error parsing prelude file pants-plugins/macros.py: name 'parametrize' is not defined
My underlying motivation is very similar to https://pantsbuild.slack.com/archives/C046T6T9U/p1651762568623679?thread_ts=1651755337.307249&cid=C046T6T9U but for torch instead of jax.freezing-quill-50372
06/07/2022, 11:26 AMoptional
keyword, so it should be compiled successfully (I already tried on protoc >= 3.15 and checked that it was compiled without errors)
syntax = "proto3";
package testing;
message SomeRequest {
string required_field = 1;
optional int32 optional_field;
}
However, when I execute ./pantsexport-codegen ::
, it said Explicit 'optional' labels are disallowed in the Proto3 syntax. To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default.
. How to resolve it ?