Title: perf trampoline tests fail after BOLT optimizations · Issue #128883 · python/cpython · GitHub
Open Graph Title: perf trampoline tests fail after BOLT optimizations · Issue #128883 · python/cpython
X Title: perf trampoline tests fail after BOLT optimizations · Issue #128883 · python/cpython
Description: Bug report Bug description: As initially reported in #128845. The following tests fail test_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api) ... FAIL test_trampoline_works (test.test_perf_profiler.TestPerfTrampoline.test...
Open Graph Description: Bug report Bug description: As initially reported in #128845. The following tests fail test_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api) ... FAIL test_trampoline_works (test.te...
X Description: Bug report Bug description: As initially reported in #128845. The following tests fail test_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api) ... FAIL test_trampoline_works (test.te...
Opengraph URL: https://github.com/python/cpython/issues/128883
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"perf trampoline tests fail after BOLT optimizations","articleBody":"# Bug report\n\n### Bug description:\n\nAs initially reported in https://github.com/python/cpython/pull/128845. The following tests fail\n\n```\ntest_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api) ... FAIL\ntest_trampoline_works (test.test_perf_profiler.TestPerfTrampoline.test_trampoline_works) ... FAIL\ntest_trampoline_works_with_forks (test.test_perf_profiler.TestPerfTrampoline.test_trampoline_works_with_forks) ... FAIL\n\n======================================================================\nFAIL: test_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_perf_profiler.py\", line 203, in test_sys_api\n self.assertIn(f\"py::spam:{script}\", perf_file_contents)\n ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 'py::spam:/tmp/test_python_qxe1_ajb/tmpqablk9qp/perftest.py' not found in '7f2d97946000 80600b py::baz:/tmp/test_python_qxe1_ajb/tmpqablk9qp/perftest.py\\n'\n\n======================================================================\nFAIL: test_trampoline_works (test.test_perf_profiler.TestPerfTrampoline.test_trampoline_works)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_perf_profiler.py\", line 91, in test_trampoline_works\n self.assertIsNotNone(\n ~~~~~~~~~~~~~~~~~~~~^\n perf_line, f\"Could not find {expected_symbol} in perf file\"\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\nAssertionError: unexpectedly None : Could not find py::foo:/tmp/test_python_qxe1_ajb/tmpdd3d4w9f/perftest.py in perf file\n\n======================================================================\nFAIL: test_trampoline_works_with_forks (test.test_perf_profiler.TestPerfTrampoline.test_trampoline_works_with_forks)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_perf_profiler.py\", line 145, in test_trampoline_works_with_forks\n self.assertEqual(process.returncode, 0)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: -11 != 0\n\n----------------------------------------------------------------------\nRan 3 tests in 0.463s\n\nFAILED (failures=3)\ntest test_perf_profiler failed\n1 test failed again:\n test_perf_profiler\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/zanieb","@type":"Person","name":"zanieb"},"datePublished":"2025-01-15T14:48:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/128883/cpython/issues/128883"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f032e1ca-52d7-bdd9-23d4-71dd081a4c53 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E736:192D74:B64AA0:EF5661:696B22FA |
| html-safe-nonce | 8586ecd8f2dbe11f7a8ba53f1126581e27564c534532c9c80066a9728369011d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzM2OjE5MkQ3NDpCNjRBQTA6RUY1NjYxOjY5NkIyMkZBIiwidmlzaXRvcl9pZCI6IjMyOTk0MTA1MTcyNTkxMzM2OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3b866b35691ebd7e5cd9ed590f882d809fda6604c60953aa82c906bad6756a33 |
| hovercard-subject-tag | issue:2790053696 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/128883/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b34a429d76778ed1c1212bda732c323b44b89f20815825267ad03b7aff516ab/python/cpython/issues/128883 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b34a429d76778ed1c1212bda732c323b44b89f20815825267ad03b7aff516ab/python/cpython/issues/128883 |
| og:image:alt | Bug report Bug description: As initially reported in #128845. The following tests fail test_sys_api (test.test_perf_profiler.TestPerfTrampoline.test_sys_api) ... FAIL test_trampoline_works (test.te... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zanieb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width