You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/07 13:18:53 UTC

[GitHub] [arrow] assignUser commented on a diff in pull request #12822: ARROW-11071: [R][CI] Use processx to set up minio and flight servers in tests

assignUser commented on code in PR #12822:
URL: https://github.com/apache/arrow/pull/12822#discussion_r845125353


##########
ci/scripts/r_test.sh:
##########
@@ -90,11 +90,23 @@ SCRIPT="as_cran <- !identical(tolower(Sys.getenv('NOT_CRAN')), 'true')
       message('Running minio for S3 tests (if build supports them)')
       minio_dir <- tempfile()
       dir.create(minio_dir)
-      pid <- sys::exec_background('minio', c('server', minio_dir))
-      on.exit(tools::pskill(pid))
+      pid_minio <- sys::exec_background('minio', c('server', minio_dir))
+      on.exit(tools::pskill(pid_minio), add = TRUE)
     }
   }
 
+  if(reticulate::py_module_available('pyarrow')){
+    message('Running flight demo server for tests.')
+    pid_flight <- sys::exec_background(
+      'R', 
+      c(
+        '-e',
+        'reticulate::import_from_path(\"demo_flight_server\", \"./inst\")\$DemoFlightServer(port = 8089)\$serve()'

Review Comment:
   I did it in R to use the same method as was used for minio, we could move both of these outside of the R script if that makes more sense for you?



-- 
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