Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing: cxx4_test_filter (10/18) - Failed #134

Open
niko-zvt opened this issue Jun 27, 2023 · 3 comments · May be fixed by #138
Open

Testing: cxx4_test_filter (10/18) - Failed #134

niko-zvt opened this issue Jun 27, 2023 · 3 comments · May be fixed by #138

Comments

@niko-zvt
Copy link

  • netcdf-cxx4 (v4.3.1)
  • Apple M2 Pro, macosx13.3.

While running the ctest command, one of the tests (10/18) throws an error.

Log:

10/18 Testing: cxx4_test_filter
10/18 Test: cxx4_test_filter
Command: "/Users/user/dev/Libs/netcdf-cxx4-4.3.1/build/cxx4/cxx4_test_filter"
Directory: /Users/user/dev/Libs/netcdf-cxx4-4.3.1/build/cxx4
"cxx4_test_filter" start time: Jun 27 20:05 MSK
Output:
----------------------------------------------------------
Setting Filter....Caught unexpected exception.
<end of output>
Test time =   0.00 sec
----------------------------------------------------------
Test Failed.
"cxx4_test_filter" end time: Jun 27 20:05 MSK
"cxx4_test_filter" time elapsed: 00:00:00
----------------------------------------------------------

ctest --rerun-failed --output-on-failure output:

Test project /Users/user/dev/Libs/netcdf-cxx4-4.3.1/build
    Start 10: cxx4_test_filter
1/1 Test #10: cxx4_test_filter .................***Failed    0.01 sec
Setting Filter....Caught unexpected exception.

0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.02 sec

The following tests FAILED:
	 10 - cxx4_test_filter (Failed)
Errors while running CTest

@SylviaZiyuZhang
Copy link

I encountered the same issue with

  • Ubuntu 22.04.3 LTS
  • netcdf-cxx4 (v4.3.1)

@ZedThree
Copy link
Contributor

I think this is because the test hardcodes the use of the BZIP2 filter, which might not be available. If it just used the deflate filter, that should always be available

ZedThree added a commit to ZedThree/netcdf-cxx4 that referenced this issue Oct 19, 2023
Fixes Unidata#134

BZIP2 filter might not be available depending on how HDF5 was compiled
@ZedThree ZedThree linked a pull request Oct 19, 2023 that will close this issue
@mrhardman
Copy link

I believe I have met this error again

$ ctest --rerun-failed --output-on-failure
Test project /netcdf-cxx4/build
    Start 10: cxx4_test_filter
1/1 Test #10: cxx4_test_filter .................***Failed    0.04 sec
Setting Filter....Caught unexpected exception.


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   0.05 sec

The following tests FAILED:
         10 - cxx4_test_filter (Failed)
Errors while running CTest

with commit

commit 8455a69867a420cffa226978174bc0f99029bc8b (HEAD -> master, origin/master, origin/HEAD)
Merge: 6fc5213 bc61149
Author: Ward Fisher <[email protected]>
Date:   Thu Jan 9 17:03:22 2025 -0700

    Merge pull request #141 from ZedThree/cmake-optional-uninstall

    CMake: Don't add uninstall target and CPack config if not top-level

and module environment

$ module list
Currently Loaded Modulefiles:
 1) GCCcore/11.3.0                    11) libevent/2.1.12-GCCcore-11.3.0   21) libarchive/3.6.1-GCCcore-11.3.0   31) SQLite/3.38.3-GCCcore-11.3.0
 2) zlib/1.2.12-GCCcore-11.3.0        12) UCX/1.12.1-GCCcore-11.3.0        22) CMake/3.23.1-GCCcore-11.3.0       32) GMP/6.2.1-GCCcore-11.3.0
 3) binutils/2.38-GCCcore-11.3.0      13) libfabric/1.15.1-GCCcore-11.3.0  23) Szip/2.1.1-GCCcore-11.3.0         33) libffi/3.4.2-GCCcore-11.3.0
 4) GCC/11.3.0                        14) PMIx/4.1.2-GCCcore-11.3.0        24) HDF5/1.12.2-gompi-2022a           34) Python/3.10.4-GCCcore-11.3.0
 5) numactl/2.0.14-GCCcore-11.3.0     15) UCC/1.0.0-GCCcore-11.3.0         25) gzip/1.12-GCCcore-11.3.0          35) expat/2.4.8-GCCcore-11.3.0
 6) XZ/5.2.5-GCCcore-11.3.0           16) OpenMPI/4.1.4-GCC-11.3.0         26) lz4/1.9.3-GCCcore-11.3.0          36) gettext/0.21-GCCcore-11.3.0
 7) libxml2/2.9.13-GCCcore-11.3.0     17) gompi/2022a                      27) zstd/1.5.2-GCCcore-11.3.0         37) DB/18.1.40-GCCcore-11.3.0
 8) libpciaccess/0.16-GCCcore-11.3.0  18) ncurses/6.3-GCCcore-11.3.0       28) netCDF/4.9.0-gompi-2022a          38) Perl/5.34.1-GCCcore-11.3.0
 9) hwloc/2.7.1-GCCcore-11.3.0        19) bzip2/1.0.8-GCCcore-11.3.0       29) libreadline/8.1.2-GCCcore-11.3.0  39) git/2.36.0-GCCcore-11.3.0-nodocs
10) OpenSSL/1.1                       20) cURL/7.83.0-GCCcore-11.3.0       30) Tcl/8.6.12-GCCcore-11.3.0         40) FFTW/3.3.10-GCC-11.3.0

The other 17 tests pass. What are possible workarounds? Do I need to load any specific modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants