René's URL Explorer Experiment


Title: in-process invocation of a test runner fails with "Recording already in progress" · Issue #371 · getappmap/appmap-python · GitHub

Open Graph Title: in-process invocation of a test runner fails with "Recording already in progress" · Issue #371 · getappmap/appmap-python

X Title: in-process invocation of a test runner fails with "Recording already in progress" · Issue #371 · getappmap/appmap-python

Description: If one of the supported test runners (e.g. pytest, unittest) is run in-process, the enabled recording methods for the process apply to the test runner. For example, in this test, the sqlmesh plan subcommand uses a click.testing.CliRunner...

Open Graph Description: If one of the supported test runners (e.g. pytest, unittest) is run in-process, the enabled recording methods for the process apply to the test runner. For example, in this test, the sqlmesh plan s...

X Description: If one of the supported test runners (e.g. pytest, unittest) is run in-process, the enabled recording methods for the process apply to the test runner. For example, in this test, the sqlmesh plan s...

Opengraph URL: https://github.com/getappmap/appmap-python/issues/371

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"in-process invocation of a test runner fails with \"Recording already in progress\"","articleBody":"If one of the supported test runners (e.g. pytest, unittest) is run in-process, the enabled recording methods for the process apply to the test runner. \r\n\r\nFor example, in [this test](https://github.com/TobikoData/sqlmesh/blob/aa7f7e42005c7f3a699c9647c99422b99a92a033/tests/cli/test_cli.py#L165), the `sqlmesh plan` subcommand uses a [click.testing.CliRunner](https://click.palletsprojects.com/en/8.1.x/api/#click.testing.CliRunner) to run a unittest test, which fails:\r\n\r\n```\r\ntests/cli/test_cli.py::test_plan \r\n----------------------------------------------------------------------\r\nTest Failure Summary\r\n======================================================================\r\nNum Successful Tests: 0\r\nFailure Test: sqlmesh_example.full_model test_example_full_model\r\n======================================================================\r\nE\r\n======================================================================\r\nERROR: test_example_full_model (/private/var/folders/2g/xqtf8_tn5j1861bbkvvhtmmr0000gn/T/pytest-of-ajp/pytest-159/test_plan0/tests/test_full_model.yaml)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/wrapt/wrappers.py\", line 744, in __call__\r\n    return self._self_wrapper(self.__wrapped__, self._self_instance,\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/unittest.py\", line 36, in callTestMethod\r\n    with _session.record(test_case.__class__, method_name, location=location) as metadata:\r\n  File \"/Users/ajp/.asdf/installs/python/3.12.2/lib/python3.12/contextlib.py\", line 137, in __enter__\r\n    return next(self.gen)\r\n           ^^^^^^^^^^^^^^\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/testing_framework.py\", line 119, in record\r\n    with rec, environ.disabled(\"requests\"):\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/recording.py\", line 47, in __enter__\r\n    self.start()\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/recording.py\", line 32, in start\r\n    r.start_recording()\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/recorder.py\", line 108, in start_recording\r\n    cls.get_current()._start_recording()  # pylint: disable=protected-access\r\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/recorder.py\", line 236, in _start_recording\r\n    super()._start_recording()\r\n  File \"/Users/ajp/src/applandinc/appmap-python/_appmap/recorder.py\", line 158, in _start_recording\r\n    raise RuntimeError(\"Recording already in progress\")\r\nRuntimeError: Recording already in progress\r\n\r\n----------------------------------------------------------------------\r\nRan 1 test in 0.165s\r\n\r\nFAILED (errors=1)\r\n\r\nError: Cannot generate plan due to failing test(s). Fix test(s) and run again\r\n\r\nFAILED\r\n\r\n============================================================================================ FAILURES ============================================================================================\r\n```","author":{"url":"https://github.com/apotterri","@type":"Person","name":"apotterri"},"datePublished":"2024-08-16T12:45:18Z","url":"https://github.com/getappmap/appmap-python/issues/371"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a5baa2e7-7cbc-ad77-4367-0a80349fc109
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAC54:3DCCC3:329D825:4303980:6B0360AF
html-safe-nonced412a7ba051a33a01537315e49d6f95a33a55e4a69e0786a6287d1fc7211aa3e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzU0OjNEQ0NDMzozMjlEODI1OjQzMDM5ODA6NkIwMzYwQUYiLCJ2aXNpdG9yX2lkIjoiMzM5MDkwNDM5MzExNjM3NzI2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaceee21b39c98d5e28ddc99f0d66ba319f8ae67dcf723a6f8d0675720557489ba7
hovercard-subject-tagissue:2470207447
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getappmap/appmap-python/371/issue_layout
twitter:imagehttps://opengraph.githubassets.com/643c5bb17d51b430ae90ccf7b2da9405513fc95c75a02fb04aa18df4378aebb6/getappmap/appmap-python/issues/371
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/643c5bb17d51b430ae90ccf7b2da9405513fc95c75a02fb04aa18df4378aebb6/getappmap/appmap-python/issues/371
og:image:altIf one of the supported test runners (e.g. pytest, unittest) is run in-process, the enabled recording methods for the process apply to the test runner. For example, in this test, the sqlmesh plan s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameapotterri
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/getappmap/appmap-python git https://github.com/getappmap/appmap-python.git
octolytics-dimension-user_id46610017
octolytics-dimension-user_logingetappmap
octolytics-dimension-repository_id314785884
octolytics-dimension-repository_nwogetappmap/appmap-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id314785884
octolytics-dimension-repository_network_root_nwogetappmap/appmap-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getappmap/appmap-python/issues/371#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F371
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetappmap%2Fappmap-python%2Fissues%2F371
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getappmap%2Fappmap-python
Reloadhttps://github.com/getappmap/appmap-python/issues/371
Reloadhttps://github.com/getappmap/appmap-python/issues/371
Reloadhttps://github.com/getappmap/appmap-python/issues/371
getappmaphttps://github.com/getappmap
appmap-pythonhttps://github.com/getappmap/appmap-python
Codehttps://github.com/getappmap/appmap-python
Issues51 (51)https://github.com/getappmap/appmap-python/issues
Pull requests6 (6)https://github.com/getappmap/appmap-python/pulls
Discussionshttps://github.com/getappmap/appmap-python/discussions
Actionshttps://github.com/getappmap/appmap-python/actions
Projectshttps://github.com/getappmap/appmap-python/projects
Wikihttps://github.com/getappmap/appmap-python/wiki
Security and qualityhttps://github.com/getappmap/appmap-python/security
Insightshttps://github.com/getappmap/appmap-python/insights
https://github.com/getappmap/appmap-python
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/371
New issuehttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/371
in-process invocation of a test runner fails with "Recording already in progress"https://github.com/getappmap/appmap-python/issues/371#top
https://github.com/apotterri
apotterrihttps://github.com/apotterri
on Aug 16, 2024https://github.com/getappmap/appmap-python/issues/371#issue-2470207447
this testhttps://github.com/TobikoData/sqlmesh/blob/aa7f7e42005c7f3a699c9647c99422b99a92a033/tests/cli/test_cli.py#L165
click.testing.CliRunnerhttps://click.palletsprojects.com/en/8.1.x/api/#click.testing.CliRunner
Sign up for freehttps://github.com/signup?return_to=https://github.com/getappmap/appmap-python/issues/371
Sign in to commenthttps://github.com/login?return_to=https://github.com/getappmap/appmap-python/issues/371
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.