Commit Graph

9284 Commits

Author SHA1 Message Date
Ward Fisher
a71d77bcb9 Merge branch 'restore_old_doc.wif' of https://github.com/WardF/netcdf-c into v4.9.1-wellspring.wif 2022-12-20 10:39:38 -07:00
Ward Fisher
c228426c07 Fix a logic error re: DAP4 tests, when DAP4 is specified, but hdf5/netcdf4 support is disabled. 2022-12-19 16:57:36 -07:00
Ward Fisher
dd99d60294 Added another old static html page in preparation for updating. 2022-12-19 14:55:31 -07:00
Ward Fisher
9226b52ca5 Add an old static file. 2022-12-19 10:23:10 -07:00
Dennis Heimbigner
a03bb5e601 Fix infinite loop in file inferencing
re: Issue https://github.com/Unidata/netcdf-c/issues/2573

The file type inferencer in libdispatch/dinference.c has a simple
forward inference mechanism so that the occurrence of certain mode
values in a URL fragment implies inclusion of additional mode values.
This kind of inference is notorious for leading to cycles if not
careful. Unfortunately, this occurred in the one in dinference.c.

This was fixed by providing a more complicated, but more reliable inference
mechanism.

## Misc. Other Changes
* Found and fixed a couple of memory leaks.
* There is a recent problem in building HDF4 support on github actions. Fixed by using the internal HDF4 xdr capability.
* Some filter-related code was not being properly ifdef'd with ENABLE_NCZARRA_FILTERS.
2022-12-18 13:18:00 -07:00
Dennis Heimbigner
7fd059fc4e conflicts 2022-11-27 16:49:37 -07:00
Dennis Heimbigner
65eca292e6 Merge branch 'dap4tests2.tmp' into dap4tests2.dmh 2022-11-27 14:20:48 -07:00
Dennis Heimbigner
308398627e update 2022-11-27 14:20:06 -07:00
Dennis Heimbigner
e9e44c41cd Update 2022-11-27 14:16:33 -07:00
Dennis Heimbigner
583e6a19df update 2022-11-27 14:14:23 -07:00
Ward Fisher
573e8924e1 DAP4 is back on for cmake-based builds. 2022-11-21 16:24:16 -07:00
Ward Fisher
74b4aae6c7 Update release date. 2022-11-18 15:08:24 -07:00
Ward Fisher
087d3b6c37 Supported headers for hdf4 are not installed in actions, and there does not appear (currently) to be an easy way to reinstall these. 2022-11-18 11:34:09 -07:00
Ward Fisher
19b8ae47bf Added target release date for RC2. 2022-11-17 14:56:54 -07:00
Ward Fisher
7559b86fbb Restore release date for 4.9.1 RC1 in release notes. 2022-11-17 14:56:03 -07:00
Ward Fisher
0fc2c817b2
Merge pull request #2559 from WardF/gh2132.wif
Add fenceposting for HAVE_DECL_ISINF and HAVE_DECL_ISNAN
2022-11-16 16:42:29 -07:00
Ward Fisher
4d63f03364 Fix mismatched arguments warning in CMakeLists.txt 2022-11-16 15:43:13 -07:00
Ward Fisher
ac7a080df8 Add a check for HAVE_DECL_ISINF and HAVE_DECL_ISNAN in support of https://github.com/Unidata/netcdf-c/issues/2132 2022-11-16 15:41:38 -07:00
Ward Fisher
c99f4f9378
Merge pull request #2557 from DennisHeimbigner/unknown.dmh
Suppress nczarr_test/tst_unknown filter test
2022-11-16 15:20:40 -07:00
Dennis Heimbigner
d06901f7d1 Suppress mistaken LGTM warnings 2022-11-15 20:54:01 -07:00
Dennis Heimbigner
591e6b2f6d Fix DAP4 remotetest server
Warning: This PR is a follow on to PR https://github.com/Unidata/netcdf-c/pull/2555 and should not be merged until that prior PR has been merged. The changeset for this PR is a delta on the PR https://github.com/Unidata/netcdf-c/pull/2555.

