Skip to content

[CI][C++] Resolve ctest failures on VS 2019 builds #27538

Description

@asfimport

Running ctest on Windows after building the Arrow library with Visual Studio 2019, I regularly see these two tests fail:

  • TestStatisticsSortOrder/0.MinMax

  • TestStatistic.Int32Extremums

    Logs look like this:

    [ RUN ] TestStatisticsSortOrder/0.MinMaxD:/a/crossbow/crossbow/arrow/cpp/src/parquet/statistics_test.cc(670): error: Expectedequalityofthesevalues:
    stats_[i].min()
    Whichis: "\0\0\0\0"
    cc_metadata->statistics()->EncodeMin()
    Whichis: "\x3\0\0\0"
    D:/a/crossbow/crossbow/arrow/cpp/src/parquet/statistics_test.cc(838): error: Expected: this->VerifyParquetStats() doesn't generate new fatal failures in the current thread.
    Actual: it does.
    [ FAILED ] TestStatisticsSortOrder/0.MinMax, where TypeParam = struct parquet::PhysicalType<1> (1 ms)
    [ RUN ] TestStatistic.Int32ExtremumsD:/a/crossbow/crossbow/arrow/cpp/src/parquet/statistics_test.cc(900): error: Expectedequalityofthesevalues:
    stats->min()
    Whichis: -2147483648expected_minWhichis: 0
    [ FAILED ] TestStatistic.Int32Extremums (0ms)

    This happened in the crossbow task test-build-vcpkg-win until I removed ctest from dev/tasks/vcpkg-tests/cpp-build-vcpkg.bat to suppress it: https://github.com/ursacomputing/crossbow/actions?query=branch:actions-99-github-test-build-vcpkg-win

    This also happened when I ran the release verification script dev/release/verify-release-candidate.bat on 4.0.0 RC4 using conda for dependencies.

    Diagnose and resolve these failures.

Reporter: Ian Cook / @ianmcook
Assignee: Antoine Pitrou / @pitrou

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-11675. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions