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

fix: LEAP-1758: prevent use of poetry-core 2 #382

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

jombooth
Copy link
Contributor

@jombooth jombooth commented Jan 6, 2025

Fixes this error when LS SDK is used as a dependency in other builds

The Poetry configuration is invalid:
  - The fields ['name'] are required in package mode.

@farioas farioas merged commit b1bee60 into master Jan 6, 2025
4 checks passed
@nikitabelonogov nikitabelonogov deleted the fb-LEAP-1758/pin-poetry-core branch January 6, 2025 14:37
thvasilo added a commit to awslabs/graphstorm that referenced this pull request Jan 11, 2025
*Issue #, if available:*

*Description of changes:*

* poetry-core 2.0 seems to introduce some breaking changes, we try to
prevent it from being used here. See also
HumanSignal/label-studio-sdk#382

Observed errors like the following in the GSP CI
([link](https://github.com/awslabs/graphstorm/actions/runs/12716501505/job/35454257790?pr=1099)):

```
[2025-01-10T21:37:40.821Z] AWS_BATCH_JQ_NAME=graphstorm-queue-v2
[2025-01-10T21:37:40.821Z] _=/usr/bin/env
[2025-01-10T21:37:40.821Z] jobId: 0e118ab7-26f4-4086-bcc2-6b4dfbcac20b
[2025-01-10T21:37:40.821Z] jobQueue: graphstorm-queue-v2
[2025-01-10T21:37:40.821Z] computeEnvironment: graphstorm-compute-v2
[2025-01-10T21:37:40.823Z] Cloning into 'graphstorm'...
[2025-01-10T21:37:41.380Z] REMOTE: https://github.com/jalencato/graphstorm
[2025-01-10T21:37:41.380Z] SOURCE-REF: 603c8db
[2025-01-10T21:37:41.496Z] From https://github.com/jalencato/graphstorm
[2025-01-10T21:37:41.496Z]  * [new ref]         603c8db -> working
[2025-01-10T21:37:41.541Z] Switched to branch 'working'
[2025-01-10T21:37:41.940Z] Processing /usr/lib/spark/graphstorm/graphstorm-processing
[2025-01-10T21:37:41.943Z]   Installing build dependencies: started
[2025-01-10T21:37:43.300Z]   Installing build dependencies: finished with status 'done'
[2025-01-10T21:37:43.301Z]   Getting requirements to build wheel: started
[2025-01-10T21:37:43.387Z]   Getting requirements to build wheel: finished with status 'done'
[2025-01-10T21:37:43.388Z]   Preparing metadata (pyproject.toml): started
[2025-01-10T21:37:43.539Z]   Preparing metadata (pyproject.toml): finished with status 'error'
[2025-01-10T21:37:43.545Z]   error: subprocess-exited-with-error
[2025-01-10T21:37:43.545Z]   
[2025-01-10T21:37:43.545Z]   × Preparing metadata (pyproject.toml) did not run successfully.
[2025-01-10T21:37:43.545Z]   │ exit code: 1
[2025-01-10T21:37:43.545Z]   ╰─> [14 lines of output]
[2025-01-10T21:37:43.545Z]       Traceback (most recent call last):
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
[2025-01-10T21:37:43.545Z]           main()
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
[2025-01-10T21:37:43.545Z]           json_out['return_val'] = hook(**hook_input['kwargs'])
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
[2025-01-10T21:37:43.545Z]           return hook(metadata_directory, config_settings)
[2025-01-10T21:37:43.545Z]         File "/tmp/pip-build-env-t6h1_uy0/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 42, in prepare_metadata_for_build_wheel
[2025-01-10T21:37:43.545Z]           poetry = Factory().create_poetry(Path().resolve(), with_groups=False)
[2025-01-10T21:37:43.545Z]         File "/tmp/pip-build-env-t6h1_uy0/overlay/lib/python3.9/site-packages/poetry/core/factory.py", line 58, in create_poetry
[2025-01-10T21:37:43.545Z]           raise RuntimeError("The Poetry configuration is invalid:\n" + message)
[2025-01-10T21:37:43.545Z]       RuntimeError: The Poetry configuration is invalid:
[2025-01-10T21:37:43.545Z]         - project must contain ['name'] properties
[2025-01-10T21:37:43.545Z]       
[2025-01-10T21:37:43.545Z]       [end of output]
[2025-01-10T21:37:43.545Z]   
[2025-01-10T21:37:43.545Z]   note: This error originates from a subprocess, and is likely not a problem with pip.
```

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
jalencato pushed a commit to awslabs/graphstorm that referenced this pull request Jan 13, 2025
*Issue #, if available:*

*Description of changes:*

* poetry-core 2.0 seems to introduce some breaking changes, we try to
prevent it from being used here. See also
HumanSignal/label-studio-sdk#382

Observed errors like the following in the GSP CI
([link](https://github.com/awslabs/graphstorm/actions/runs/12716501505/job/35454257790?pr=1099)):

```
[2025-01-10T21:37:40.821Z] AWS_BATCH_JQ_NAME=graphstorm-queue-v2
[2025-01-10T21:37:40.821Z] _=/usr/bin/env
[2025-01-10T21:37:40.821Z] jobId: 0e118ab7-26f4-4086-bcc2-6b4dfbcac20b
[2025-01-10T21:37:40.821Z] jobQueue: graphstorm-queue-v2
[2025-01-10T21:37:40.821Z] computeEnvironment: graphstorm-compute-v2
[2025-01-10T21:37:40.823Z] Cloning into 'graphstorm'...
[2025-01-10T21:37:41.380Z] REMOTE: https://github.com/jalencato/graphstorm
[2025-01-10T21:37:41.380Z] SOURCE-REF: 603c8db
[2025-01-10T21:37:41.496Z] From https://github.com/jalencato/graphstorm
[2025-01-10T21:37:41.496Z]  * [new ref]         603c8db -> working
[2025-01-10T21:37:41.541Z] Switched to branch 'working'
[2025-01-10T21:37:41.940Z] Processing /usr/lib/spark/graphstorm/graphstorm-processing
[2025-01-10T21:37:41.943Z]   Installing build dependencies: started
[2025-01-10T21:37:43.300Z]   Installing build dependencies: finished with status 'done'
[2025-01-10T21:37:43.301Z]   Getting requirements to build wheel: started
[2025-01-10T21:37:43.387Z]   Getting requirements to build wheel: finished with status 'done'
[2025-01-10T21:37:43.388Z]   Preparing metadata (pyproject.toml): started
[2025-01-10T21:37:43.539Z]   Preparing metadata (pyproject.toml): finished with status 'error'
[2025-01-10T21:37:43.545Z]   error: subprocess-exited-with-error
[2025-01-10T21:37:43.545Z]   
[2025-01-10T21:37:43.545Z]   × Preparing metadata (pyproject.toml) did not run successfully.
[2025-01-10T21:37:43.545Z]   │ exit code: 1
[2025-01-10T21:37:43.545Z]   ╰─> [14 lines of output]
[2025-01-10T21:37:43.545Z]       Traceback (most recent call last):
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
[2025-01-10T21:37:43.545Z]           main()
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
[2025-01-10T21:37:43.545Z]           json_out['return_val'] = hook(**hook_input['kwargs'])
[2025-01-10T21:37:43.545Z]         File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
[2025-01-10T21:37:43.545Z]           return hook(metadata_directory, config_settings)
[2025-01-10T21:37:43.545Z]         File "/tmp/pip-build-env-t6h1_uy0/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 42, in prepare_metadata_for_build_wheel
[2025-01-10T21:37:43.545Z]           poetry = Factory().create_poetry(Path().resolve(), with_groups=False)
[2025-01-10T21:37:43.545Z]         File "/tmp/pip-build-env-t6h1_uy0/overlay/lib/python3.9/site-packages/poetry/core/factory.py", line 58, in create_poetry
[2025-01-10T21:37:43.545Z]           raise RuntimeError("The Poetry configuration is invalid:\n" + message)
[2025-01-10T21:37:43.545Z]       RuntimeError: The Poetry configuration is invalid:
[2025-01-10T21:37:43.545Z]         - project must contain ['name'] properties
[2025-01-10T21:37:43.545Z]       
[2025-01-10T21:37:43.545Z]       [end of output]
[2025-01-10T21:37:43.545Z]   
[2025-01-10T21:37:43.545Z]   note: This error originates from a subprocess, and is likely not a problem with pip.
```

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants