Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15145

[R] test-r-minimal-build fails due to updated error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • R

    Description

      In ARROW-15047, the error messaging in read_compressed_error() was updated to be more user-friendly - the corresponding unit test (named "Error messages are shown when the compression algorithm lz4 is not found") needs updating to reflect this change

      ── Error (test-feather.R:247:5): Error messages are shown when the compression algorithm lz4 is not found ──
      Error: NotImplemented: Support for codec 'lz4' not built
      In order to read this file, you will need to reinstall arrow with additional features enabled.
      Set one of these environment variables before installing:
      
       * Sys.setenv(LIBARROW_MINIMAL = "false") (for all optional features, including 'lz4')
       * Sys.setenv(ARROW_WITH_LZ4 = "ON") (for just 'lz4')
      
      See https://arrow.apache.org/docs/r/articles/install.html for details
      Backtrace:
           █
        1. ├─testthat::expect_error(read_feather(ft_file), msg) test-feather.R:247:4
        2. │ └─testthat:::expect_condition_matching(...)
        3. │   └─testthat:::quasi_capture(...)
        4. │     ├─testthat:::.capture(...)
        5. │     │ └─base::withCallingHandlers(...)
        6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
        7. └─arrow::read_feather(ft_file)
        8.   └─base::tryCatch(reader$Read(columns), error = read_compressed_error)
        9.     └─base:::tryCatchList(expr, classes, parentenv, handlers)
       10.       └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
       11.         └─value[[3L]](cond)
      
      [ FAIL 1 | WARN 1 | SKIP 71 | PASS 3817 ]
      Error: Test failures
      Execution halted
      
      1 error ✖ | 0 warnings ✔ | 1 note ✖
      Error: R CMD check found ERRORs
      

      https://dev.azure.com/ursacomputing/crossbow/_build/results?buildId=17433&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=d9b15392-e4ce-5e4c-0c8c-b69645229181&l=10785

      Attachments

        Issue Links

          Activity

            People

              wjones127 Will Jones
              wjones127 Will Jones
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h