Skip to content

Commit 4d13f8e

Browse files
committed
Merge branch 'stratus.dmh' of https://github.com/DennisHeimbigner/netcdf-c into gh2152.wif
2 parents b092f7d + 0cbc849 commit 4d13f8e

File tree

7 files changed

+36
-28
lines changed

7 files changed

+36
-28
lines changed

RELEASE_NOTES.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ This file contains a high-level description of this package's evolution. Release
1111
* [Bug Fix] Make sure that netcdf.h accurately defines the flags in the open/create mode flags. See [Github #2183](https://github.com/Unidata/netcdf-c/pull/2183).
1212
* [Enhancement] Improve support for msys2+mingw platform. See [Github #2171](https://github.com/Unidata/netcdf-c/pull/2171).
1313
* [Bug Fix] Clean up the various inter-test dependencies in ncdump for CMake. See [Github #2168](https://github.com/Unidata/netcdf-c/pull/2168).
14-
* [Enhancement] Added options to suppress the new behavior from [Github #2135](https://github.com/Unidata/netcdf-c/pull/2135). The options for `cmake` and `configure` are, respectively `-DENABLE_LIBXML2` and `--(enable/disable)-libxml2`. Both of these options defaul to 'on/enabled'. When disabled, the bundled `ezxml` XML interpreter is used regardless of whether `libxml2` is present on the system.
14+
* [Bug Fix] Fix use of non-aws appliances. See [Github #2152](https://github.com/Unidata/netcdf-c/pull/2152).
15+
* [Enhancement] Added options to suppress the new behavior from [Github #2135](https://github.com/Unidata/netcdf-c/pull/2135). The options for `cmake` and `configure` are, respectively `-DENABLE_LIBXML2` and `--(enable/disable)-libxml2`. Both of these options defaul to 'on/enabled'. When disabled, the bundled `ezxml` XML interpreter is used regardless of whether `libxml2` is present on the system.
1516
* [Enhancement] Support optional use of libxml2, otherwise default to ezxml. See [Github #2135](https://github.com/Unidata/netcdf-c/pull/2135) -- H/T to [Egbert Eich](https://github.com/e4t).
1617
* [Bug Fix] Fix several os related errors. See [Github #2138](https://github.com/Unidata/netcdf-c/pull/2138).
1718
* [Enhancement] Support byte-range reading of netcdf-3 files stored in private buckets in S3. See [Github #2134](https://github.com/Unidata/netcdf-c/pull/2134)
@@ -29,24 +30,24 @@ This file contains a high-level description of this package's evolution. Release
2930
* [Enhancement] Convert to a new representation of the NCZarr meta-data extensions: version 2. Read-only backward compatibility is provided. See [Github #2032](https://github.com/Unidata/netcdf-c/pull/2032).
3031
* [Bug Fix] Fix dimension_separator bug in libnczarr. See [Github #2035](https://github.com/Unidata/netcdf-c/pull/2035).
3132
* [Bug Fix] Fix bugs in libdap4. See [Github #2005](https://github.com/Unidata/netcdf-c/pull/2005).
32-
* [Bug Fix] Store NCZarr fillvalue as a singleton instead of a 1-element array. See [Github #2017](https://github.com/Unidata/netcdf-c/pull/2017).
33+
* [Bug Fix] Store NCZarr fillvalue as a singleton instead of a 1-element array. See [Github #2017](https://github.com/Unidata/netcdf-c/pull/2017).
3334
* [Bug Fixes] The netcdf-c library was incorrectly determining the scope of dimension; similar to the type scope problem. See [Github #2012](https://github.com/Unidata/netcdf-c/pull/2012) for more information.
34-
* [Bug Fix] Re-enable DAP2 authorization testing. See [Github #2011](https://github.com/Unidata/netcdf-c/issues/2011).
35-
* [Bug Fix] Fix bug with windows version of mkstemp that causes failure to create more than 26 temp files. See [Github #1998](https://github.com/Unidata/netcdf-c/pull/1998).
36-
* [Bug Fix] Fix ncdump bug when printing VLENs with basetype char. See [Github #1986](https://github.com/Unidata/netcdf-c/issues/1986).
35+
* [Bug Fix] Re-enable DAP2 authorization testing. See [Github #2011](https://github.com/Unidata/netcdf-c/issues/2011).
36+
* [Bug Fix] Fix bug with windows version of mkstemp that causes failure to create more than 26 temp files. See [Github #1998](https://github.com/Unidata/netcdf-c/pull/1998).
37+
* [Bug Fix] Fix ncdump bug when printing VLENs with basetype char. See [Github #1986](https://github.com/Unidata/netcdf-c/issues/1986).
3738
* [Bug Fixes] The netcdf-c library was incorrectly determining the scope of types referred to by nc_inq_type_equal. See [Github #1959](https://github.com/Unidata/netcdf-c/pull/1959) for more information.
3839
* [Bug Fix] Fix bug in use of XGetopt when building under Mingw. See [Github #2009](https://github.com/Unidata/netcdf-c/issues/2009).
3940
* [Enhancement] Improve the error reporting when attempting to use a filter for which no implementation can be found in HDF5_PLUGIN_PATH. See [Github #2000](https://github.com/Unidata/netcdf-c/pull/2000) for more information.
4041
* [Bug Fix] Fix `make distcheck` issue in `nczarr_test/` directory. See [Github #2007](https://github.com/Unidata/netcdf-c/issues/2007).
4142
* [Bug Fix] Fix bug in NCclosedir in dpathmgr.c. See [Github #2003](https://github.com/Unidata/netcdf-c/issues/2003).
42-
* [Bug Fix] Fix bug in ncdump that assumes that there is a relationship between the total number of dimensions and the max dimension id. See [Github #2004](https://github.com/Unidata/netcdf-c/issues/2004).
43-
* [Bug Fix] Fix bug in JSON processing of strings with embedded quotes. See [Github #1993](https://github.com/Unidata/netcdf-c/issues/1993).
43+
* [Bug Fix] Fix bug in ncdump that assumes that there is a relationship between the total number of dimensions and the max dimension id. See [Github #2004](https://github.com/Unidata/netcdf-c/issues/2004).
44+
* [Bug Fix] Fix bug in JSON processing of strings with embedded quotes. See [Github #1993](https://github.com/Unidata/netcdf-c/issues/1993).
4445
* [Enhancement] Add support for the new "dimension_separator" enhancement to Zarr v2. See [Github #1990](https://github.com/Unidata/netcdf-c/pull/1990) for more information.
45-
* [Bug Fix] Fix hack for handling failure of shell programs to properly handle escape characters. See [Github #1989](https://github.com/Unidata/netcdf-c/issues/1989).
46-
* [Bug Fix] Allow some primitive type names to be used as identifiers depending on the file format. See [Github #1984](https://github.com/Unidata/netcdf-c/issues/1984).
46+
* [Bug Fix] Fix hack for handling failure of shell programs to properly handle escape characters. See [Github #1989](https://github.com/Unidata/netcdf-c/issues/1989).
47+
* [Bug Fix] Allow some primitive type names to be used as identifiers depending on the file format. See [Github #1984](https://github.com/Unidata/netcdf-c/issues/1984).
4748
* [Enhancement] Add support for reading/writing pure Zarr storage format that supports the XArray _ARRAY_DIMENSIONS attribute. See [Github #1952](https://github.com/Unidata/netcdf-c/pull/1952) for more information.
4849
* [Update] Updated version of bzip2 used in filter testing/functionality, in support of [Github #1969](https://github.com/Unidata/netcdf-c/issues/1969).
49-
* [Bug Fix] Corrected HDF5 version detection logic as described in [Github #1962](https://github.com/Unidata/netcdf-c/issues/1962).
50+
* [Bug Fix] Corrected HDF5 version detection logic as described in [Github #1962](https://github.com/Unidata/netcdf-c/issues/1962).
5051

5152
## 4.8.0 - March 30, 2021
5253

include/ncs3sdk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
extern "C" {
1111
#endif
1212

13-
EXTERNL void NC_s3sdkinitialize(void);
14-
EXTERNL void NC_s3sdkfinalize(void);
13+
EXTERNL int NC_s3sdkinitialize(void);
14+
EXTERNL int NC_s3sdkfinalize(void);
1515
EXTERNL void* NC_s3sdkcreateclient(NCS3INFO* context);
1616
EXTERNL int NC_s3sdkbucketexists(void* s3client, const char* bucket, int* existsp, char** errmsgp);
1717
EXTERNL int NC_s3sdkbucketcreate(void* s3client, const char* region, const char* bucket, char** errmsgp);

libdispatch/ds3util.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ NC_s3urlrebuild(NCURI* url, NCURI** newurlp, char** bucketp, char** outregionp)
119119
if((stat = NC_getdefaults3region(url,&region0))) goto done;
120120
region = strdup(region0);
121121
}
122-
/* Construct the revised host */
123-
ncbytescat(buf,"s3.");
124-
ncbytescat(buf,region);
125-
ncbytescat(buf,AWSHOST);
126-
host = ncbytesextract(buf);
122+
if(host == NULL) { /* Construct the revised host */
123+
ncbytescat(buf,"s3.");
124+
ncbytescat(buf,region);
125+
ncbytescat(buf,AWSHOST);
126+
host = ncbytesextract(buf);
127+
}
127128

128129
/* Construct the revised path */
129130
ncbytesclear(buf);

libdispatch/ncs3sdk.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ dumps3info(NCS3INFO* info)
6565
return text;
6666
}
6767

68-
EXTERNL void
68+
EXTERNL int
6969
NC_s3sdkinitialize(void)
7070
{
7171
if(!ncs3_initialized) {
@@ -75,9 +75,10 @@ NC_s3sdkinitialize(void)
7575
Aws::InitAPI(ncs3options);
7676
NCUNTRACE(NC_NOERR);
7777
}
78+
return 1;
7879
}
7980

80-
EXTERNL void
81+
EXTERNL int
8182
NC_s3sdkfinalize(void)
8283
{
8384
if(!ncs3_finalized) {
@@ -87,6 +88,7 @@ NC_s3sdkfinalize(void)
8788
Aws::ShutdownAPI(ncs3options);
8889
NCUNTRACE(NC_NOERR);
8990
}
91+
return 1;
9092
}
9193

9294
static char*

liblib/nc_initialize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ extern int NC_HDF4_finalize(void);
4747
#endif
4848

4949
#ifdef ENABLE_S3_SDK
50-
extern int NC_s3sdkinitialize(void);
51-
extern int NC_s3sdkfinalize(void);
50+
EXTERNL int NC_s3sdkinitialize(void);
51+
EXTERNL int NC_s3sdkfinalize(void);
5252
#endif
5353

5454
#ifdef _MSC_VER

ncdap_test/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include $(top_srcdir)/lib_flags.am
1010
#SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
1111
#LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
1212
#TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver-verbose
13+
#TESTS_ENVIRONMENT += export SETX=1;
1314

1415
# Note which tests depend on other tests. Necessary for make -j check.
1516
TEST_EXTENSIONS = .sh

nczarr_test/run_interop.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,22 @@ case "$zext" in
6969
testcasezip ref_quotes zarr metaonly
7070
;;
7171
s3)
72-
# Read a test case created by netcdf-java zarr.
73-
# Move into position
74-
rm -f ${execdir}/ref_zarr_test_data.cdl
75-
if gunzip -c < ${srcdir}/ref_zarr_test_data.cdl.gz > ${execdir}/ref_zarr_test_data.cdl ; then
76-
testcases3 zarr_test_data.zarr ref_zarr_test_data xarray
72+
# Test file does not exist on stratus
73+
if test "x$NCZARR_S3_TEST_HOST" = "xs3.us-east-1.amazonaws.com" ; then
74+
# Read a test case created by netcdf-java zarr.
75+
# Move into position
76+
rm -f ${execdir}/ref_zarr_test_data.cdl
77+
if gunzip -c < ${srcdir}/ref_zarr_test_data.cdl.gz > ${execdir}/ref_zarr_test_data.cdl ; then
78+
testcases3 zarr_test_data.zarr ref_zarr_test_data xarray
79+
fi
7780
fi
7881
;;
7982
*) echo "unimplemented kind: $1" ; exit 1;;
8083
esac
8184
}
8285

83-
#testallcases file
84-
#if test "x$FEATURE_NCZARR_ZIP" = xyes ; then testallcases zip; fi
86+
testallcases file
87+
if test "x$FEATURE_NCZARR_ZIP" = xyes ; then testallcases zip; fi
8588
if test "x$FEATURE_S3TESTS" = xyes ; then testallcases s3; fi
8689
exit
8790
# Cleanup

0 commit comments

Comments
 (0)