1. 27 Dec, 2022 1 commit
    • Aaron Gokaslan's avatar
      chore: update clang-tidy to 15 (#4387) · 7f23e9f3
      Aaron Gokaslan authored
      * chore: update clang-tidy to 15
      
      * Add git
      
      * Add NOLINTNEXTLINE for assignment in if
      
      * Update CONTRIBUTING.md
      
      * Add NOLINTNEXTLINE where needed
      
      * Add one more NOLINTNEXTLINE
      
      * stl_bind: make more readable
      
      * Another missing NOLINTNEXTLINE
      
      * Match style elsewhere
      
      * Apply reviewer suggestion. Mark false positive
      7f23e9f3
  2. 15 Dec, 2022 1 commit
    • Ralf W. Grosse-Kunstleve's avatar
      ci: set `env: VERBOSE: 1` (#4405) · ece1206b
      Ralf W. Grosse-Kunstleve authored
      * Revert "Systematically add `-DCMAKE_VERBOSE_MAKEFILE=ON` to obtain full command lines related to `-Wodr` (#4398)"
      
      This reverts commit ff42f525.
      
      * Set `env: VERBOSE: 1` as suggested by @henryiii
      
      * Set `env: VERBOSE: 1` also in all other .yml files using cmake
      ece1206b
  3. 13 Dec, 2022 1 commit
  4. 07 Dec, 2022 1 commit
  5. 05 Dec, 2022 3 commits
  6. 01 Dec, 2022 1 commit
  7. 25 Nov, 2022 1 commit
  8. 12 Nov, 2022 1 commit
  9. 10 Nov, 2022 1 commit
  10. 30 Oct, 2022 1 commit
    • Chekov2k's avatar
      Add `PYBIND11_SIMPLE_GIL_MANAGEMENT` option (cmake, C++ define) (#4216) · b07d08f6
      Chekov2k authored
      * Add option to force the use of the PYPY GIL scoped acquire/release logic to support nested gil access, see https://github.com/pybind/pybind11/issues/1276 and https://github.com/pytorch/pytorch/issues/83101
      
      
      
      * Apply suggestions from code review
      
      * Update CMakeLists.txt
      
      * docs: update upgrade guide
      
      * Update docs/upgrade.rst
      
      * All bells & whistles.
      
      * Add Reminder to common.h, so that we will not forget to purge `!WITH_THREAD` branches when dropping Python 3.6
      
      * New sentence instead of semicolon.
      
      * Temporarily pull in snapshot of PR #4246
      
      * Add `test_release_acquire`
      
      * Add more unit tests for nested gil locking
      
      * Add test_report_builtins_internals_keys
      
      * Very minor enhancement: sort list only after filtering.
      
      * Revert change in docs/upgrade.rst
      
      * Add test_multi_acquire_release_cross_module, while also forcing unique PYBIND11_INTERNALS_VERSION for cross_module_gil_utils.cpp
      
      * Hopefully fix apparently new ICC error.
      
      ```
      2022-10-28T07:57:54.5187728Z -- The CXX compiler identification is Intel 2021.7.0.20220726
      ...
      2022-10-28T07:58:53.6758994Z icpc: remark #10441: The Intel(R) C++ Compiler Classic (ICC) is deprecated and will be removed from product release in the second half of 2023. The Intel(R) oneAPI DPC++/C++ Compiler (ICX) is the recommended compiler moving forward. Please transition to use this compiler. Use '-diag-disable=10441' to disable this message.
      2022-10-28T07:58:54.5801597Z In file included from /home/runner/work/pybind11/pybind11/include/pybind11/detail/../detail/type_caster_base.h(15),
      2022-10-28T07:58:54.5803794Z                  from /home/runner/work/pybind11/pybind11/include/pybind11/detail/../cast.h(15),
      2022-10-28T07:58:54.5805740Z                  from /home/runner/work/pybind11/pybind11/include/pybind11/detail/../attr.h(14),
      2022-10-28T07:58:54.5809556Z                  from /home/runner/work/pybind11/pybind11/include/pybind11/detail/class.h(12),
      2022-10-28T07:58:54.5812154Z                  from /home/runner/work/pybind11/pybind11/include/pybind11/pybind11.h(13),
      2022-10-28T07:58:54.5948523Z                  from /home/runner/work/pybind11/pybind11/tests/cross_module_gil_utils.cpp(13):
      2022-10-28T07:58:54.5949009Z /home/runner/work/pybind11/pybind11/include/pybind11/detail/../detail/internals.h(177): error #2282: unrecognized GCC pragma
      2022-10-28T07:58:54.5949374Z       PYBIND11_TLS_KEY_INIT(tstate)
      2022-10-28T07:58:54.5949579Z       ^
      2022-10-28T07:58:54.5949695Z
      ```
      
      * clang-tidy fixes
      
      * Workaround for PYPY WIN exitcode None
      
      * Revert "Temporarily pull in snapshot of PR #4246"
      
      This reverts commit 23ac16e859150f27fda25ca865cabcb4444e0770.
      
      * Another workaround for PYPY WIN exitcode None
      
      * Clean up how the tests are run "run in process" Part 1: uniformity
      
      * Clean up how the tests are run "run in process" Part 2: use `@pytest.mark.parametrize` and clean up the naming.
      
      * Skip some tests `#if defined(THREAD_SANITIZER)` (tested with TSAN using the Google-internal toolchain).
      
      * Run all tests again but ignore ThreadSanitizer exitcode 66 (this is less likely to mask unrelated ThreadSanitizer issues in the future).
      
      * bug fix: missing common.h include before using `PYBIND11_SIMPLE_GIL_MANAGEMENT`
      
      For the tests in the github CI this does not matter, because
      `PYBIND11_SIMPLE_GIL_MANAGEMENT` is always defined from the command line,
      but when monkey-patching common.h locally, it matters.
      
      * if process.exitcode is None: assert t_delta > 9.9
      
      * More sophisiticated `_run_in_process()` implementation, clearly reporting `DEADLOCK`, additionally exercised via added `intentional_deadlock()`
      
      * Wrap m.intentional_deadlock in a Python function, for `ForkingPickler` compatibility.
      
      ```
      >       ForkingPickler(file, protocol).dump(obj)
      E       TypeError: cannot pickle 'PyCapsule' object
      ```
      
      Observed with all Windows builds including mingw but not PyPy, and macos-latest with Python 3.9, 3.10, 3.11 but not 3.6.
      
      * Add link to potential solution for WOULD-BE-NICE-TO-HAVE feature.
      
      * Add `SKIP_IF_DEADLOCK = True` option, to not pollute the CI results with expected `DEADLOCK` failures while we figure out what to do about them.
      
      * Add COPY-PASTE-THIS: gdb ... command (to be used for debugging the detected deadlock)
      
      * style: pre-commit fixes
      
      * Do better than automatic pre-commit fixes.
      
      * Add `PYBIND11_SIMPLE_GIL_MANAGEMENT` to `pytest_report_header()` (so that we can easily know when harvesting deadlock information from the CI logs).
      Co-authored-by: default avatarArnim Balzer <arnim@seechange.ai>
      Co-authored-by: default avatarHenry Schreiner <HenrySchreinerIII@gmail.com>
      Co-authored-by: default avatarRalf W. Grosse-Kunstleve <rwgk@google.com>
      Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      b07d08f6
  11. 26 Oct, 2022 1 commit
  12. 23 Oct, 2022 1 commit
  13. 20 Oct, 2022 3 commits
  14. 17 Oct, 2022 1 commit
  15. 11 Oct, 2022 1 commit
  16. 07 Oct, 2022 1 commit
  17. 21 Sep, 2022 1 commit
  18. 30 Aug, 2022 1 commit
  19. 05 Aug, 2022 1 commit
  20. 01 Aug, 2022 1 commit
    • Ralf W. Grosse-Kunstleve's avatar
      Add `-DPYBIND11_WERROR=ON` to mingw cmake commands (#4073) · 36655302
      Ralf W. Grosse-Kunstleve authored
      * Add `-DPYBIND11_WERROR=ON` to mingw cmake commands (and `-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON`).
      
      * Using no-destructor idiom to side-step overzealous MINGW warning.
      
      * Add __MINGW32__ pragma GCC diagnostic ignored in eigen.h
      
      * Add another no-destructor workaround.
      
      * Temporarily add -k (keep-going) flags to hopefully speed up finding all warnings.
      
      * Revert "Temporarily add -k (keep-going) flags to hopefully speed up finding all warnings."
      
      This reverts commit f36b0af8f93e9f6f16c969fb5b646e116f5eaf0f.
      
      * Very minor shuffle to avoid MSVC warnings.
      
      * Remove all `:BOOL` as suggested by @henryiii
      36655302
  21. 29 Jul, 2022 1 commit
  22. 21 Jul, 2022 1 commit
  23. 13 Jul, 2022 1 commit
  24. 06 Jul, 2022 1 commit
  25. 04 Jul, 2022 2 commits
  26. 21 Jun, 2022 1 commit
  27. 08 Jun, 2022 1 commit
  28. 16 May, 2022 1 commit
  29. 04 May, 2022 1 commit
  30. 24 Apr, 2022 6 commits