Skip to content

Updating sqllogictests with cargo test --test sqllogictests -- --complete fails "failed to rename file from" #13142

Closed as not planned

Description

@findepi

This should work

cargo test --test sqllogictests -- --complete

Currently, it does not:

$ cargo test --test sqllogictests -- --complete
...
Running "information_schema_columns.slt"
Running "unnest.slt"
Running "information_schema_multiple_catalogs.slt"
Running "map.slt"
Execution error: Error completing "string/string_view.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Execution error: Error completing "string/large_string.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Execution error: Error completing "string/dictionary_utf8.slt": failed to rename file from test_files/string/string_query.slt.part.temp to test_files/string/./string_query.slt.part
Error: Execution("3 failures")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`

Caused by:
  process didn't exit successfully: `.../target/debug/deps/sqllogictests-ab68b2841bcae5a2 --complete` (exit status: 1)
...

A workaround is to --complete only individual tests, which is cumbersome.

Activity

  1. findepi commented on Oct 28, 2024

    @findepi
    MemberAuthor

    proposed solution

    fix completing with shared include files in upstream sqllogictests crate

    proposed solution 2

    provide a "sqllogictest complete" script that would invoke string tests sequentially thus avoiding the problem that they share include files

  2. jayzhan211 commented on Oct 28, 2024

    @jayzhan211
    Contributor

    Duplicated from #12752

  3. findepi commented on Oct 28, 2024

    @findepi
    MemberAuthor

    Thank you @jayzhan211 !

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions