Skip to content

[R] Several nightly R jobs are failing registering factory for filesystem #46269

Closed

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

Several nightly jobs for R are failing:

They all seem to fail registering filesystems:

 ══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-s3-minio.R:64:1'): open_dataset errors if passed URIs mixing s3 and local fs ──
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
     ▆
  1. ├─testthat::expect_error(...) at tests/testthat/helper-filesystems.R:110:7
  2. │ └─testthat:::expect_condition_matching(...)
  3. │   └─testthat:::quasi_capture(...)
  4. │     ├─testthat (local) .capture(...)
  5. │     │ └─base::withCallingHandlers(...)
  6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  7. └─arrow::open_dataset(...)
  8.   └─DatasetFactory$create(...)
  9.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 10.       └─base::lapply(x, FileSystem$from_uri)
 11.         └─arrow (local) FUN(X[[i]], ...)
 12.           └─arrow:::fs___FileSystemFromUri(uri)
── Error ('test-s3-minio.R:64:1'): copy files with s3 ──────────────────────────
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
    ▆
 1. └─arrow::copy_files(uri_formatter("hive_dir"), td) at tests/testthat/helper-filesystems.R:173:7
 2.   └─arrow:::get_path_and_filesystem(to)
 3.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 4.       ├─filesystem %||% LocalFileSystem$create()
 5.       └─LocalFileSystem$create()
 6.         └─FileSystem$from_uri("file:///_")
 7.           └─arrow:::fs___FileSystemFromUri(uri)
── Error ('test-udf.R:232:3'): user-defined functions work during multi-threaded execution ──
Error: Key error: Attempted to register factory for scheme 'file' but that scheme is already registered.
Backtrace:
    ▆
 1. └─arrow::write_dataset(example_df, tf_dataset, partitioning = "part") at test-udf.R:232:3
 2.   └─arrow:::get_path_and_filesystem(path)
 3.     └─arrow:::get_paths_and_filesystem(x, filesystem)
 4.       ├─filesystem %||% LocalFileSystem$create()
 5.       └─LocalFileSystem$create()
 6.         └─FileSystem$from_uri("file:///_")
 7.           └─arrow:::fs___FileSystemFromUri(uri)

[ FAIL 3 | WARN 0 | SKIP 28 | PASS 8307 ]
Error: Test failures

Component(s)

R

Activity

  1. raulcd commented on Apr 30, 2025

    @raulcd
    MemberAuthor

    @amoeba @jonkeane @thisisnic @assignUser any idea what could be happening here?
    This seem to have started failing on the 28th, I can't see any commit that should have caused this but this was the day 20.0.0 was released and version bump happened.

  2. self-assigned this
    on May 1, 2025
  3. thisisnic commented on May 1, 2025

    @thisisnic
    Member

    I suspect it could be some of the changes in this PR perhaps? #41559

  4. jonkeane commented on May 2, 2025

    @jonkeane
    Member

    It looks like these have resolved themselves: https://github.com/ursacomputing/crossbow/actions/runs/14786266958/job/41515130801 I suspect there was something off between 19 and 20 (the jobs linked referenced arrow 19, but like @raulcd mentioned we had just bumped the version. I'm not sure why that's the case (it looks like both jobs built arrow from source regardless, so it's not that it fetched a binary that wasn't compatible).

    I'm going to close this, but please reopen if I'm wrong (or we figure out that there's something we need to update here).

  5. assignUser commented on May 7, 2025

    @assignUser
    Member

    I looked into this and discussed in zulip the issue is that these jobs use the nightly binaries, something we might want to stop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions