Skip to content

tests in TestCopyRange fail on ppc64le with "inappropriate ioctl for device" #6898

Description

@decathorpe

From an attempted 1.8.0 build on fedora rawhide (with go 1.15, but using -tags noquic where necessary):

go test -buildmode pie -compiler gc -ldflags ' -extldflags '\''-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\''' github.com/syncthing/syncthing/lib/fs
--- FAIL: TestCopyRange (1.28s)
    --- FAIL: TestCopyRange/tmp (1.28s)
        --- FAIL: TestCopyRange/tmp/ioctl (0.22s)
            --- FAIL: TestCopyRange/tmp/ioctl/append_to_end (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/append_to_end_offsets_at_start (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/overwrite_part_of_destination_region (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/overwrite_all_of_destination (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/overwrite_part_of_destination (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/destination_gets_expanded_as_it_is_being_written_to (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/unaligned_source_offset_unaligned_size (0.01s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/unaligned_source_offset_aligned_size (0.01s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/unaligned_destination_offset_unaligned_size (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/unaligned_destination_offset_aligned_size (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/aligned_offsets_unaligned_size (0.02s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/last_block (0.01s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/whole_file_copy_block_aligned (0.01s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
            --- FAIL: TestCopyRange/tmp/ioctl/whole_file_copy_not_block_aligned (0.01s)
                filesystem_copy_range_test.go:332: inappropriate ioctl for device
FAIL
FAIL	github.com/syncthing/syncthing/lib/fs	1.604s
FAIL

Looks like the ioctl that's used for the new copyRange functionality is not available on ppc64le / POWER.
The build succeeds on all other architectures supported by fedora (x86_64, i686, armv7hl / armhfp, aarch64, s390x / System Z).

Activity

  1. added
    bug
    needs-triage
    on Aug 16, 2020
  2. added
    build
    and removed
    needs-triage
    on Aug 17, 2020
  3. AudriusButkevicius commented on Aug 18, 2020

    @AudriusButkevicius
    Member

    Do you know if this fails on ppc, ppc64 arches?

  4. decathorpe commented on Aug 18, 2020

    @decathorpe
    Author

    @AudriusButkevicius I don't have a way to check that since fedora does no longer support ppc (for ages) and ppc64 (for 2 years or so) ... so I think we also no longer have access to test machines for those architectures.

  5. added 2 commits that reference this issue on Aug 19, 2020
    758a1a6
    e4d63b2
  6. added this to the v1.9.0 milestone on Aug 19, 2020
  7. added 4 commits that reference this issue on Sep 23, 2020
    8b374f8
    2691c8f
    801db5e
    41c3654
  8. added a commit that references this issue on Sep 24, 2020
    c390565
  9. added
    frozen-due-to-age
    on Aug 19, 2021
  10. locked and limited conversation to collaborators on Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuildfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions