René's URL Explorer Experiment


Title: [BUG]: Coverage in parallel · Issue #60 · scientificcomputing/example-python-package · GitHub

Open Graph Title: [BUG]: Coverage in parallel · Issue #60 · scientificcomputing/example-python-package

X Title: [BUG]: Coverage in parallel · Issue #60 · scientificcomputing/example-python-package

Description: How to reproduce the bug mpirun -n 2 python3 -m pytest . Error output ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3 cached...

Open Graph Description: How to reproduce the bug mpirun -n 2 python3 -m pytest . Error output ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.2.0,...

X Description: How to reproduce the bug mpirun -n 2 python3 -m pytest . Error output ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.2.0,...

Opengraph URL: https://github.com/scientificcomputing/example-python-package/issues/60

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: Coverage in parallel","articleBody":"### How to reproduce the bug\n\n`mpirun -n 2 python3 -m pytest .`\r\n\n\n### Error output\n\n```bash\n============================= test session starts ==============================\r\nplatform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3\r\ncachedir: .pytest_cache\r\nrootdir: /root/reproducibility, configfile: pyproject.toml, testpaths: test\r\nplugins: cov-4.0.0\r\ncollecting ... ============================= test session starts ==============================\r\nplatform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0 -- /usr/bin/python3\r\ncachedir: .pytest_cache\r\nrootdir: /root/reproducibility, configfile: pyproject.toml, testpaths: test\r\nplugins: cov-4.0.0\r\ncollecting ... collected 1 item\r\n\r\ntest/test_code.py::test_addition collected 1 item\r\n\r\ntest/test_code.py::test_addition PASSED                                  [100%]PASSED                                  [100%]\r\nINTERNALERROR\u003e Traceback (most recent call last):\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 1106, in execute\r\nINTERNALERROR\u003e     return self.con.execute(sql, parameters)\r\nINTERNALERROR\u003e sqlite3.OperationalError: no such table: coverage_schema\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e During handling of the above exception, another exception occurred:\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e Traceback (most recent call last):\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 1111, in execute\r\nINTERNALERROR\u003e     return self.con.execute(sql, parameters)\r\nINTERNALERROR\u003e sqlite3.OperationalError: no such table: coverage_schema\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e The above exception was the direct cause of the following exception:\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e Traceback (most recent call last):\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 272, in _read_db\r\nINTERNALERROR\u003e     schema_version, = db.execute_one(\"select version from coverage_schema\")\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 1147, in execute_one\r\nINTERNALERROR\u003e     rows = list(self.execute(sql, parameters))\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 1128, in execute\r\nINTERNALERROR\u003e     raise DataError(f\"Couldn't use data file {self.filename!r}: {msg}\") from exc\r\nINTERNALERROR\u003e coverage.exceptions.DataError: Couldn't use data file '/root/reproducibility/.coverage': no such table: coverage_schema\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e During handling of the above exception, another exception occurred:\r\nINTERNALERROR\u003e \r\nINTERNALERROR\u003e Traceback (most recent call last):\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/_pytest/main.py\", line 270, in wrap_session\r\nINTERNALERROR\u003e     session.exitstatus = doit(config, session) or 0\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/_pytest/main.py\", line 324, in _main\r\nINTERNALERROR\u003e     config.hook.pytest_runtestloop(session=session)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pluggy/_hooks.py\", line 265, in __call__\r\nINTERNALERROR\u003e     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pluggy/_manager.py\", line 80, in _hookexec\r\nINTERNALERROR\u003e     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pluggy/_callers.py\", line 55, in _multicall\r\nINTERNALERROR\u003e     gen.send(outcome)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pytest_cov/plugin.py\", line 297, in pytest_runtestloop\r\nINTERNALERROR\u003e     self.cov_controller.finish()\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pytest_cov/engine.py\", line 44, in ensure_topdir_wrapper\r\nINTERNALERROR\u003e     return meth(self, *args, **kwargs)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/pytest_cov/engine.py\", line 247, in finish\r\nINTERNALERROR\u003e     self.cov.combine()\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/control.py\", line 755, in combine\r\nINTERNALERROR\u003e     combine_parallel_data(\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/data.py\", line 132, in combine_parallel_data\r\nINTERNALERROR\u003e     data.update(new_data, aliases=aliases)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 657, in update\r\nINTERNALERROR\u003e     with self._connect() as con:\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 315, in _connect\r\nINTERNALERROR\u003e     self._open_db()\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 266, in _open_db\r\nINTERNALERROR\u003e     self._read_db()\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 275, in _read_db\r\nINTERNALERROR\u003e     self._init_db(db)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 301, in _init_db\r\nINTERNALERROR\u003e     db.executescript(SCHEMA)\r\nINTERNALERROR\u003e   File \"/usr/local/lib/python3.10/dist-packages/coverage/sqldata.py\", line 1178, in executescript\r\nINTERNALERROR\u003e     self.con.executescript(script)\r\nINTERNALERROR\u003e sqlite3.OperationalError: table coverage_schema already exists\r\n\r\n============================== 1 passed in 0.01s ===============================\r\n\r\n\r\n---------- coverage: platform linux, python 3.10.6-final-0 -----------\r\nName                                                             Stmts   Miss  Cover   Missing\r\n----------------------------------------------------------------------------------------------\r\n/usr/local/lib/python3.10/dist-packages/mypackage/__init__.py        5      0   100%\r\n/usr/local/lib/python3.10/dist-packages/mypackage/functions.py       7      3    57%   16-18\r\n----------------------------------------------------------------------------------------------\r\nTOTAL                                                               12      3    75%\r\nCoverage HTML written to dir htmlcov\r\n\r\n\r\n============================== 1 passed in 0.02s ===============================\n```\n\n\n### Version\n\nmain branch\n\n### system\n\n```docker \r\nFROM ubuntu:22.04\r\n\r\nWORKDIR /root/\r\n\r\n\r\nRUN apt-get update \u0026\u0026 \\\r\n    apt-get install -y git mpich python3-pip \u0026\u0026 \\\r\n    python3 -m pip install --upgrade pip setuptools \u0026\u0026 \\\r\n    apt-get purge -y python3-setuptools\r\n\r\nRUN git clone https://github.com/scientificcomputing/reproducibility\r\n\r\n\r\nRUN python3 -m pip install ./reproducibility[test]\r\n```\n\n### Additional information\n\nFixed with adding `--cov-append` to \r\n```toml\r\n[tool.pytest.ini_options]\r\naddopts\r\n```","author":{"url":"https://github.com/jorgensd","@type":"Person","name":"jorgensd"},"datePublished":"2022-10-27T15:15:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/60/example-python-package/issues/60"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bc038328-308b-d9ca-15d7-55ec647f8a52
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB5E2:11B23B:4471C:6452D:6A4DF8D1
html-safe-nonce6c0a5add98ac0a5ecc4ba5e6321cc80626907c045cdf168b020a63d2efe68d23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUUyOjExQjIzQjo0NDcxQzo2NDUyRDo2QTRERjhEMSIsInZpc2l0b3JfaWQiOiIyOTY1Njk2MjE0MTE5MzQ4NDMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac86584900d5979970bd9ccfb71ce76775a5da2c5160bcda5ddd61bbd7b7d2cfd8
hovercard-subject-tagissue:1425815837
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/scientificcomputing/example-python-package/60/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9e484c0266c94ec0bc8aaee4ac06b79be689658dd65da264faadfa1e2e39901a/scientificcomputing/example-python-package/issues/60
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9e484c0266c94ec0bc8aaee4ac06b79be689658dd65da264faadfa1e2e39901a/scientificcomputing/example-python-package/issues/60
og:image:altHow to reproduce the bug mpirun -n 2 python3 -m pytest . Error output ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-7.2.0,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejorgensd
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
go-importgithub.com/scientificcomputing/example-python-package git https://github.com/scientificcomputing/example-python-package.git
octolytics-dimension-user_id56604411
octolytics-dimension-user_loginscientificcomputing
octolytics-dimension-repository_id535572604
octolytics-dimension-repository_nwoscientificcomputing/example-python-package
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id535572604
octolytics-dimension-repository_network_root_nwoscientificcomputing/example-python-package
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
release4314b1df11fa8a565684f3a72dc971e3785da365
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scientificcomputing/example-python-package/issues/60#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscientificcomputing%2Fexample-python-package%2Fissues%2F60
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscientificcomputing%2Fexample-python-package%2Fissues%2F60
Sign up https://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=scientificcomputing%2Fexample-python-package
Reloadhttps://github.com/scientificcomputing/example-python-package/issues/60
Reloadhttps://github.com/scientificcomputing/example-python-package/issues/60
Reloadhttps://github.com/scientificcomputing/example-python-package/issues/60
Please reload this pagehttps://github.com/scientificcomputing/example-python-package/issues/60
scientificcomputing https://github.com/scientificcomputing
example-python-packagehttps://github.com/scientificcomputing/example-python-package
Notifications https://github.com/login?return_to=%2Fscientificcomputing%2Fexample-python-package
Fork 4 https://github.com/login?return_to=%2Fscientificcomputing%2Fexample-python-package
Star 6 https://github.com/login?return_to=%2Fscientificcomputing%2Fexample-python-package
Code https://github.com/scientificcomputing/example-python-package
Issues 1 https://github.com/scientificcomputing/example-python-package/issues
Pull requests 0 https://github.com/scientificcomputing/example-python-package/pulls
Actions https://github.com/scientificcomputing/example-python-package/actions
Projects https://github.com/scientificcomputing/example-python-package/projects
Security and quality 0 https://github.com/scientificcomputing/example-python-package/security
Insights https://github.com/scientificcomputing/example-python-package/pulse
Code https://github.com/scientificcomputing/example-python-package
Issues https://github.com/scientificcomputing/example-python-package/issues
Pull requests https://github.com/scientificcomputing/example-python-package/pulls
Actions https://github.com/scientificcomputing/example-python-package/actions
Projects https://github.com/scientificcomputing/example-python-package/projects
Security and quality https://github.com/scientificcomputing/example-python-package/security
Insights https://github.com/scientificcomputing/example-python-package/pulse
[BUG]: Coverage in parallelhttps://github.com/scientificcomputing/example-python-package/issues/60#top
https://github.com/jorgensd
bugSomething isn't workinghttps://github.com/scientificcomputing/example-python-package/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/jorgensd
jorgensdhttps://github.com/jorgensd
on Oct 27, 2022https://github.com/scientificcomputing/example-python-package/issues/60#issue-1425815837
jorgensdhttps://github.com/jorgensd
bugSomething isn't workinghttps://github.com/scientificcomputing/example-python-package/issues?q=state%3Aopen%20label%3A%22bug%22
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

Viewport: width=device-width


URLs of crawlers that visited me.