Commit Graph

245 Commits

Author SHA1 Message Date
Dennis Heimbigner
211538cf25 Modify ncdump to print char-valued variables as utf8.
re: Issue https://github.com/Unidata/netcdf-c/issues/2916

Currently, ncdump prints char-valued variables as a mix
of ascii and octal characters. The octal format is used
for non-printable ascii character values.

This PR changes this to print the char variable values
as raw binary. This means in practice that utf-8 tags
are properly interpreted and printed as utf-8.
2024-05-07 10:36:14 -06:00
Dennis Heimbigner
9d95d706c4 Merge remote-tracking branch 'Unidata/main' 2024-04-17 19:45:13 -06:00
Dennis Heimbigner
55d14d633e test1 2024-04-17 14:01:05 -06:00
Dennis Heimbigner
a669cb7bc9 debug1 2024-04-17 13:37:05 -06:00
Ward Fisher
cdfe909a1a Add CI for a Windows Runner on Github Actions. 2024-04-17 13:29:18 -05:00
Kyle Shores
dba34ac5c2 Replace ENABLE_PNETCDF with NETCDF_ENABLE_PNETCDF 2024-03-18 15:54:02 -05:00
Kyle Shores
d1334f7b88 Replace ENABLE_NCZARR with NETCDF_ENABLE_NCZARR 2024-03-18 15:52:19 -05:00
Kyle Shores
9584b4fa3b Replace ENABLE_LIBXML2 with NETCDF_ENABLE_LIBXML2 2024-03-18 15:52:09 -05:00
Kyle Shores
c5f24df396 Replace ENABLE_HDF5 with NETCDF_ENABLE_HDF5 2024-03-18 15:52:02 -05:00
Kyle Shores
376f6b8314 Replace ENABLE_HDF4 with NETCDF_ENABLE_HDF4 2024-03-18 15:52:00 -05:00
Kyle Shores
d270aa8e93 Replace ENABLE_DAP with NETCDF_ENABLE_DAP 2024-03-18 15:51:14 -05:00
Peter Hill
77df436b0d
CI: Fix version of HDF5 used in one-off test 2024-03-12 09:47:05 +00:00
Kyle Shores
1e31577a2c removing unused cmake 2024-02-23 09:36:57 -06:00
Kyle Shores
5ee4424c5b updating tests to use correct cmake variable 2024-02-23 09:25:47 -06:00
Kyle Shores
9dbf67e88c updating hdf version 2024-02-22 11:16:11 -06:00
Kyle Shores
4edb8f8424 changing all macos versions 2024-02-22 11:04:20 -06:00
Kyle Shores
ab56e9a10b bumping macos version to see if the test passes 2024-02-22 10:26:38 -06:00
Kyle Shores
dda2c2de69 merging main 2024-02-22 09:59:05 -06:00
Peter Hill
7489c3d829 CI: Don't force -fPIC in static build 2024-02-22 09:50:56 -06:00
Kyle Shores
09ab86122d undoing change to github actions, removing PIC 2024-02-21 16:27:28 -06:00
Ward Fisher
16b6344dde Add one-off static compilation test to MacOS-based GitHub actions using cmake. 2024-02-21 14:06:08 -07:00
Ward Fisher
19b2661612 Added -fPIC 2024-02-21 12:44:01 -07:00
Ward Fisher
7a4e04da6d Added serial and static configurations for cmake-based oneoff-tests as well. 2024-02-21 11:34:32 -07:00
Ward Fisher
3422c571c0 Add one-off serial tests that check static and serial-based builds. 2024-02-21 11:32:16 -07:00
Peter Hill
11d484cbe2
CI: Bump version of HDF5 1.14 2024-02-16 11:37:15 +00:00
Kyle Shores
2f04d2030b verbose build output 2024-02-13 15:57:45 -06:00
Kyle Shores
f849b169fe verbose build 2024-02-09 16:52:39 -06:00
Ward Fisher
1c0dfaa6c1 Added stanza to workflow actions so that pushed changes cancel any running tests in favor of testing the updated codebase. 2023-10-25 10:23:26 -06:00
Ward Fisher
fa8d831a83
Merge pull request #2601 from DWesl/autotools-pseudo-make-distcheck
CI: Have nc-autotools use source distribution instead of repository
2023-10-24 13:28:56 -06:00
Ward Fisher
bbcbab7a26 Clarify name of a Github Action. 2023-10-24 11:48:29 -06:00
Ward Fisher
3e341bd6e1 Turning off cdash integration for the moment, but merging PR to include other changes/updates. 2023-10-24 11:46:21 -06:00
Ward Fisher
127830e49f Shot in the dark 2023-10-24 11:42:49 -06:00
Ward Fisher
4483760d32 Adjust workflow secrets syntax. 2023-10-24 11:30:56 -06:00
Ward Fisher
ee9c9d91aa Try a different syntax. 2023-10-24 11:25:02 -06:00
Ward Fisher
4615695091 Playing around trying to nail down syntax for accessing secrets in Github Actions. 2023-10-24 11:00:17 -06:00
Ward Fisher
74df474ac7 Adjust github action config file syntax. 2023-10-24 10:55:57 -06:00
Ward Fisher
88ecadfdb0 Adjust syntax. 2023-10-24 10:51:20 -06:00
Ward Fisher
4e7a864c23 Working on automating cdash access on github. 2023-10-24 10:48:51 -06:00
Ward Fisher
7a28aefa52 Reduce cdash/ctest-based script matrix. 2023-10-24 10:32:31 -06:00
Ward Fisher
7d9baced0e Correct issue with test file. 2023-10-24 10:28:51 -06:00
Ward Fisher
b41c33805a Update cdash script file. 2023-10-24 10:18:58 -06:00
Ward Fisher
df5261ce0c Correct issue with file. 2023-10-24 10:17:13 -06:00
Ward Fisher
bce53cae08 Add first script to try to embed cdash scripts into CI. 2023-10-24 10:15:25 -06:00
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
Dennis Heimbigner
8887b5bb51 Update tinyxml and allow its use under OS/X.
re: PR https://github.com/Unidata/netcdf-c/pull/2710

Apparently (see above PR) tinyxml2 now works under OS/X.
So this PR is a follow on to the above PR. It modifies
our OS/X github action to test tinyxml2 under OS/X.
2023-06-12 20:16:23 -06:00
Dennis Heimbigner
cdbf04956b Provide a single option to disable all network access and testing.
Add the option "--disable-network-access" (automake)
or "-DENABLE_NETWORK_ACCESS=OFF" (cmake).
When disabled, this option transitively disables all
network access capabilities and testing.
If set, this option implies the following:
* --disable-dap
* --disable-byterange
* --disable-s3

This PR answers a request for a feature from Ed Hartnett.

## Misc. Other changes
* Take the opportunity to clean up some old, unused options;
e.g. --enable-multifilters.
* Fix bug in using S3 urls.
2023-06-10 14:08:04 -06:00
Ward Fisher
dd75fa343c
Merge branch 'main' into patch-2 2023-05-23 11:15:04 -06:00
Dennis Heimbigner
6c7e668a04 Remove debugging 2023-05-09 21:18:51 -06:00
Dennis Heimbigner
98477b9f25 ## Addendum [5/9/23]
It turns out that attempting to test S3 using a github action secret is a very complex process. So, this was disabled for github actions. However, a new *run_tests_s3.yml* action file was added that will eventually encapsulate S3 testing.
2023-05-09 21:13:49 -06:00
Dennis Heimbigner
f928428680 remove push trigger 2023-05-03 16:31:39 -06:00