René's URL Explorer Experiment


Title: fix: step tree incorrect when spawn thread nestly #872 by SalHe · Pull Request #874 · allure-framework/allure-python · GitHub

Open Graph Title: fix: step tree incorrect when spawn thread nestly #872 by SalHe · Pull Request #874 · allure-framework/allure-python

X Title: fix: step tree incorrect when spawn thread nestly #872 by SalHe · Pull Request #874 · allure-framework/allure-python

Description: Context Fix #872: Providing an approach to fix incorrect step tree when testing multithread(and spawned nested threads). In this approach, it's needed to explictly initialize thread for allure in new spawned thread(to propagate parent thread's state into new spawned child thread ---- any other elegant way? I have googled but not found.) Example adjusting example in #872: from concurrent.futures import ThreadPoolExecutor import allure def session_on_node(node_id, session): with allure.step(f"Session#{session} on Node#{node_id}"): pass def parallel_task_for_specific_node(node_id): with allure.step(f"Node#{node_id}") as step: with ThreadPoolExecutor(initializer=step.get_thread_initializer()) as executor: for session in range(3): executor.submit(session_on_node, node_id, session) executor.shutdown(wait=True) def test_multithreaded(): with allure.step("Root") as step: with ThreadPoolExecutor(initializer=step.get_thread_initializer()) as executor: for node_id in range(3): executor.submit(parallel_task_for_specific_node, node_id) executor.shutdown(wait=True) we could get report with expected step tree: Checklist Sign Allure CLA Provide unit tests

Open Graph Description: Context Fix #872: Providing an approach to fix incorrect step tree when testing multithread(and spawned nested threads). In this approach, it's needed to explictly initialize thread for allure...

X Description: Context Fix #872: Providing an approach to fix incorrect step tree when testing multithread(and spawned nested threads). In this approach, it's needed to explictly initialize thread for al...

