Commit Graph

23568 Commits

Author SHA1 Message Date
bmribler
379a5baa0f
Fix inconsistent documentation of get_name functions (#4715)
- Verified that the listed functions do not include null terminator in the returned length
- Improved some of the tests
- Corrected documentation

Fixes GH-4704

* Casted a positive int to size_t
2024-08-23 11:17:35 -05:00
bmribler
a03203afbc
Replace non-VOL calls with VOL calls - part 1 (#4745)
This PR is part of the incremental switching H5I_object() and H5I_object_verify()
to their VOL counterpart, H5VL_object() and H5VL_vol_object_verify(), a newly addedinternal function.

Fixes GH-4730 partially.
2024-08-22 13:32:48 -05:00
Aleksandar Jelenak
8a8ac85a69
Return basic HTTP range GET logging to ROS3 (#4738)
* Add minimal amount of S3 request logging to ROS3

* Fix ROS3 logging ifdef conditions
2024-08-22 09:18:54 -07:00
H. Joe Lee
7a17a98e9b
Update nvhpc CI version to 24.7 (#4740) 2024-08-22 09:17:11 -07:00
H. Joe Lee
8b3041f3a3
Fix macro redefined warnings (#4744)
Removes a duplicated HDopen macro from the performance testing programs
2024-08-22 09:12:59 -07:00
H. Joe Lee
17123cd8ba
Fix enum type mismatch warning (#4741) 2024-08-21 22:40:53 -05:00
H. Joe Lee
c1cbba69c6
Use gfortran 14 for cmake-ctest.yml on mac (#4739)
* Use gfortran 14 for cmake-test on mac

* Remove notarization step

* Address @byrnHDF review
2024-08-21 21:33:13 -05:00
Quincey Koziol
679b017740
Eliminate another use of H5E_clear_stack() within the library (#4726)
* Remove call to H5E_clear_stack()

Also clean up a bunch of error macros and the return value from H5B_valid()
2024-08-21 09:28:59 -05:00
H. Joe Lee
eed772ef7f
Revert gh-pages action hash to fix daily build (#4735)
* Revert gh-pages action hash to fix daily build

See also #4734

* Revert gh-pages action hash to fix daily build
2024-08-21 07:43:58 -05:00
mattjala
4791d3416c
Fix segfault in ROS3 credential parsing (#4736)
* Fix segfault in s3 credential parsing

* Fix AWS cred parsing when >1 profile provided
2024-08-21 07:35:29 -05:00
bmribler
aea4c53654
Fix incorrect VOL vs. non-VOL calls partially (#4733)
* Fix incorrect VOL vs. non-VOL calls

H5Lget_info2() called H5I_object() instead of H5VL_vol_object() crashed
user application.
This is a wide-spread issue (GH-4730) but this PR only addresses GH-4705.

* Remove an incorrect change
2024-08-20 19:36:40 -05:00
H. Joe Lee
b11f2d0d67
Fix snapshot CI failure by adding arch name to dmg file (#4734)
See also #4732.
2024-08-20 07:38:38 -05:00
H. Joe Lee
b54cc5b8c5
Add arch name to dmg file name (#4732)
The binaries in snapshot dmg file do not work on x86_64.
2024-08-19 09:42:48 -07:00
Quincey Koziol
adc3a37e96
Fix semaphore test (#4725)
* Make counter in semaphore test an atomic variable

* Revert using atomic counter and fix counter access outside of semaphore
2024-08-19 08:53:10 -05:00
bmribler
b4731e4a85
Cleanup up tests (#4724) 2024-08-19 08:02:13 -05:00
mattjala
d25cc7d41b
Test creating unseekable file (#4720) 2024-08-19 07:35:40 -05:00
Allen Byrne
6896bf46eb
Fix the release reference name (#4721) 2024-08-16 12:04:03 -07:00
Dana Robinson
89f62a937d
Fix error return types in H5Rdeprec.c (#4722)
Copy-pasted code from elsewhere used FAIL instead of H5G_UNKNOWN
and H5I_INVALID_HID.
2024-08-16 12:03:42 -07:00
Allen Byrne
32ee132b0b
Add missing blosc2 info (#4717) 2024-08-16 12:14:04 -05:00
Allen Byrne
78fb239e83
Add secrets to release workflow (#4719) 2024-08-16 08:00:00 -07:00
Allen Byrne
819e00db91
Correct signing names and variables (#4713) 2024-08-14 16:22:50 -05:00
bmribler
70c6a7a901
Replace alias \Code with \TText (#4714)
Fixed GH-2151
2024-08-14 15:54:44 -05:00
Allen Byrne
d7e0ad5200
Change osx refs to macos (#4707) 2024-08-13 14:43:28 -05:00
Allen Byrne
9824e7f7e7
Change logic for checking secrets exists (#4711) 2024-08-13 14:28:34 -05:00
H. Joe Lee
67ff153e3c
Replace Visual Studio ???? with 2022 in MSI README file (#4709) 2024-08-13 07:42:51 -05:00
bmribler
d875f749e5
Add tests for H5R get name APIs (#4657)
Added functionality tests for the following APIs:
H5Rget_file_name
H5Rget_obj_name
H5Rget_attr_name

Also removed "+1" when returning a name length in H5R__get_attr_name().
The exter "+1" gave an incorrect value for the length of the referenced
object's attribute name.

Fixed GH-4447

* Fix Fortran test

The C API H5Rget_attr_name incorrectly added 1 to the length of the
referenced object's attribute name, so the Fortran API h5rget_attr_name_f
removed 1 from the returned value to accommodate the incorrectness.
This PR fixes H5Rget_attr_name so this workaround in h5rget_attr_name_f
is no longer needed.

* Add test H5Aget_name against H5Rget_attr_name
2024-08-12 09:40:48 -05:00
Allen Byrne
48aaf0ca1d
Add windows signing (#4703) 2024-08-09 10:41:53 -05:00
Allen Byrne
695c0f2907
Use local variable in btree2 and print value (#4679)
* Correct logic

* Technically, level 1 Express could skip tests
2024-08-08 21:57:22 -05:00
Allen Byrne
46a3a20365
Add Windows SHLWAPI lib to public interface (#4701) 2024-08-08 16:35:01 -05:00
Allen Byrne
3355a5ee4f
Add mac dmg binary and remove old macos-13 workflows (#4699) 2024-08-08 08:13:22 -05:00
bmribler
5c39fddb92
Add check of returned value from API calls. (#4702)
These were found while investigating GH-4672, but they were not related
to GH-4672.
2024-08-08 07:38:25 -05:00
Quincey Koziol
3967f2a9a0
Drop H5E_BEGIN/END_TRY and just check the error return from H5I_clear_types() (#4694)
Original case that the change in commit 2dc738a321
no longer applies.
2024-08-06 06:21:35 -05:00
Quincey Koziol
eede36f0cd
Remove another H5E_BEGIN/END_TRY within the library (#4675)
* Update logic for (deprecated) H5Gget_objinfo() call to eliminate H5E_BEGIN_TRY

* Handle case for '.' at the end of a path
2024-08-06 06:21:07 -05:00
Allen Byrne
f77b70859f
Rework Dynamic Analysis and sanitize testing (#4681)
* Ignore predetermined failing test and check pointer before use

* Rework Analysis process
2024-08-05 09:53:53 -05:00
Quincey Koziol
6061296fc7
Remove racey condition for starting threads (#4693)
Signed-off-by: Quincey Koziol <quincey@koziol.cc>
2024-08-05 07:36:47 -05:00
Allen Byrne
ac11d664db
unzip does not create extra dir (#4692) 2024-08-02 15:30:48 -05:00
jhendersonHDF
573c8bd4c9
Fix segfault when closing datatype during failure in H5Topen2 (#4683) 2024-08-02 14:49:22 -05:00
Allen Byrne
42095e32ef
Use filename in directory sync (#4691) 2024-08-02 13:27:57 -05:00
Allen Byrne
f8e82563e9
doxygen file is a zipfile (#4687) 2024-08-02 10:58:41 -05:00
dependabot[bot]
ef5dcd9a82
Bump the github-actions group with 5 updates (#4688)
Bumps the github-actions group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.7` | `4.1.8` |
| [DoozyX/clang-format-lint-action](https://github.com/doozyx/clang-format-lint-action) | `0.13` | `0.17` |
| [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `2.0.6` | `2.0.8` |
| [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.3` | `2.4.0` |
| [github/codeql-action](https://github.com/github/codeql-action) | `3.25.11` | `3.25.15` |


Updates `actions/download-artifact` from 4.1.7 to 4.1.8
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](65a9edc588...fa0a91b85d)

Updates `DoozyX/clang-format-lint-action` from 0.13 to 0.17
- [Release notes](https://github.com/doozyx/clang-format-lint-action/releases)
- [Commits](https://github.com/doozyx/clang-format-lint-action/compare/v0.13...v0.17)

Updates `softprops/action-gh-release` from 2.0.6 to 2.0.8
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](a74c6b72af...c062e08bd5)

Updates `ossf/scorecard-action` from 2.3.3 to 2.4.0
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](dc50aa9510...62b2cac7ed)

Updates `github/codeql-action` from 3.25.11 to 3.25.15
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](b611370bb5...afb54ba388)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: DoozyX/clang-format-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...
2024-08-02 10:58:09 -05:00
Allen Byrne
1be198decf
Correct the properties for using THREADS library (#4690) 2024-08-02 10:57:20 -05:00
Allen Byrne
0f620e91be
CMake link line needs to use new HDF5_ENABLE_THREADS (#4685) 2024-08-01 22:29:44 -05:00
Allen Byrne
9dad0f9abc
Add file name argument to publish workflow (#4686) 2024-08-01 15:52:46 -05:00
Scot Breitenfeld
26f052c6f2
Warning fix (#4682)
* warning fix

* warning fix
2024-08-01 11:17:06 -05:00
Quincey Koziol
9fd88560d5
Refactor threading and other concurrency support (#4469)
Complete overhaul of the concurrency-related aspects of the library (threading, atomics, locking, etc.), adding private routines in the H5TS package to allow internal algorithms to use all of these capabilities.

Adds many new features & components in the H5TS package that are equivalent to common concurrency data structures and capabilities: "regular" and recursive mutices, condition variables, semaphores, thread barriers, 'once' support, thread pools, atomic variables, thread-local keys, and spawning & joining internal threads.

Now supports C11, pthreads, and Windows threading for all H5TS capabilities, except the recursive readers/writers lock, which is not supported on Windows (because Windows threads don't provide a callback on thread-local variable deletion).

The "global" API lock is switched to use a recursive mutex from the H5TS package, instead of its own variant.

API context code (H5CX package) and error stacks (H5E package) now use the common thread-local info, instead of their own variants.

Subfiling code is switched from using Mercury threading features to the new internal H5TS features.

Removes the mercury threading code.

Adds a configure option (--enable-threads / HDF5_ENABLE_THREADS), enabled by default, to control whether threading is enabled within the library.
2024-07-31 12:34:43 -05:00
Allen Byrne
d309a40325
Fix binary examples process (#4666) 2024-07-30 07:33:46 -05:00
Larry Knox
f54abf7032
Remove outdated line from Copyright header in new files. (#4676) 2024-07-29 12:57:36 -05:00
Larry Knox
bf8f944eac
Fix incorrect indentation for permissions. (#4669) 2024-07-25 07:22:58 -05:00
bmribler
9fd4fd0b58
Replace incorrect use of an internal function (#4668)
* Replace incorrect use of an internal function

In some API functions, the internal function H5I_object() was used instead
of H5I_object_verify(), which verifies the type of an ID argument.  So
when an inappropriate ID was passed in to the affected API, it was accepted.
This behavior can cause issues at a later time, including a segfault, as
reported in issue #GH-4656.

The fix was applied to the following functions:
H5Fget_intent()
H5Fget_fileno()
H5Fget_freespace()
H5Fget_create_plist()
H5Fget_access_plist()
H5Fget_vfd_handle()
H5Dvlen_get_buf_size()
H5Fget_mdc_config()
H5Fset_mdc_config()
H5Freset_mdc_hit_rate_stats()

Fixes GH-4662
2024-07-24 10:42:58 -05:00
Allen Byrne
6cf3389241
Add publish from branch workflow (#4664) 2024-07-22 09:24:13 -05:00