René's URL Explorer Experiment


Title: ci: keep crash diagnostics when the test app dies or hangs by edusperoni · Pull Request #2109 · NativeScript/android · GitHub

Open Graph Title: ci: keep crash diagnostics when the test app dies or hangs by edusperoni · Pull Request #2109 · NativeScript/android

X Title: ci: keep crash diagnostics when the test app dies or hangs by edusperoni · Pull Request #2109 · NativeScript/android

Description: Description Current behavior When the test app dies, shows ErrorReportActivity, or never writes its results, try_to_find_test_result_file.js prints adb logcat -d --pid= into the job log and exits. That filter drops exactly the lines that explain a failure, because other processes log them: crash_dump's native backtrace (tag DEBUG) ActivityManager's process-death and ANR lines low-memory-killer kills The workflow uploads only the results XML, which doesn't exist when the app dies, so nothing else survives the runner. A recent run on #2067 shows the result. The app logged nothing for about 40 s and then disappeared, and the job log can't tell a native crash from an ANR or low-memory kill, or from a hang. New behavior On any of those three failure paths, the harness writes the following to test-app/dist/crash-diagnostics/: File Contents logcat.txt logcat from main, system and crash, not filtered by pid, from the existing start-time cutoff logcat-app.txt logcat filtered to the app's pid (the old dump) logcat-crash.txt the crash buffer exit-info.txt dumpsys activity exit-info for the app; each record carries the exit reason (native crash, crash, ANR, low memory, signaled) stacks.txt debuggerd -b thread stacks, only if the app is still alive (a hang or timeout) tombstone_NN.txt the text tombstones written during this run The job log gets a short summary instead of the whole dump: the latest exit record the crash buffer the last 150 app log lines the list of tombstones The Test job uploads the folder as the android-crash-diagnostics artifact when it fails. Tombstones and other processes' stacks need root. The harness runs adb root only when CI is set: restarting adbd breaks every other adb client of a shared local emulator. CI's emulator image (no Google Play) grants root. Locally, both are still collected when adbd already runs as root. Nothing changes on a passing run. Related Pull Requests #2067: its Test job died mid-run with nothing usable in the log. That motivated this PR. Does your pull request have unit tests? No. It only changes CI tooling. A passing CI run here shows the normal path is unaffected. The diagnostics path runs only when the app crashes, hangs or never reports, so it is exercised by the next real failure, or by a temporary commit that crashes the app on purpose. Summary by CodeRabbit Chores Failed Android test runs now collect diagnostic logs and crash information, including app thread snapshots and recent tombstone data when available. CI uploads the collected diagnostics as an artifact when the test job fails. Missing diagnostic files do not prevent the upload.

Open Graph Description: Description Current behavior When the test app dies, shows ErrorReportActivity, or never writes its results, try_to_find_test_result_file.js prints adb logcat -d --pid=<app pid> into the job ...

X Description: Description Current behavior When the test app dies, shows ErrorReportActivity, or never writes its results, try_to_find_test_result_file.js prints adb logcat -d --pid=&lt;app pid&gt; into ...

