Title: [3.15] gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.add sitedir() (#149659) by warsaw · Pull Request #149799 · python/cpython · GitHub
Open Graph Title: [3.15] gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.add sitedir() (#149659) by warsaw · Pull Request #149799 · python/cpython
X Title: [3.15] gh-149504: Fix re-entrancy bug when .pth/.start file invokes site.add sitedir() (#149659) by warsaw · Pull Request #149799 · python/cpython
Description: Add re-entrant tests for gh-149504 Add end-to-end integration test coverage This ensures that future whitebox internal test changes do not regress the public surface semantics. Implement a state class to process .pth and .start files By using this state class and managing implicit and explicit batching, we make it structurally impossible to get bitten by re-entrant site startup processing. Fixes #149504 (cherry picked from commit b162307)
Open Graph Description: Add re-entrant tests for gh-149504 Add end-to-end integration test coverage This ensures that future whitebox internal test changes do not regress the public surface semantics. Implement a state ...
X Description: Add re-entrant tests for gh-149504 Add end-to-end integration test coverage This ensures that future whitebox internal test changes do not regress the public surface semantics. Implement a state ...
Opengraph URL: https://github.com/python/cpython/pull/149799
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:273e9d85-b596-7432-cdfa-9e53164295d1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B642:3C39A9:5AF4A87:7F5E800:6A5726A5 |
| html-safe-nonce | e7680c4bdef109f8053644e621b2509c93aba797a1485d41f01497d47635d37f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjQyOjNDMzlBOTo1QUY0QTg3OjdGNUU4MDA6NkE1NzI2QTUiLCJ2aXNpdG9yX2lkIjoiNzY4ODAxMDE4MzM4NjUzOTY4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02a31f7392a0c253132a9fb6de4b076bf79402bf6e7d9dec08dc7923436db9b0 |
| hovercard-subject-tag | pull_request:3678416568 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/149799/files |
| twitter:image | https://avatars.githubusercontent.com/u/210184?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/210184?s=400&v=4 |
| og:image:alt | Add re-entrant tests for gh-149504 Add end-to-end integration test coverage This ensures that future whitebox internal test changes do not regress the public surface semantics. Implement a state ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width