You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "raulcd (via GitHub)" <gi...@apache.org> on 2024/01/08 10:37:00 UTC
[PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
raulcd opened a new pull request, #39502:
URL: https://github.com/apache/arrow/pull/39502
I am currently just testing.
<!--
Thanks for opening a pull request!
If this is your first pull request you can find detailed information on how
to contribute here:
* [New Contributor's Guide](https://arrow.apache.org/docs/dev/developers/guide/step_by_step/pr_lifecycle.html#reviews-and-merge-of-the-pull-request)
* [Contributing Overview](https://arrow.apache.org/docs/dev/developers/overview.html)
If this is not a [minor PR](https://github.com/apache/arrow/blob/main/CONTRIBUTING.md#Minor-Fixes). Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose
Opening GitHub issues ahead of time contributes to the [Openness](http://theapacheway.com/open/#:~:text=Openness%20allows%20new%20users%20the,must%20happen%20in%20the%20open.) of the Apache Arrow project.
Then could you also rename the pull request title in the following format?
GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
or
MINOR: [${COMPONENT}] ${SUMMARY}
In the case of PARQUET issues on JIRA the title also supports:
PARQUET-${JIRA_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}
-->
### Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes.
-->
### What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR.
-->
### Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->
### Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please uncomment the line below and explain which changes are breaking.
-->
<!-- **This PR includes breaking changes to public APIs.** -->
<!--
Please uncomment the line below (and provide explanation) if the changes fix either (a) a security vulnerability, (b) a bug that caused incorrect or invalid data to be produced, or (c) a bug that causes a crash (even when the API contract is upheld). We use this to highlight fixes to issues that may affect users without their knowledge. For this reason, fixing bugs that cause errors don't count, since those are usually obvious.
-->
<!-- **This PR contains a "Critical Fix".** -->
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446448703
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
`||` is the or operator and `:` is the null operator which just returns a successful exit code. My idea was at least do not fail if jpype cannot be installed. As I recall reading that it might not be available on some systems.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446452562
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
By null operator I mean it does nothing :)
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bourne-Shell-Builtins
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1880750524
@github-actions crossbow submit verify-rc-source-integration-*
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446385164
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
Hmm, what does the trailing part (`|| :`) do?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1884617655
Revision: aacbef25bd7e0ce3b2fe3de5feb0aecb9eef82d1
Submitted crossbow builds: [ursacomputing/crossbow @ actions-3e9b96dbb5](https://github.com/ursacomputing/crossbow/branches/all?query=actions-3e9b96dbb5)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7473827572/job/20338746741)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886071260
Revision: f81632a61248a9744d4866f2347aa9d15190e832
Submitted crossbow builds: [ursacomputing/crossbow @ actions-79fa810611](https://github.com/ursacomputing/crossbow/branches/all?query=actions-79fa810611)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7483186373/job/20368042808)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1447460455
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1
Review Comment:
IMHO, no, because this is only for testing the Java side of the C Data Interface.
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1887353741
@pitrou are you ok for me merging this?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883217095
Why are we doing this? We should just install jpype on all related CI jobs.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883994749
Can we show full backtrace on error? It may provide more useful information.
Note: This is the current information:
https://github.com/ursacomputing/crossbow/actions/runs/7465391666/job/20314431537#step:6:105585
```text
<class 'AttributeError'>: Java package 'org.apache.arrow' has no attribute 'c'
```
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1884934857
We need to add the steps here to test_package_java: https://github.com/apache/arrow/blob/main/java/c/README.md
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446450377
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
Why not try without this first?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1884613715
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886935070
@github-actions crossbow submit verify-rc-source-integration-*
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885246803
Revision: 4968f36daa27e17f41840d27d903d37e30966813
Submitted crossbow builds: [ursacomputing/crossbow @ actions-fcd9aad303](https://github.com/ursacomputing/crossbow/branches/all?query=actions-fcd9aad303)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7478280465/job/20352901028)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1447444786
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1
Review Comment:
I am currently confused on what to do to be honest because I asked the same thing on the issue :) https://github.com/apache/arrow/issues/38470#issuecomment-1780956462
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885155282
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881617052
current CI failures are unrelated:
`verify-rc-source-integration-macos-arm64` is fixed in main.
`verify-rc-source-integration-macos-conda-amd64` is a different issue.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1880754345
Revision: b45f633612dd7f6a1f38a8f73351e3f784a74fcf
Submitted crossbow builds: [ursacomputing/crossbow @ actions-39ab694348](https://github.com/ursacomputing/crossbow/branches/all?query=actions-39ab694348)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293525/job/20256232273)|
|verify-rc-source-integration-linux-conda-latest-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293620/job/20256232451)|
|verify-rc-source-integration-linux-ubuntu-20.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293375/job/20256232088)|
|verify-rc-source-integration-linux-ubuntu-22.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293430/job/20256232177)|
|verify-rc-source-integration-macos-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293320/job/20256231783)|
|verify-rc-source-integration-macos-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293569/job/20256232371)|
|verify-rc-source-integration-macos-conda-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7446293500/job/20256232329)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881598343
@kou what do you think about this approach?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883620761
I'm not so familiar with Jpype. Either that, or the JAR isn't on the classpath in the first place?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885242760
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881596136
Revision: c545d60b7c432b01847ea61f6b147f3418a5184d
Submitted crossbow builds: [ursacomputing/crossbow @ actions-99fe0fa334](https://github.com/ursacomputing/crossbow/branches/all?query=actions-99fe0fa334)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501155/job/20272747300)|
|verify-rc-source-integration-linux-conda-latest-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501398/job/20272748164)|
|verify-rc-source-integration-linux-ubuntu-20.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501275/job/20272747875)|
|verify-rc-source-integration-linux-ubuntu-22.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501161/job/20272747319)|
|verify-rc-source-integration-macos-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501231/job/20272747318)|
|verify-rc-source-integration-macos-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501198/job/20272747306)|
|verify-rc-source-integration-macos-conda-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7451501367/job/20272748188)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885764138
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885025554
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881357632
Revision: 0787d5f83b08da08cdc4c8ce6254edba6dc3f688
Submitted crossbow builds: [ursacomputing/crossbow @ actions-4dbacc8820](https://github.com/ursacomputing/crossbow/branches/all?query=actions-4dbacc8820)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7449939817/job/20267724338)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883359637
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883363975
Revision: 786f99758adc6420fd479d43280d9ff70dc45121
Submitted crossbow builds: [ursacomputing/crossbow @ actions-c390121e6d](https://github.com/ursacomputing/crossbow/branches/all?query=actions-c390121e6d)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7463856220/job/20309480723)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881174113
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1444590028
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -95,14 +95,18 @@ def setup_jpype():
class _CDataBase:
def __init__(self, debug, args):
- import jpype
self.debug = debug
self.args = args
self.ffi = cdata.ffi()
- setup_jpype()
- # JPype pointers to java.io, org.apache.arrow...
- self.java_io = jpype.JPackage("java").io
- self.java_arrow = jpype.JPackage("org").apache.arrow
+ try:
+ import jpype
+ except ImportError:
+ log("jpype is not installed. Skipping setup.")
Review Comment:
How about skipping all Java tests something like the following? (I haven't run the snippet. Sorry.)
```diff
diff --git a/dev/archery/archery/integration/runner.py b/dev/archery/archery/integration/runner.py
index 7fadb7e47..c84c01168 100644
--- a/dev/archery/archery/integration/runner.py
+++ b/dev/archery/archery/integration/runner.py
@@ -552,7 +552,11 @@ def run_all_tests(with_cpp=True, with_java=True, with_js=True,
testers.append(CppTester(**kwargs))
if with_java:
- testers.append(JavaTester(**kwargs))
+ available, reason = JavaTester.check_availability():
+ if available:
+ testers.append(JavaTester(**kwargs))
+ else:
+ log(f"WARNING: Java tester isn't available: {reason}")
if with_js:
testers.append(JSTester(**kwargs))
diff --git a/dev/archery/archery/integration/tester_java.py b/dev/archery/archery/integration/tester_java.py
index 6cd1afa64..00abf3e22 100644
--- a/dev/archery/archery/integration/tester_java.py
+++ b/dev/archery/archery/integration/tester_java.py
@@ -235,6 +235,14 @@ class JavaTester(Tester):
name = 'Java'
+ @staticmethod
+ def check_availability():
+ try:
+ import jpype
+ return True
+ except ImportError as error:
+ return False, f"jpype isn't available: {error}"
+
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Detect whether we're on Java 8 or Java 9+
```
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -95,14 +95,18 @@ def setup_jpype():
class _CDataBase:
def __init__(self, debug, args):
- import jpype
self.debug = debug
self.args = args
self.ffi = cdata.ffi()
- setup_jpype()
- # JPype pointers to java.io, org.apache.arrow...
- self.java_io = jpype.JPackage("java").io
- self.java_arrow = jpype.JPackage("org").apache.arrow
+ try:
+ import jpype
+ except ImportError:
+ log("jpype is not installed. Skipping setup.")
+ else:
+ setup_jpype()
+ # JPype pointers to java.io, org.apache.arrow...
+ self.java_io = jpype.JPackage("java").io
+ self.java_arrow = jpype.JPackage("org").apache.arrow
self.java_allocator = self._make_java_allocator()
Review Comment:
```suggestion
self.java_allocator = self._make_java_allocator()
```
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1444713292
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -95,14 +95,18 @@ def setup_jpype():
class _CDataBase:
def __init__(self, debug, args):
- import jpype
self.debug = debug
self.args = args
self.ffi = cdata.ffi()
- setup_jpype()
- # JPype pointers to java.io, org.apache.arrow...
- self.java_io = jpype.JPackage("java").io
- self.java_arrow = jpype.JPackage("org").apache.arrow
+ try:
+ import jpype
+ except ImportError:
+ log("jpype is not installed. Skipping setup.")
Review Comment:
I can try that but wouldn't that mean that we would be skipping other Java tests that could be run that don't require jpype. Like flight or producer/consumer?
Maybe we could try something like:
```diff
diff --git a/dev/archery/archery/integration/tester_java.py b/dev/archery/archery/integration/tester_java.py
index 69a1d3d..fe5b76b 100644
--- a/dev/archery/archery/integration/tester_java.py
+++ b/dev/archery/archery/integration/tester_java.py
@@ -92,6 +92,14 @@ def setup_jpype():
*_JAVA_OPTS)
+functools.lru_cache
+def _enable_c_data_tests():
+ try:
+ import jpype
+ except ImportError:
+ return False
+ return True
+
class _CDataBase:
def __init__(self, debug, args):
@@ -232,10 +240,10 @@ class JavaTester(Tester):
CONSUMER = True
FLIGHT_SERVER = True
FLIGHT_CLIENT = True
- C_DATA_SCHEMA_EXPORTER = True
- C_DATA_SCHEMA_IMPORTER = True
- C_DATA_ARRAY_EXPORTER = True
- C_DATA_ARRAY_IMPORTER = True
+ C_DATA_SCHEMA_EXPORTER = _enable_c_data_tests()
+ C_DATA_SCHEMA_IMPORTER = _enable_c_data_tests()
+ C_DATA_ARRAY_EXPORTER = _enable_c_data_tests()
+ C_DATA_ARRAY_IMPORTER = _enable_c_data_tests()
name = 'Java'
```
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446455052
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
my concern was not with the CI jobs but that this is the verification script and could potentially be executed on other systems but I am ok removing it and deal with any potential issue if it arises.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1884921996
> Can we show full backtrace on error? It may provide more useful information.
I am trying to get more info but to be honest the backtrace I am able to get doesn't give any useful info as I am getting the Python stack trace:
```
(Pdb) print_stack(exc_tb.tb_frame)
File "/tmp/arrow-HEAD.w0jZv/venv-source/bin/archery", line 8, in <module>
sys.exit(archery())
File "/tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/arrow/dev/archery/archery/cli.py", line 800, in integration
run_all_tests(**args)
File "/arrow/dev/archery/archery/integration/runner.py", line 653, in run_all_tests
log(f'{exc_type}: {exc_value} \n{exc_tb.extract_stack()}')
File "/arrow/dev/archery/archery/integration/runner.py", line 130, in run_c_data
log('\n')
File "/arrow/dev/archery/archery/integration/runner.py", line 426, in _compare_c_data_implementations
with producer.make_c_data_exporter() as exporter:
File "/arrow/dev/archery/archery/integration/runner.py", line 208, in _run_test_cases
for outcome in map(case_wrapper, test_cases):
File "/arrow/dev/archery/archery/integration/runner.py", line 197, in case_wrapper
return case_runner(test_case)
File "/arrow/dev/archery/archery/integration/runner.py", line 480, in _run_c_schema_test_case
return outcome
(Pdb) from traceback import extract_stack
(Pdb) extract_stack(exc_tb.tb_frame)
[<FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/bin/archery, line 8 in <module>>, <FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py, line 1157 in __call__>, <FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py, line 1078 in main>, <FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py, line 1688 in invoke>, <FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py, line 1434 in invoke>, <FrameSummary file /tmp/arrow-HEAD.w0jZv/venv-source/lib64/python3.11/site-packages/click/core.py, line 783 in invoke>, <FrameSummary file /arrow/dev/archery/archery/cli.py, line 800 in integration>, <FrameSummary file /arrow/dev/archery/archery/integration/runner.py, line 653 in run_all_tests>, <FrameSummary file /arrow/dev/archery/archery/integration/runner.py, line 130 in run_c_data>, <FrameSummary file /arrow/dev/ar
chery/archery/integration/runner.py, line 426 in _compare_c_data_implementations>, <FrameSummary file /arrow/dev/archery/archery/integration/runner.py, line 208 in _run_test_cases>, <FrameSummary file /arrow/dev/archery/archery/integration/runner.py, line 197 in case_wrapper>, <FrameSummary file /arrow/dev/archery/archery/integration/runner.py, line 480 in _run_c_schema_test_case>]
```
If someone has any idea on what can I try.
As per the release, should this be a blocker or are we ok if we do not run `c-data` integration tests for 15.0.0?
```diff
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index ebdb493..861824f 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -919,7 +919,7 @@ test_integration() {
# Flight integration test executable have runtime dependency on release/libgtest.so
LD_LIBRARY_PATH=$ARROW_CPP_EXE_PATH:$LD_LIBRARY_PATH archery integration \
- --run-ipc --run-flight --run-c-data \
+ --run-ipc --run-flight \
--with-cpp=${TEST_INTEGRATION_CPP} \
--with-java=${TEST_INTEGRATION_JAVA} \
--with-js=${TEST_INTEGRATION_JS} \
```
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1884930414
FWIW, in the build log, arrow-c-data is not being built.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446453598
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1 || :
Review Comment:
Well, regardless, let's just first try without it?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881082565
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881353067
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1445555887
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -83,13 +82,32 @@ def setup_jpype():
import jpype
jar_path = f"{_ARROW_TOOLS_JAR}:{_ARROW_C_DATA_JAR}"
# XXX Didn't manage to tone down the logging level here (DEBUG -> INFO)
+ java_opts = _JAVA_OPTS[:]
+ proc = subprocess.run(
+ ['java', '--add-opens'],
+ stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ text=True)
+ if 'Unrecognized option: --add-opens' not in proc.stderr:
+ # Java 9+
+ java_opts.append('--add-opens=java.base/java.nio=ALL-UNNAMED')
jpype.startJVM(jpype.getDefaultJVMPath(),
"-Djava.class.path=" + jar_path,
# This flag is too heavy for IPC and Flight tests
"-Darrow.memory.debug.allocator=true",
# Reduce internal use of signals by the JVM
"-Xrs",
- *_JAVA_OPTS)
+ *java_opts)
+
+
+@functools.lru_cache
Review Comment:
Do we need this?
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -228,10 +246,10 @@ class JavaTester(Tester):
CONSUMER = True
FLIGHT_SERVER = True
FLIGHT_CLIENT = True
- C_DATA_SCHEMA_EXPORTER = True
- C_DATA_SCHEMA_IMPORTER = True
- C_DATA_ARRAY_EXPORTER = True
- C_DATA_ARRAY_IMPORTER = True
+ C_DATA_SCHEMA_EXPORTER = _enable_c_data_tests()
+ C_DATA_SCHEMA_IMPORTER = _enable_c_data_tests()
+ C_DATA_ARRAY_EXPORTER = _enable_c_data_tests()
+ C_DATA_ARRAY_IMPORTER = _enable_c_data_tests()
Review Comment:
If we want to avoid calling `_enable_c_data_tests` multiple times, we want to reuse the first result:
```suggestion
C_DATA_SCHEMA_EXPORTER = _enable_c_data_tests()
C_DATA_SCHEMA_IMPORTER = C_DATA_SCHEMA_EXPORTER
C_DATA_ARRAY_EXPORTER = C_DATA_SCHEMA_EXPORTER
C_DATA_ARRAY_IMPORTER = C_DATA_SCHEMA_EXPORTER
```
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886069044
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886938472
Revision: cae93ef7b04f5c09bce30ff3447e5f9ae20b504d
Submitted crossbow builds: [ursacomputing/crossbow @ actions-2f9f2d7415](https://github.com/ursacomputing/crossbow/branches/all?query=actions-2f9f2d7415)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084944/job/20381799799)|
|verify-rc-source-integration-linux-conda-latest-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084907/job/20381799544)|
|verify-rc-source-integration-linux-ubuntu-20.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084921/job/20381799655)|
|verify-rc-source-integration-linux-ubuntu-22.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084826/job/20381799217)|
|verify-rc-source-integration-macos-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084837/job/20381799247)|
|verify-rc-source-integration-macos-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084832/job/20381799196)|
|verify-rc-source-integration-macos-conda-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7488084920/job/20381799549)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1447442724
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1
Review Comment:
nit: this should be added as an archery dep?
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou merged PR #39502:
URL: https://github.com/apache/arrow/pull/39502
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883564954
This may mean that the JNI bridge is not compiled?
```
AttributeError: Java package 'org.apache.arrow' has no attribute 'c'
```
@jduo @lidavidm Thoughts?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881178400
Revision: 57e4f0da06888749195a52f439fef3bc401f7559
Submitted crossbow builds: [ursacomputing/crossbow @ actions-1d4d261a9e](https://github.com/ursacomputing/crossbow/branches/all?query=actions-1d4d261a9e)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7449185831/job/20265254895)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881086289
Revision: abb5adcda2ea095efe2b183156deb490b8773f0e
Submitted crossbow builds: [ursacomputing/crossbow @ actions-af4fb841fa](https://github.com/ursacomputing/crossbow/branches/all?query=actions-af4fb841fa)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7448587980/job/20263302013)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1445785931
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -83,13 +82,32 @@ def setup_jpype():
import jpype
jar_path = f"{_ARROW_TOOLS_JAR}:{_ARROW_C_DATA_JAR}"
# XXX Didn't manage to tone down the logging level here (DEBUG -> INFO)
+ java_opts = _JAVA_OPTS[:]
+ proc = subprocess.run(
+ ['java', '--add-opens'],
+ stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ text=True)
+ if 'Unrecognized option: --add-opens' not in proc.stderr:
+ # Java 9+
+ java_opts.append('--add-opens=java.base/java.nio=ALL-UNNAMED')
jpype.startJVM(jpype.getDefaultJVMPath(),
"-Djava.class.path=" + jar_path,
# This flag is too heavy for IPC and Flight tests
"-Darrow.memory.debug.allocator=true",
# Reduce internal use of signals by the JVM
"-Xrs",
- *_JAVA_OPTS)
+ *java_opts)
+
+
+@functools.lru_cache
Review Comment:
I did this so we just do the import once and cache the result. In my opinion my approach is clearer instead of reusing
`C_DATA_SCHEMA_EXPORTER` just get the result of `_enable_c_data_tests` but I am ok with both if you prefer your suggested approach. I'll let you merge feel free to push your change :)
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883580213
Revision: 6d4f93438c2accf8a56ac3150c6b0b5fab6b2a39
Submitted crossbow builds: [ursacomputing/crossbow @ actions-015878a08d](https://github.com/ursacomputing/crossbow/branches/all?query=actions-015878a08d)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391666/job/20314431537)|
|verify-rc-source-integration-linux-conda-latest-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391657/job/20314431532)|
|verify-rc-source-integration-linux-ubuntu-20.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391660/job/20314431552)|
|verify-rc-source-integration-linux-ubuntu-22.04-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391605/job/20314431251)|
|verify-rc-source-integration-macos-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391526/job/20314430824)|
|verify-rc-source-integration-macos-arm64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391703/job/20314431742)|
|verify-rc-source-integration-macos-conda-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7465391609/job/20314431266)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883576957
@github-actions crossbow submit verify-rc-source-integration-*
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886761774
Revision: cae93ef7b04f5c09bce30ff3447e5f9ae20b504d
Submitted crossbow builds: [ursacomputing/crossbow @ actions-0c3d99e8a4](https://github.com/ursacomputing/crossbow/branches/all?query=actions-0c3d99e8a4)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7487092790/job/20378796602)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885029737
Revision: 3034e8a7a3233742bebe1fdf0108274e0be1382b
Submitted crossbow builds: [ursacomputing/crossbow @ actions-483933328a](https://github.com/ursacomputing/crossbow/branches/all?query=actions-483933328a)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7476866505/job/20348256584)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1880750028
:warning: GitHub issue #38470 **has been automatically assigned in GitHub** to PR creator.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1881592897
@github-actions crossbow submit verify-rc-source-integration-*
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1446209268
##########
dev/archery/archery/integration/tester_java.py:
##########
@@ -83,13 +82,32 @@ def setup_jpype():
import jpype
jar_path = f"{_ARROW_TOOLS_JAR}:{_ARROW_C_DATA_JAR}"
# XXX Didn't manage to tone down the logging level here (DEBUG -> INFO)
+ java_opts = _JAVA_OPTS[:]
+ proc = subprocess.run(
+ ['java', '--add-opens'],
+ stderr=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ text=True)
+ if 'Unrecognized option: --add-opens' not in proc.stderr:
+ # Java 9+
+ java_opts.append('--add-opens=java.base/java.nio=ALL-UNNAMED')
jpype.startJVM(jpype.getDefaultJVMPath(),
"-Djava.class.path=" + jar_path,
# This flag is too heavy for IPC and Flight tests
"-Darrow.memory.debug.allocator=true",
# Reduce internal use of signals by the JVM
"-Xrs",
- *_JAVA_OPTS)
+ *java_opts)
+
+
+@functools.lru_cache
+def _enable_c_data_tests():
+ try:
+ import jpype # noqa: F401 # ignore unused
Review Comment:
My concern here is that the tests could be skipped if `jpype` is not available for some reason.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1883562036
The job seems to fail due to a different Java error on the C-data integration tests now.
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885160107
Revision: 07753d33ab2610200777c1cba929b74afdf10843
Submitted crossbow builds: [ursacomputing/crossbow @ actions-e06f3a65c9](https://github.com/ursacomputing/crossbow/branches/all?query=actions-e06f3a65c9)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7477686683/job/20350935065)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #39502:
URL: https://github.com/apache/arrow/pull/39502#discussion_r1447933499
##########
dev/release/verify-release-candidate.sh:
##########
@@ -904,6 +904,7 @@ test_integration() {
maybe_setup_virtualenv
pip install -e dev/archery[integration]
+ pip install jpype1
Review Comment:
Can we create a separated configuration something like `integration-java` and use it like `pip install -e dev/archery[integration-java]`?
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1885767589
Revision: 3b7a9f8468926d3ce60aeef805a6e3dd76ecf9d4
Submitted crossbow builds: [ursacomputing/crossbow @ actions-28051f3036](https://github.com/ursacomputing/crossbow/branches/all?query=actions-28051f3036)
|Task|Status|
|----|------|
|verify-rc-source-integration-linux-almalinux-8-amd64|[](https://github.com/ursacomputing/crossbow/actions/runs/7481016176/job/20361695482)|
--
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
Re: [PR] GH-38470: [CI][Integration] Avoid failing when jpype is not installed [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886758149
@github-actions crossbow submit verify-rc-source-integration-linux-almalinux-8-amd64
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1890351297
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit c78a1aeb2e328cfee713f615a5e52784866725a5.
There was 1 benchmark result indicating a performance regression:
- Commit Run on `arm64-m6g-linux-compute` at [2024-01-12 22:24:02Z](https://conbench.ursa.dev/compare/runs/3588748d83334942a818e660e69b27c1...a92ab35a819e436596859d784c53bab9/)
- [`tpch` (R) with engine=arrow, format=native, language=R, memory_map=False, query_id=TPCH-17, scale_factor=1](https://conbench.ursa.dev/compare/benchmarks/065a1a06ddc372138000c898970dcf76...065a1db9d9e173d080009a7803db0163)
The [full Conbench report](https://github.com/apache/arrow/runs/20450066128) has more details.
--
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
Re: [PR] GH-38470: [CI][Integration] Install jpype and build JNI c-data to run integration tests [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #39502:
URL: https://github.com/apache/arrow/pull/39502#issuecomment-1886935711
Thanks @kou for your help installing the JNI built package. I think this is ready for review now.
--
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