Opengraph URL: https://github.com/NativeScript/android/pull/2109

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e44d69e0-2b47-4c57-fcc3-b5fb44bf88d3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC88:296654:1567543:1C94F1C:6B0135D1
html-safe-noncea05226705ee5f393e0199eceed75a0ac5a62f6b138aaef601994777e86068e7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzg4OjI5NjY1NDoxNTY3NTQzOjFDOTRGMUM6NkIwMTM1RDEiLCJ2aXNpdG9yX2lkIjoiODM0OTkyMTkxMjgwNTIwOTU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac59381263aeced7a58913ed2076292652e951c44ea662100ec9d653ed84d61493
hovercard-subject-tagpull_request:5267585722
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/NativeScript/android/pull/2109/files
twitter:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4061767?s=400&v=4
og:image:altDescription Current behavior When the test app dies, shows ErrorReportActivity, or never writes its results, try_to_find_test_result_file.js prints adb logcat -d --pid=<app pid> into the job ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/android git https://github.com/NativeScript/android.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id29137950
octolytics-dimension-repository_nwoNativeScript/android
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id29137950
octolytics-dimension-repository_network_root_nwoNativeScript/android
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/android/pull/2109/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fandroid%2Fpull%2F2109%2Ffiles
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%2FNativeScript%2Fandroid%2Fpull%2F2109%2Ffiles
Sign uphttps://github.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=NativeScript%2Fandroid
Reloadhttps://github.com/NativeScript/android/pull/2109/files
Reloadhttps://github.com/NativeScript/android/pull/2109/files
Reloadhttps://github.com/NativeScript/android/pull/2109/files
NativeScripthttps://github.com/NativeScript
androidhttps://github.com/NativeScript/android
Codehttps://github.com/NativeScript/android
Issues106 (106)https://github.com/NativeScript/android/issues
Pull requests24 (24)https://github.com/NativeScript/android/pulls
Actionshttps://github.com/NativeScript/android/actions
Projectshttps://github.com/NativeScript/android/projects
Wikihttps://github.com/NativeScript/android/wiki
Security and qualityhttps://github.com/NativeScript/android/security
Insightshttps://github.com/NativeScript/android/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fandroid%2Fissues%2Fnew%2Fchoose
edusperonihttps://github.com/edusperoni
mainhttps://github.com/NativeScript/android/tree/main
ci/crash-diagnosticshttps://github.com/NativeScript/android/tree/ci/crash-diagnostics
Conversation 10 https://github.com/NativeScript/android/pull/2109
Commits 4 https://github.com/NativeScript/android/pull/2109/commits
Checks 8 https://github.com/NativeScript/android/pull/2109/checks
Files changed https://github.com/NativeScript/android/pull/2109/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2109/files
ci: keep crash diagnostics when the test app dies or hangs https://github.com/NativeScript/android/pull/2109/files#top
Show all changes 4 commits https://github.com/NativeScript/android/pull/2109/files
6fce03c ci: keep crash diagnostics when the test app dies or hangs edusperoni Nov 11, 2026 https://github.com/NativeScript/android/pull/2109/commits/6fce03c816ea47e7e6190b051cc2823192dabf31
2ea2655 ci: take the logcat cutoff from the device clock and dump stacks of t… edusperoni Nov 11, 2026 https://github.com/NativeScript/android/pull/2109/commits/2ea2655268372e557a73f426b653e6c9976dddc5
a9609cf ci: leave logcat unfiltered when the device clock can't be read edusperoni Nov 11, 2026 https://github.com/NativeScript/android/pull/2109/commits/a9609cf8819513ecd316ea84177cceb17d236d51
5b50e2e ci: make crash diagnostics hold up on old images and local reruns edusperoni Nov 11, 2026 https://github.com/NativeScript/android/pull/2109/commits/5b50e2e817e2a60b3fa0d94bb2bdbaed780c7a6f
Clear filters https://github.com/NativeScript/android/pull/2109/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2109/files
Please reload this pagehttps://github.com/NativeScript/android/pull/2109/files
pull_request.yml https://github.com/NativeScript/android/pull/2109/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4c
try_to_find_test_result_file.js https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
.github/workflows/pull_request.ymlhttps://github.com/NativeScript/android/pull/2109/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4c
View file https://github.com/NativeScript/android/blob/5b50e2e817e2a60b3fa0d94bb2bdbaed780c7a6f/.github/workflows/pull_request.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2109/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2109/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4c
https://github.com/NativeScript/android/pull/2109/files#diff-a0fe23534b616d51ce686d2a1bcd1a78bc75074aef1a2f6ee96c9469991e1a4c
test-app/tools/try_to_find_test_result_file.jshttps://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
View file https://github.com/NativeScript/android/blob/5b50e2e817e2a60b3fa0d94bb2bdbaed780c7a6f/test-app/tools/try_to_find_test_result_file.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/android/pull/2109/{{ revealButtonHref }}
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
Please reload this pagehttps://github.com/NativeScript/android/pull/2109/files
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
https://github.com/NativeScript/android/pull/2109/files#diff-6c271cd42254e3144102badb06d0fd1b71bab8a0ff78b2f5051d6da6948f9712
Please reload this pagehttps://github.com/NativeScript/android/pull/2109/files
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.