Commit Graph

23546 Commits

Author SHA1 Message Date
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
Allen Byrne
c67feed60b
publish msi binary (#4663) 2024-07-22 09:23:46 -05:00
Allen Byrne
1fafdc9da3
Fix the examples for testing java with binaries (#4660) 2024-07-19 10:07:39 -05:00
Dana Robinson
214b4897f9
Update README.md w/ 2.0 features 2024-07-19 02:35:49 -07:00
Allen Byrne
31eda22419
Correct name of zlib_ng option (#4658) 2024-07-17 23:03:26 -05:00
mattjala
a8dcba252e
Make VOL CI run against current branch (#4654) 2024-07-17 11:57:49 -05:00
Quincey Koziol
641790b759
Eliminate more H5E_BEGIN/END_TRY macros and H5E_clear_stack() calls (#4648) 2024-07-17 07:46:06 -05:00
Allen Byrne
b3e1d6b862
Fixed usage issue with FindZLIB.cmake module (#4655)
* Add a comment on the FindZLIB.cmake module usage

* Allow choice of static/shared compression libs for Find Module

* Added new option to INSTALL_CMake file and changed option text
2024-07-16 14:21:43 -05:00
Allen Byrne
69dda039a2
Fixed FetchContent usage for new CMake reqs. (#4650)
CMake version 3.30 changed the behavior of the FetchContent module to deprecate
the use of FetchContent_Populate() in favor of FetchContent_MakeAvailable(). Therefore,
the copying of HDF specialized CMakeLists.txt files to the dependent project's source
was implemented in the FetchContent_Declare() call.
2024-07-16 09:09:31 -07:00
Gerd Heber
882404259c
Fixed messed up table captions. (#4653)
* Fixed messed up table captions. Browsers don't seem to respect relative values for width. Hardcoding 800px for now.
2024-07-16 09:56:00 -05:00
Allen Byrne
e71605966a
Update doxygen Learn Basics / example refs. Add Reference sections (#4640) 2024-07-15 22:02:08 -05:00
mattjala
e6e098b7c3
Correct H5VL_t ref count on H5O_refresh_metadata failure (#4636)
* Fix bad H5VL_t rc on H5O_refresh_metadata fail

* Decrement nrefs before raising error
2024-07-15 11:01:15 -07:00
jhendersonHDF
74fbc1dbd4
Add temporary fix for ARM64 Mac _Float16 build failure (#4639) 2024-07-15 11:28:13 -05:00
Allen Byrne
6fa09bdb15
Add h5* compiler wrapper testing for CMake #4605 (#4613)
* Add show option

* remove non-static libs and correct names of static libs

* Fixup the pkg-config libs and comp builds

* Fix commands and add fortran pkg-config test scripts

* Add help usage option
2024-07-15 10:16:16 -05:00
Allen Byrne
f8069fa850
Add tools usage text as doxygen for Tools UG (#4602) 2024-07-15 09:43:20 -05:00
Gerd Heber
4cbdf1a5f8
Feature/awesome (#4604)
* Added Doxygen Awesome and fixed a few quirks.

* Fixed unterminated strings.

* Added Doxygen Awesome by copy.
2024-07-15 08:11:58 -05:00
Dana Robinson
9b5d9680af
Clean up Fortran __float128 configure-time checks (#4649)
* Always use DECIMAL_DIG instead of LDBL_DIG. This was controlled by
  an ifdef that is always true in C99 or greater

It's confusing to use float.h C constants as variable names in
configure.ac and the PAC_FC_LDBL_DIG macro.

* Directly compare MY_FLT128_DIG and MY_LDBL_DIG

* Make uniform across CMake and Autotools
* Don't export quadmath.h variables to H5pubconf.h
2024-07-15 07:38:13 -05:00
Allen Byrne
033f2a8cb5
Add python testing for examples (#4628) 2024-07-12 21:28:38 -07:00
Allen Byrne
f7ec0c262a
Remove auto NSIS check because of issues with CI (#4646) 2024-07-12 14:22:47 -07:00
Quincey Koziol
4f7891e144
Remove some internal use of API calls and H5E_BEGIN_TRY/H5E_END_TRY (#4624) 2024-07-11 23:30:58 -07:00
Scot Breitenfeld
96acf6c739
corrected offset type in C wrapper (#4622) 2024-07-05 12:39:43 -07:00
Scot Breitenfeld
8d50786f7a
Reworked cleaning up API test files (#4626)
* Reworked cleaning up test files, only removing test files if present to account for skipped tests

* changed to using H5Fis_accessible

* update to full use of remove_test_file
2024-07-05 12:38:26 -07:00
Dana Robinson
49feed3c8a
Fix a stack size warning in ros3 VFD code (#4625)
Just makes a stack array dynamic. Valgrind shows no memory leaks.
2024-07-03 08:00:32 -07:00