netcdf-c/ncdap_test
Dennis Heimbigner df3636b959 Mitigate S3 test interference + Unlimited Dimensions in NCZarr
This PR started as an attempt to add unlimited dimensions to NCZarr.
It did that, but this exposed significant problems with test interference.
So this PR is mostly about fixing -- well mitigating anyway -- test
interference.

The problem of test interference is now documented in the document docs/internal.md.
The solutions implemented here are also describe in that document.
The solution is somewhat fragile but multiple cleanup mechanisms
are provided. Note that this feature requires that the
AWS command line utility must be installed.

## Unlimited Dimensions.
The existing NCZarr extensions to Zarr are modified to support unlimited dimensions.
NCzarr extends the Zarr meta-data for the ".zgroup" object to include netcdf-4 model extensions. This information is stored in ".zgroup" as dictionary named "_nczarr_group".
Inside "_nczarr_group", there is a key named "dims" that stores information about netcdf-4 named dimensions. The value of "dims" is a dictionary whose keys are the named dimensions. The value associated with each dimension name has one of two forms
Form 1 is a special case of form 2, and is kept for backward compatibility. Whenever a new file is written, it uses format 1 if possible, otherwise format 2.
* Form 1: An integer representing the size of the dimension, which is used for simple named dimensions.
* Form 2: A dictionary with the following keys and values"
   - "size" with an integer value representing the (current) size of the dimension.
   - "unlimited" with a value of either "1" or "0" to indicate if this dimension is an unlimited dimension.

For Unlimited dimensions, the size is initially zero, and as variables extend the length of that dimension, the size value for the dimension increases.
That dimension size is shared by all arrays referencing that dimension, so if one array extends an unlimited dimension, it is implicitly extended for all other arrays that reference that dimension.
This is the standard semantics for unlimited dimensions.

Adding unlimited dimensions required a number of other changes to the NCZarr code-base. These included the following.
* Did a partial refactor of the slice handling code in zwalk.c to clean it up.
* Added a number of tests for unlimited dimensions derived from the same test in nc_test4.
* Added several NCZarr specific unlimited tests; more are needed.
* Add test of endianness.

## Misc. Other Changes
* Modify libdispatch/ncs3sdk_aws.cpp to optionally support use of the
   AWS Transfer Utility mechanism. This is controlled by the
   ```#define TRANSFER```` command in that file. It defaults to being disabled.
* Parameterize both the standard Unidata S3 bucket (S3TESTBUCKET) and the netcdf-c test data prefix (S3TESTSUBTREE).
* Fixed an obscure memory leak in ncdump.
* Removed some obsolete unit testing code and test cases.
* Uncovered a bug in the netcdf-c handling of big-endian floats and doubles. Have not fixed yet. See tst_h5_endians.c.
* Renamed some nczarr_tests testcases to avoid name conflicts with nc_test4.
* Modify the semantics of zmap\#ncsmap_write to only allow total rewrite of objects.
* Modify the semantics of zodom to properly handle stride > 1.
* Add a truncate operation to the libnczarr zmap code.
2023-09-26 16:56:48 -06:00
..
expected3 Spelling fixes 2019-09-18 08:03:01 -06:00
expectedhyrax Mitigate S3 test interference + Unlimited Dimensions in NCZarr 2023-09-26 16:56:48 -06:00
expectremote3 Spelling fixes 2019-09-18 08:03:01 -06:00
expecttds3 ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
nocacheremote3 ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
special3 Spelling fixes 2019-09-18 08:03:01 -06:00
testdata3 Spelling fixes 2019-09-18 08:03:01 -06:00
CMakeLists.txt Mitigate S3 test interference + Unlimited Dimensions in NCZarr 2023-09-26 16:56:48 -06:00
findtestserver.c.in Cleanup the CMake inter-test dependencies 2021-12-20 15:13:08 -07:00
Makefile.am Mitigate S3 test interference + Unlimited Dimensions in NCZarr 2023-09-26 16:56:48 -06:00
manyurls.h Adding missing file ncdap_test/manyurls.h 2021-08-24 12:27:54 -06:00
pingurl.c Additional DAP4 fixes 2023-01-18 19:47:29 -07:00
run_ncdap_tests.sh
t_auth.c Use env variable USERPROFILE instead of HOME for windows and mingw. 2022-06-14 14:44:23 -06:00
t_dap3a.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
t_dap3b.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_dap3c.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_dap.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
t_misc.c Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
t_ncf330.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_srcdir.h ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
test_cvt.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
test_environment.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
test_manyurls.c Mitigate S3 test interference + Unlimited Dimensions in NCZarr 2023-09-26 16:56:48 -06:00
test_nstride_cached.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_partvar2.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_partvar.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_vara.c Reverted changes to C files. Can't change them as that messes with the 2019-11-07 15:46:50 -07:00
test_varm3.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
testauth.old
testauth.sh Update to latest main 2023-04-04 18:37:20 -06:00
testauth.sh.old
testbasicauth.sh Update to latest main 2023-04-04 18:37:20 -06:00
testcontainerauth.sh ckp 2017-07-21 13:54:09 -06:00
testurl.sh charvlen 2021-05-28 21:53:12 -06:00
tst_ber.sh getting make -j check working 2017-11-17 10:49:06 -07:00
tst_curlopt.sh Add the ability to set some additional curlopt values 2018-08-26 17:04:46 -06:00
tst_encode.sh Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00
tst_filelists.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_fillmismatch.sh Improve S3 Documentation and Support 2023-04-25 17:15:06 -06:00
tst_formatx.sh Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
tst_hyrax.sh Mitigate S3 test interference + Unlimited Dimensions in NCZarr 2023-09-26 16:56:48 -06:00
tst_longremote3.sh The ncdap_tests were a mess, so I decided to clean them up 2018-03-20 21:31:31 -06:00
tst_ncdap3.sh Update to latest main 2023-04-04 18:37:20 -06:00
tst_ncdap_shared.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_ncdap.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_nocache3.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_remote3.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_remote.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_special.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_tds.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00
tst_urls.sh Update to latest main 2023-04-04 18:37:20 -06:00
tst_utils.sh Removed precision fiddling with OSX to correct issues that resulted in remote testing. Also integrated the one-line change from https://github.com/Unidata/netcdf-c/pull/2347, which is proving problematic (for some reason). 2022-05-19 12:28:43 -06:00
tst_zero_len_var.sh Clean up some ncdap tests. 2022-03-18 21:01:40 -06:00