Opengraph URL: https://github.com/allure-framework/allure-python/pull/874

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5de00118-d81f-2f5f-4506-b0ba395b47b7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9ADA:945DC:10254C4:15C9E08:696E9B24
html-safe-nonce37b06bb9569792c31e9fee122facb85b6b5af61a6b0757c848be8ead7ee658fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QURBOjk0NURDOjEwMjU0QzQ6MTVDOUUwODo2OTZFOUIyNCIsInZpc2l0b3JfaWQiOiI0MzE4NzU2NDIxNTQxNzMxMTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac948558cb6d1dd689b631e0e56e892ed19c164a52a9a23a031d7c8bc6b8f431e5
hovercard-subject-tagpull_request:2732906150
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/allure-framework/allure-python/pull/874/files
twitter:imagehttps://avatars.githubusercontent.com/u/8342541?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8342541?s=400&v=4
og:image:altContext Fix #872: Providing an approach to fix incorrect step tree when testing multithread(and spawned nested threads). In this approach, it's needed to explictly initialize thread for allure...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefdad15fd2ad43212aa8b8be5f2c2725550f8374ceeeb154a999ad9145b43f3f7
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/allure-framework/allure-python git https://github.com/allure-framework/allure-python.git
octolytics-dimension-user_id5879127
octolytics-dimension-user_loginallure-framework
octolytics-dimension-repository_id79346720
octolytics-dimension-repository_nwoallure-framework/allure-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id79346720
octolytics-dimension-repository_network_root_nwoallure-framework/allure-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release27b23bc056eb973d350fc95afc848757edb9e7a9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fpull%2F874%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fallure-framework%2Fallure-python%2Fpull%2F874%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=allure-framework%2Fallure-python
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Reloadhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
allure-framework https://patch-diff.githubusercontent.com/allure-framework
allure-pythonhttps://patch-diff.githubusercontent.com/allure-framework/allure-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Fork 256 https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Star 789 https://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python
Code https://patch-diff.githubusercontent.com/allure-framework/allure-python
Issues 95 https://patch-diff.githubusercontent.com/allure-framework/allure-python/issues
Pull requests 20 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulls
Actions https://patch-diff.githubusercontent.com/allure-framework/allure-python/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/allure-framework/allure-python/security
Please reload this pagehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Insights https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulse
Code https://patch-diff.githubusercontent.com/allure-framework/allure-python
Issues https://patch-diff.githubusercontent.com/allure-framework/allure-python/issues
Pull requests https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulls
Actions https://patch-diff.githubusercontent.com/allure-framework/allure-python/actions
Security https://patch-diff.githubusercontent.com/allure-framework/allure-python/security
Insights https://patch-diff.githubusercontent.com/allure-framework/allure-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fallure-framework%2Fallure-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fallure-framework%2Fallure-python%2Fissues%2Fnew%2Fchoose
SalHehttps://patch-diff.githubusercontent.com/SalHe
allure-framework:masterhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/tree/master
SalHe:fix-multithread-stephttps://patch-diff.githubusercontent.com/SalHe/allure-python/tree/fix-multithread-step
Conversation 0 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874
Commits 3 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/commits
Checks 45 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/checks
Files changed https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Please reload this pagehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
fix: step tree incorrect when spawn thread nestly #872 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#top
Show all changes 3 commits https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
43588df fix: step tree incorrect when spawn thread nestly #872 SalHe Aug 9, 2025 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/commits/43588df0fec7c1ce71acb112bee3d393d9977ca9
c4b1f13 fix: review SalHe Aug 9, 2025 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/commits/c4b1f1370e02a8bba40cc09f2b32a0bbf304bea2
f5015c3 style SalHe Aug 9, 2025 https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/commits/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f
Clear filters https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Please reload this pagehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
Please reload this pagehttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files
listener.py https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
_allure.py https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
_hooks.py https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-881cb73ddaf363f05cd8cef8a8b20375b68db3b40db2840f6ad8e3da69a00916
reporter.py https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
test_step_with_several_step_inside_thread.py https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-475d312337a5737080ce29f482a0f9e05a2d30d47ba2159824e1e97f5761b509
allure-pytest/src/listener.pyhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
View file https://patch-diff.githubusercontent.com/allure-framework/allure-python/blob/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f/allure-pytest/src/listener.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-fefb374ddcddaa062601d8d7f5b15f0a5d80552dea44452f34eec87a3a9bada7
allure-python-commons/src/allure_commons/_allure.pyhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
View file https://patch-diff.githubusercontent.com/allure-framework/allure-python/blob/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f/allure-python-commons/src/allure_commons/_allure.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-1fa0370b0290706a6a1e907c38050b8d7c7a5eca7f5d736fa409048cc210bb72
allure-python-commons/src/allure_commons/_hooks.pyhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-881cb73ddaf363f05cd8cef8a8b20375b68db3b40db2840f6ad8e3da69a00916
View file https://patch-diff.githubusercontent.com/allure-framework/allure-python/blob/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f/allure-python-commons/src/allure_commons/_hooks.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-881cb73ddaf363f05cd8cef8a8b20375b68db3b40db2840f6ad8e3da69a00916
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-881cb73ddaf363f05cd8cef8a8b20375b68db3b40db2840f6ad8e3da69a00916
allure-python-commons/src/allure_commons/reporter.pyhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
View file https://patch-diff.githubusercontent.com/allure-framework/allure-python/blob/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f/allure-python-commons/src/allure_commons/reporter.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-96b75cbdbce977e06e94b6ffd193bc9b7cf66eded13911f070c94c4db15245bf
tests/allure_pytest/acceptance/step/test_step_with_several_step_inside_thread.pyhttps://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-475d312337a5737080ce29f482a0f9e05a2d30d47ba2159824e1e97f5761b509
View file https://patch-diff.githubusercontent.com/allure-framework/allure-python/blob/f5015c3c91dc8fcd4f8ca748a79d41008b9ea16f/tests/allure_pytest/acceptance/step/test_step_with_several_step_inside_thread.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-475d312337a5737080ce29f482a0f9e05a2d30d47ba2159824e1e97f5761b509
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-475d312337a5737080ce29f482a0f9e05a2d30d47ba2159824e1e97f5761b509
https://patch-diff.githubusercontent.com/allure-framework/allure-python/pull/874/files#diff-475d312337a5737080ce29f482a0f9e05a2d30d47ba2159824e1e97f5761b509
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.