Commit Graph

9800 Commits

Author SHA1 Message Date
Dennis Heimbigner
b2e0e5b2ea unpush 2023-12-07 15:39:11 -07:00
Dennis Heimbigner
80dd2e95c6 Fix truncate code for S3 2023-12-07 15:38:46 -07:00
Ward Fisher
05a245913f Merge remote-tracking branch 'upstream/main' 2023-12-06 10:43:24 -07:00
Dennis Heimbigner
8add5c5742 Fix bad S3 paths 2023-12-05 21:04:08 -07:00
Dennis Heimbigner
2cd383fa1c unpush 2023-12-05 21:03:26 -07:00
Dennis Heimbigner
f6eb7bc37b notnczarr 2023-12-05 20:12:31 -07:00
Dennis Heimbigner
f4e851d0f1 test1 2023-12-04 20:06:34 -07:00
Dennis Heimbigner
1deb35896f Merge branch 'awsdfalt.tmp' into awsdfalt.dmh 2023-12-04 16:50:02 -07:00
Dennis Heimbigner
a22ba177ca Merge branch 'awsdfalt.tmp' of https://github.com/DennisHeimbigner/netcdf-c into awsdfalt.tmp 2023-12-04 16:49:34 -07:00
Dennis Heimbigner
39fc0f5646 update to master 2023-12-04 16:49:26 -07:00
Ward Fisher
c2fd38d5d2
Merge pull request #2813 from DennisHeimbigner/fixes.dmh
Fix some important bugs in various files
2023-12-04 16:39:11 -07:00
Dennis Heimbigner
48009abcb7 Merge branch 'awsdfalt.tmp' of https://github.com/DennisHeimbigner/netcdf-c into awsdfalt.tmp 2023-12-04 13:19:39 -07:00
Dennis Heimbigner
9571da8f6a unpush 2023-12-04 13:14:27 -07:00
Dennis Heimbigner
41654733b0 push 2023-12-04 13:14:01 -07:00
Dennis Heimbigner
89724aba6a Cleanup some leftover test files 2023-12-04 11:02:49 -07:00
Dennis Heimbigner
25ef0fdeb1 unpush 2023-12-04 11:01:34 -07:00
Dennis Heimbigner
6a4a17fc3f cleanup 2023-12-04 11:01:17 -07:00
Dennis Heimbigner
249fba036a Merge branch 'awsdfalt.dmh' into awsdfalt.tmp 2023-12-04 10:58:05 -07:00
Dennis Heimbigner
2205abd973 Merge branch 'awsdfalt.tmp' of https://github.com/DennisHeimbigner/netcdf-c into awsdfalt.tmp 2023-12-04 10:57:22 -07:00
Dennis Heimbigner
a068be1907 replace some missing files 2023-12-03 15:09:10 -07:00
Dennis Heimbigner
e135e0d489 nothrow 2023-12-03 15:08:17 -07:00
Dennis Heimbigner
1a7c3aa682 unpush 2023-12-03 14:30:40 -07:00
Dennis Heimbigner
beec08970d missing git file 2023-12-03 14:29:05 -07:00
Edward Hartnett
298033847e adding zstandard to bm_file 2023-12-03 11:58:27 -07:00
Edward Hartnett
848a735708 adding zstandard to bm_file 2023-12-03 09:10:13 -07:00
Dennis Heimbigner
27f615bebc Properly handle missing regions in URLS
NOTE: it is important that this fix gets into 4.9.3

re: Issue https://github.com/Unidata/netcdf-c/issues/2798

## Modifications
* This PR includes PR https://github.com/Unidata/netcdf-c/pull/2813
* Support the following AWS environment variables in the internal S3 library
  (they are already supported by aws-sdk-cpp).
  - AWS_REGION
  - AWS_DEFAULT_REGION
  - AWS_ACCESS_KEY_ID
  - AWS_CONFIG_FILE
  - AWS_PROFILE
  - AWS_SECRET_ACCESS_KEY
  - (source https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html).
