You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "sunng87 (via GitHub)" <gi...@apache.org> on 2023/03/24 06:24:53 UTC

[GitHub] [arrow-rs] sunng87 opened a new pull request, #3926: refactor: add gen-source scripts/binary to avoid pinned deps

sunng87 opened a new pull request, #3926:
URL: https://github.com/apache/arrow-rs/pull/3926

   # Which issue does this PR close?
   
   Closes #3876.
   
   # Rationale for this change
    
   As mentioned in #3876 , the pinned version of build dependencies are causing version conflicts when there is a newer version in the same project.
   
   # What changes are included in this PR?
   
   This patch makes our source generation independent from cargo build process.  It follows a great practice from https://stackoverflow.com/a/53728256 . In this patch, source code generation are moved to a separated binary `gen-source`.
   
   When we want to update the source code, simply run script `./gen-source.sh`. Since our previous update process is also manual, the developer experience should be similar or even better .
   
   # Are there any user-facing changes?
   
   No.
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] sunng87 commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "sunng87 (via GitHub)" <gi...@apache.org>.
sunng87 commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147324974


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   Never mind! I hope this can be released as soon as possible too because we are blocked by this issue.
   
   Happy Friday afternoon release!



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] sunng87 commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "sunng87 (via GitHub)" <gi...@apache.org>.
sunng87 commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147296782


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   I think with the change we can use pinned version here with no harm. It won't affect runtime because it's gated by feature. 
   



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147297833


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   I'm currently bashing out the sub-crate version, I would rather avoid adding a public feature if possible



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147281109


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   These still need to be pinned, as otherwise the vendored code can drift



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147189148


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }

Review Comment:
   Perhaps we could split these into a separate child crate?



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] sunng87 commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "sunng87 (via GitHub)" <gi...@apache.org>.
sunng87 commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147305066


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   hmm.. makes sense. 



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147281109


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   These still need to be pinned, as otherwise the vendored code can drift. I think splitting them into a child crate is the way to go here



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#discussion_r1147315199


##########
arrow-flight/Cargo.toml:
##########
@@ -46,13 +46,19 @@ clap = { version = "4.1", default-features = false, features = ["std", "derive",
 tracing-log = { version = "0.1", optional = true }
 tracing-subscriber = { version = "0.3.1", default-features = false, features = ["ansi", "fmt"], optional = true }
 
+# Build dependencies
+proc-macro2 = { version = "1.0.53", default-features = false, optional = true }
+prost-build = { version = "0.11.8", default-features = false, optional = true }

Review Comment:
   PR https://github.com/apache/arrow-rs/pull/3927 apologies for pre-empting you on this, trying to save some back and forth and really want this to make the release this afternoon :smile: 



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold commented on pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #3926:
URL: https://github.com/apache/arrow-rs/pull/3926#issuecomment-1482344058

   > Since our previous update process is also manual
   
   Could we get a CI check to make sure things stay in sync, i.e. run gen sources and check git shows no changes?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold closed pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed pull request #3926: refactor: add gen-source scripts/binary to avoid pinned deps
URL: https://github.com/apache/arrow-rs/pull/3926


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org