This PR re-enables the use of the server *remotetest.unidata.ucar.edu/d4ts*
to test several features:
1. Show that access over the Internet to servers using the DAP4 protocol works.
2. Test that DAP4 support in the [Thredds Data Server](https://github.com/Unidata/tds) is operating correctly.
4. Test that the DAP4 support in the [netcdf-java library](https://github.com/Unidata/netcdf-java) library and the DAP4 support in the netcdf-c library are consistent and are interoperable.

The test inputs (primarily *\*.nc* files) provided in the netcdf-c library
are also used by the DAP4 Test Server (aka d4ts) to present web access to a
collection of data files accessible via the DAP4 protocol and which can be
used for testing Internet access to a working server.

To be precise, this version of d4ts is currently in unmerged branches
of the *netcdf-java* and *tds* Github repositories and so are not actually
in the main repositories *yet*. However, the *d4ts.war* file was created
from that branch and used to populate the *remotetest.unidata.ucar.edu*
server

The two other remote servers that were used in the past are *Hyrax* (OPenDAP.org)
and *thredds-test*. These will continue to remain disabled until
those servers can be fixed.

## Primary Changes

* Rebuild the *baselineremote* directory. This directory contains the validation data needed to test the remote servers.
* Re-enable using remotetest.unidata.ucar.edu as part of the DAP4 testing process.
* Fix the *dap4_test/test_remote.sh* test script to match the current available test data.
* Make some changes to libdap4 to improve the ability to catch malformed data streams [affects a lot of files in libdap4].

## Misc. Unrelated Changes

* Remove a raft of warnings, especially in nc_test4/tst_quantize.c.
* Add some additional explanatory information to the NCZarr documentation.
* Cleanup some Doxygen errors in the docs file and reorder some files.
2022-11-15 20:29:21 -07:00
Dennis Heimbigner
6c7fa04e7a merged 2022-11-15 20:02:42 -07:00
Dennis Heimbigner
6df45e6e3b unpush 2022-11-15 19:59:11 -07:00
Dennis Heimbigner
d0ca17e763 update .yml 2022-11-15 19:57:56 -07:00
Dennis Heimbigner
53a3e9ad86 retry 2022-11-15 18:56:25 -07:00
Dennis Heimbigner
a118edc453 retry1 2022-11-15 16:19:50 -07:00
Dennis Heimbigner
887c22c681 Update Release Notes 2022-11-15 16:17:59 -07:00
Dennis Heimbigner
d37147d0ce Suppress nczarr_test/tst_unknown filter test (and its nczarr_test equivalen)
The test case nc_test4/tst_unknown.sh deletes and then restores
a filter in the plugins directory. The test nczarr_test/run_unknown.sh
also does this.  However if both are running at the same time in a
parallel bit, they apparently can interfere and can cause a race
condition failure.

The solution is to suppress one of them. Since nczarr code
is more unstable, we need to run this test. So suppress the
corresponding test in nc_test4.
2022-11-15 16:15:32 -07:00
Dennis Heimbigner
a9bf5253ba test1 2022-11-15 14:59:48 -07:00
Dennis Heimbigner
1a5f97bcee test1 2022-11-15 13:58:17 -07:00
Dennis Heimbigner
67dbe34f30 warnings 2022-11-14 21:22:57 -07:00
Dennis Heimbigner
fdeae3b0f8 push 2022-11-14 19:53:34 -07:00
Dennis Heimbigner
c1bb174ecd switch 2022-11-14 19:30:28 -07:00
Dennis Heimbigner
5d0f1ca907 debug3 2022-11-14 18:53:30 -07:00
Dennis Heimbigner
a0b05758b6 debug1 2022-11-14 18:37:25 -07:00
Dennis Heimbigner
9c1119e824 switch 2022-11-14 18:25:45 -07:00
Dennis Heimbigner
cc25aac175 remotetest 2022-11-14 12:51:09 -07:00
Dennis Heimbigner
2b17c0cc68 ckp 2022-11-13 14:35:48 -07:00
Dennis Heimbigner
835b81a285 Cleanup DAP4 testing
NOTE: This PR should not be included in 4.9.1 since additional
DAP4 related PRs will be forthcoming.

This PR makes major changes to libdap4 and dap4_test driven by changes to TDS.

* Enable DAP4
* Clean up the test input files and the test baseline comparison files. This entails:
    * Remove a multitude of unused test input and baseline data files; among them are dap4_test/: daptestfiles, dmrtestfiles, nctestfiles, and misctestfiles.
    * Define a canonical set of test input files and record in dap4_test/cdltestfiles.
    * Use the cdltestfiles to generate the .nc test inputs. This set of .nc files is then moved to the d4ts (DAP4 test server) war file in the tds repository. This set then becomes the canonical set of DAP4 test sources.
    * Scrape d4ts to obtain copies of the raw streams of DAP4 encoded data. The .dmr and .dap streams are then stored in dap4_test/rawtestfiles.
    * Disable some remote server tests until those servers are fixed.
* Add an option to ncdump (-XF) that forces the type of the _FillValue attribute; this is primarily to simplify testing of fill mismatch.
* Minor bug fixes to ncgen.
* Changes to libdap4:
    * Replace old checksum hack with the dap4.checksum flag.
    * Support the dap4.XXX controls.
    * Cleanup _FillValue handling, especially var-attribute type mismatches.
    * Fix enum handling based on changes to netcdf-java.
* Changes to dap4_test:
    * Add getopt support to various test support programs.
    * Remove unneeded shell scripts.
    * Add new scripts: test_curlopt.sh
2022-11-13 13:15:11 -07:00
Ward Fisher
06df257e22
Merge pull request #2553 from WardF/fix_dap4_ac.wif
Make dap4 reference dap instead of hard-wired to be disabled.
2022-11-11 11:22:29 -07:00
Ward Fisher
37917f0d39 Make dap4 reference dap instead of hard-wired to be disabled. 2022-11-10 14:42:37 -07:00
Ward Fisher
cbad310d20
Merge pull request #2552 from DennisHeimbigner/racecond1.dmh
Fix race condition in ncdump (and other) tests.
2022-11-09 14:22:36 -07:00
Dennis Heimbigner
683d1ffea2 Update RELEASE_NOTES.md 2022-11-09 13:43:03 -07:00
Dennis Heimbigner
c60e11302e Merge branch 'racecond1.tmp' into racecond1.dmh 2022-11-09 13:38:14 -07:00
Dennis Heimbigner
e46b83a15a ckp 2022-11-09 13:37:40 -07:00
Dennis Heimbigner
1fd0bcc78b test4 2022-11-09 13:06:05 -07:00
Dennis Heimbigner
aa459e503f Restore DAP4 functionality and testing 2022-11-09 13:03:31 -07:00
Dennis Heimbigner
929ff0a56c test3 2022-11-09 12:59:46 -07:00
Dennis Heimbigner
2943a78ebb Merge main and fix conflicts 2022-11-09 12:58:40 -07:00
Ward Fisher
773745b1d0
Merge branch 'main' into racecond1.dmh 2022-11-09 12:58:10 -07:00