* Support an empty region when specifying s3.amazonaws.com as the host.
* Move some S3/AWS related functions to ds3util.c
* Add a test case to test empty region and AWS_[DEFAULT]_REGION.
2023-12-02 21:03:59 -07:00
Dennis Heimbigner
d81d95a5cc unthrow 2023-12-02 21:03:25 -07:00
Dennis Heimbigner
ccf35e41c1 final 2023-12-02 21:01:43 -07:00
Dennis Heimbigner
d6fae8165c test10 2023-12-02 19:50:34 -07:00
Dennis Heimbigner
47db31d7ab Merge branch 'awsdfalt.tmp' of https://github.com/DennisHeimbigner/netcdf-c into awsdfalt.tmp 2023-12-02 15:17:58 -07:00
Dennis Heimbigner
3b8ed2623b test1 2023-12-02 15:17:48 -07:00
Dennis Heimbigner
69ad619161 ckp 2023-12-02 12:33:08 -07:00
Dennis Heimbigner
ea7feab0d7 switch 2023-12-01 14:13:45 -07:00
Dennis Heimbigner
93bbda6acb test5 2023-11-30 21:05:40 -07:00
Dennis Heimbigner
40269f81d7 Merge branch 'awsdfalt.tmp' of https://github.com/DennisHeimbigner/netcdf-c into awsdfalt.tmp 2023-11-30 21:05:06 -07:00
Dennis Heimbigner
a525345f00 byte 2023-11-30 21:04:56 -07:00
Dennis Heimbigner
c9e9517692 Merge branch 'fixes.tmp' into awsdfalt.tmp 2023-11-30 20:51:50 -07:00
Dennis Heimbigner
ec3a7a74c3 ckp 2023-11-30 20:50:19 -07:00
Dennis Heimbigner
1341c5f0c5 test1 2023-11-30 20:08:26 -07:00
Peter Hill
3e374d8c71
Remove some unused code from ut_util library 2023-11-30 14:13:26 +00:00
Peter Hill
5f6def8b6b
Fix conditional that will always be true
`options->file` is allocated on the stack and so will never be `NULL`,
making this conditional always true. Instead, we want to check the
value of `file`. As `options` is allocated with `calloc`, we know that
`file` will be zero-initialised, and it's safe to just check the first
element
2023-11-30 14:11:58 +00:00
Peter Hill
fdff1eb123
Silence conversion warnings in nczarr tests 2023-11-30 14:11:56 +00:00
Peter Hill
507c8ab966
Remove some unneeded #ifdef guards
`chunk_size` is only used if `PRINT_CHUNK_WASTE_REPORT` is
defined. Also move the declaration of `chunk_size` inside the `#ifdef`
to silence `set-but-unused` warning
2023-11-30 14:11:21 +00:00
Peter Hill
3f4967f216
Use built-in printf hex format code 2023-11-30 14:11:21 +00:00
Ward Fisher
e4c174cb1a Merge branch 'main' of github.com:WardF/netcdf-c 2023-11-28 10:08:20 -07:00
Peter Hill
4e1ff160e1
Change signature of nczm_sortenvv to take size_t
Always called with a `size_t` and passes `n` to `qsort` which expects
a `size_t` anyway
2023-11-28 16:28:31 +00:00
Peter Hill
b05b9be9a1
Try to more consistently use size_t for argument of nclistlength 2023-11-28 16:28:31 +00:00
Peter Hill
653e09fd6d
Try to more consistently use size_t for nclistget index argument 2023-11-28 16:28:31 +00:00
Dennis Heimbigner
58dd53022f Fix some important bugs in various files
The most critical bug is in nch5s3comms.c.
I for some reason assumed that signing keys
did not contain any zero bytes. But obviously
it can, so a test was removed.

Other fixes:
1. Guarantee allocated memory is initialized to all zeros.
2. Cleanup errmsg handling in libncpoco.
3. Fix processing of aws list-objects-v2 because I misread the syntax.
2023-11-27 18:46:10 -07:00
Dennis Heimbigner
00888103ab ckp 2023-11-27 18:43:54 -07:00