ripe-gigabyte-88964
04/07/2023, 4:45 PMAddress
. Do I need to define a rule telling pants how to get the subsystem and address out of my field set? I was under the impression it would already know how to do that.wide-midnight-78598
04/07/2023, 4:45 PMripe-gigabyte-88964
04/07/2023, 4:46 PMripe-gigabyte-88964
04/07/2023, 4:46 PMwide-midnight-78598
04/07/2023, 4:46 PMwide-midnight-78598
04/07/2023, 4:46 PMrules
and register
ripe-gigabyte-88964
04/07/2023, 4:46 PMripe-gigabyte-88964
04/07/2023, 4:46 PMwide-midnight-78598
04/07/2023, 4:47 PMwide-midnight-78598
04/07/2023, 4:47 PMripe-gigabyte-88964
04/07/2023, 4:54 PMaddress
and subsystem
to the hydration request dataclass. Or can I get rid of the hydration request and just make a rule that maps directly from the field set (which has everything I need) to the hydrated dataclass?wide-midnight-78598
04/07/2023, 4:55 PMripe-gigabyte-88964
04/07/2023, 5:31 PMripe-gigabyte-88964
04/07/2023, 5:31 PMripe-gigabyte-88964
04/07/2023, 7:10 PMProcess
request? I'm getting an IntrinsicError
when I try with the following error message:
Error launching process: Os { code: 2, kind: NotFound, message: "No such file or directory" }
witty-crayon-22786
04/07/2023, 7:13 PMbash -c '$original_process > somewhere'
you can redirect (located via BashBinary
).
but you might also consider capturing the stdout/stderr of your ProcessResult
instead, and then creating a digest from it with CreateDigest
ripe-gigabyte-88964
04/07/2023, 7:15 PMstdout_digest
! You literally just saved me like an hour of searching hahaharipe-gigabyte-88964
04/07/2023, 7:23 PMCreateDigest
won't work in this context because it's part of a custom package
goal implementation I'm writing. Is there a way to convert a FileDigest
to a regular Digest
?witty-crayon-22786
04/07/2023, 7:47 PMCreateDigest([FileEntry($filename, file_digest)])
ripe-gigabyte-88964
04/07/2023, 7:49 PMCreateDigest
it complains because it says the filesystem has changed and restarts the goal.witty-crayon-22786
04/07/2023, 7:49 PM2.17.x
witty-crayon-22786
04/07/2023, 7:51 PMdigest = await Get(Digest, CreateDigest([FileEntry($filename, file_digest)]))
should do it… can you share a snippet?ripe-gigabyte-88964
04/07/2023, 7:57 PMdist
directory. So if I do this
digest = await Get(Digest, CreateDigest([
FileContent(final_location_file_path, yaml.dump(location_config)),
FileContent(final_deploy_file_path, json.dumps(deploy_config))
]))
return BuiltPackage(digest, (BuiltPackageArtifact(final_location_file_path), BuiltPackageArtifact(final_deploy_file_path)))
I get this
15:57:21.15 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
15:57:21.65 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
15:57:22.16 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
15:57:22.66 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
15:57:23.17 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
15:57:23.67 [INFO] Filesystem changed during run: retrying `Package` in 500ms...
⠈
Interrupted by user.
witty-crayon-22786
04/07/2023, 7:58 PMFileContent
takes bytes
, but json.dumps
will be a string: you’ll need to encodewitty-crayon-22786
04/07/2023, 7:59 PM.pants.d/pants.log
currently, but it should be getting raised as an actual useful error instead.ripe-gigabyte-88964
04/07/2023, 8:04 PMripe-gigabyte-88964
04/14/2023, 5:51 PMdagster_pex_request = await Get(VenvPexRequest, PexRequest(
output_filename="dagster.pex",
internal_only=True,
requirements=EntireLockfile(await Get(Lockfile, Resolve(dagster_subsystem.resolve))),
inject_env={"DAGSTER_ENVIRONMENT": "LOCAL_DEV"}
))
Getting errors downloading artifacts from this and not sure where to find these logs
stderr:
There were 2 errors downloading required artifacts:
1. orjson 3.6.9 from <https://files.pythonhosted.org/packages/b0/ee/5e8bc274e5573cec50704615e3e57af1c12ba9549ffd6fb481402eda8e66/orjson-3.6.9.tar.gz>
ERROR: Command errored out with exit status 1: /Users/nick.dellosa/.cache/pants/named_caches/pex_root/venvs/0898bf1dbd31a3bb8b1e505138b2c7ad5b8eae63/2d174fd7cbeab53a668fd7075373254c14e15f80/bin/python /Users/nick.dellosa/.cache/pants/named_caches/pex_root/venvs/0898bf1dbd31a3bb8b1e505138b2c7ad5b8eae63/2d174fd7cbeab53a668fd7075373254c14e15f80/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /Users/nick.dellosa/.cache/pants/named_caches/pex_root/pip_cache/.tmp/tmpjaorja4x Check the logs for full command output.
2. psycopg2-binary 2.9.6 from <https://files.pythonhosted.org/packages/98/3e/05ab0922422c91ca0ecb5939a100f8dc2b5d15f5978433beadc87c5329bf/psycopg2-binary-2.9.6.tar.gz>
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
witty-crayon-22786
04/14/2023, 5:55 PMwitty-crayon-22786
04/14/2023, 5:55 PM