You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2025/05/22 04:01:37 UTC
[PR] Kevinjqliu/show script error [iceberg-rust]
kevinjqliu opened a new pull request, #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
- Closes #.
## What changes are included in this PR?
<!--
Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates.
-->
`DEPENDENCIES.rust.tsv` files were accidentally removed as part of the 0.5.0 prep PR (#1345). It was added back and updated in the follow up PR (#1363).
I realized this happened because I did not install `cargo-deny` in my env and the dependency generation script did not error.
This PR changes generation script (`python3 ./scripts/dependencies.py generate`) to error when the underlying subprocess call (`cargo deny`) errors.
I also ran `uvx ruff format scripts/dependencies.py` to format the script
## Are these changes tested?
<!--
Specify what test covers (unit test, integration test, etc.).
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
Yes, manually
I was also able to install `cargo-deny` and confirm #1363 changes are all correct
```
cargo install --locked cargo-deny
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Make `dependencies.py generate` fail on cargo-deny error [iceberg-rust]
Posted by "liurenjie1024 (via GitHub)" <gi...@apache.org>.
liurenjie1024 commented on code in PR #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366#discussion_r2101768073
##########
scripts/dependencies.py:
##########
@@ -22,34 +22,41 @@
DIRS = [
"crates/iceberg",
-
- "crates/catalog/glue", "crates/catalog/hms",
- "crates/catalog/memory", "crates/catalog/rest",
+ "crates/catalog/glue",
+ "crates/catalog/hms",
+ "crates/catalog/memory",
+ "crates/catalog/rest",
"crates/catalog/sql",
-
"crates/integrations/datafusion",
-
- "bindings/python"
+ "bindings/python",
Review Comment:
May we just need to call `cargo metadata --no-deps --format-version 1` and process left parts with python.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Make `dependencies.py generate` fail on cargo-deny error [iceberg-rust]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366#discussion_r2102745732
##########
scripts/dependencies.py:
##########
@@ -22,34 +22,41 @@
DIRS = [
"crates/iceberg",
-
- "crates/catalog/glue", "crates/catalog/hms",
- "crates/catalog/memory", "crates/catalog/rest",
+ "crates/catalog/glue",
+ "crates/catalog/hms",
+ "crates/catalog/memory",
+ "crates/catalog/rest",
"crates/catalog/sql",
-
"crates/integrations/datafusion",
-
- "bindings/python"
+ "bindings/python",
Review Comment:
I was considering `cargo metadata` and `find . -name Cargo.toml -exec dirname {} \;` but landed with the python solution. `cargo metadata` skips the python binding subdir, `find` and the python solution is more future proof
LMK what you think!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Make `dependencies.py generate` fail on cargo-deny error [iceberg-rust]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on code in PR #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366#discussion_r2102757484
##########
scripts/dependencies.py:
##########
@@ -22,34 +22,41 @@
DIRS = [
"crates/iceberg",
-
- "crates/catalog/glue", "crates/catalog/hms",
- "crates/catalog/memory", "crates/catalog/rest",
+ "crates/catalog/glue",
+ "crates/catalog/hms",
+ "crates/catalog/memory",
+ "crates/catalog/rest",
"crates/catalog/sql",
-
"crates/integrations/datafusion",
-
- "bindings/python"
+ "bindings/python",
Review Comment:
actually i prefer this PR as is right now and moved the change to #1370 since we need to regenerate the license after adding the new directories
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Make `dependencies.py generate` fail on cargo-deny error [iceberg-rust]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu merged PR #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Make `dependencies.py generate` fail on cargo-deny error [iceberg-rust]
Posted by "liurenjie1024 (via GitHub)" <gi...@apache.org>.
liurenjie1024 commented on code in PR #1366:
URL: https://github.com/apache/iceberg-rust/pull/1366#discussion_r2101766941
##########
scripts/dependencies.py:
##########
@@ -22,34 +22,41 @@
DIRS = [
"crates/iceberg",
-
- "crates/catalog/glue", "crates/catalog/hms",
- "crates/catalog/memory", "crates/catalog/rest",
+ "crates/catalog/glue",
+ "crates/catalog/hms",
+ "crates/catalog/memory",
+ "crates/catalog/rest",
"crates/catalog/sql",
-
"crates/integrations/datafusion",
-
- "bindings/python"
+ "bindings/python",
Review Comment:
We could use following codes to list all dirs:
```bash
cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | .manifest_path | rtrimstr("/Cargo.toml")'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org