futureverse / future.mirai

:rocket: R package future.mirai: A Future API for Parallel Processing using 'mirai'
https://future.mirai.futureverse.org/
21 stars 1 forks source link

CRAN: Fix issues before 2024-06-18 #11

Closed HenrikBengtsson closed 2 months ago

HenrikBengtsson commented 3 months ago

Issue

 [13s/40s] ERROR
Running the tests in ‘tests/mirai_cluster,worker-termination.R’ failed.
Complete output:
...
  <FutureError: Failed to retrieve results from MiraiFuture (<none>). The mirai framework reports on error value 19>  

  Future UUID: <NA>
  [1] 2
  Number of workers: 2
  Error: nworkers == all - 1L is not TRUE
  Execution halted

Request

From: Prof Brian Ripley Date: Tue, Jun 4, 2024 at 4:47 PM Subject: CRAN package future.mirai To: henrikb@braju.com Cc: CRAN@r-project.org

Dear maintainer,

Please see the problems shown on https://cran.r-project.org/web/checks/check_results_future.mirai.html.

Please correct before 2024-06-18 to safely retain your package on CRAN.

Do remember to look at the 'Additional issues'.

The CRAN Team

Details

* using log directory ‘/Users/ripley/R/packages/tests-devel/future.mirai.Rcheck’
* using R Under development (unstable) (2024-06-04 r86682)
* using platform: aarch64-apple-darwin23.5.0
* R was compiled by
    Apple clang version 15.0.0 (clang-1500.3.9.4)
    GNU Fortran (GCC) 14.1.0
* running under: macOS Sonoma 14.5
* using session charset: UTF-8
* using option ‘--no-stop-on-test-error’
* checking for file ‘future.mirai/DESCRIPTION’ ... OK
* this is package ‘future.mirai’ version ‘0.2.1’
* package encoding: UTF-8
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘future.mirai’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking whether startup messages can be suppressed ... OK
* checking use of S3 registration ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘demo.R’
  Running ‘dotdotdot.R’
  Running ‘future,labels.R’
  Running ‘future,lazy.R’
  Running ‘future.tests,mirai_cluster.R’ [2s/12s]
  Running ‘future.tests-mirai_multisession.R’ [2s/13s]
  Running ‘globals,formulas.R’
  Running ‘globals,manual.R’
  Running ‘globals,nested.R’
  Running ‘globals,subassignment.R’
  Running ‘globals,tricky.R’
  Running ‘mirai_cluster,worker-termination.R’
  Running ‘mirai_cluster.R’
  Running ‘nbrOfWorkers.R’
  Running ‘plan.R’
  Running ‘rng.R’
  Running ‘stdout.R’
  Running ‘zzz,future_lapply.R’
 [13s/40s] ERROR
Running the tests in ‘tests/mirai_cluster,worker-termination.R’ failed.
Complete output:
  > source("incl/start.R")
  Loading required package: future
  [11:18:50.558] plan(): Setting new future strategy stack:
  [11:18:50.559] List of future strategies:
  [11:18:50.559] 1. mirai_multisession:
  [11:18:50.559]    - args: function (expr, substitute = TRUE, envir = parent.frame(), ..., workers = availableCores())
  [11:18:50.559]    - tweaked: FALSE
  [11:18:50.559]    - call: future::plan(future.mirai::mirai_multisession)
  [11:18:50.565] plan(): plan_init() of 'mirai_multisession', 'mirai_cluster', 'mirai', 'multiprocess', 'future', 'function' ...
  [11:18:50.565] < mirai | $data >
...
  [11:18:50.949] }
  [11:18:50.951] - Launch lazy future ... done
  [11:18:50.951] run() for 'MiraiFuture' ... done
  ). The mirai framework reports on error value 19>

  Future UUID: 
  [1] 2
  Number of workers: 2
  Error: nworkers == all - 1L is not TRUE
  Execution halted
* checking PDF version of manual ... OK
* checking HTML version of manual ... OK
* checking for detritus in the temp directory ... OK
* DONE

Status: 1 ERROR
See
  ‘/Users/ripley/R/packages/tests-devel/future.mirai.Rcheck/00check.log’
for details.

       52.55 real        19.53 user         3.83 sys
HenrikBengtsson commented 2 months ago

Update the test to retry for a while (e.g. 5-10 seconds) before failing.

HenrikBengtsson commented 2 months ago

Retrying up to 5 times, every 1.0 seconds. See commit 5d8a1594.