René's URL Explorer Experiment


Title: fix(ci): stop each HTTP end-to-end app fully and start the next from an empty dev cache by waleedlatif1 · Pull Request #8686 · simstudioai/sim · GitHub

Open Graph Title: fix(ci): stop each HTTP end-to-end app fully and start the next from an empty dev cache by waleedlatif1 · Pull Request #8686 · simstudioai/sim

X Title: fix(ci): stop each HTTP end-to-end app fully and start the next from an empty dev cache by waleedlatif1 · Pull Request #8686 · simstudioai/sim

Description: Summary The "End-to-end over real HTTP" job's stop-after step (test-workflow-stop-after-e2e.ts) was flaky. This was test infrastructure, not a product bug: no failed run ever reached the executor. Root cause. All the apps in the job share apps/sim/.next. The stop-after app restored the Turbopack dev cache (.next/dev) that the job's previous app, the SCIM/version-compare one, left behind. That cache was built with different NEXT_PUBLIC_* values by a server that next dev SIGKILLs 100ms after SIGTERM (NEXT_EXIT_TIMEOUT_MS defaults to 100). The step also started while the previous app could still be writing that directory: kill plus wait on next dev returns before its server process tree is gone. An earlier revision of this PR hit that directly. Its rm -rf .next/dev failed with Directory not empty 1s after the previous step ended. I classified every failed run of this step across 175 CI runs from Oct 1 to Oct 6. 12 were this flake, and all 12 came from the restored cache: Symptom Runs What the server log shows Local workflow app exited during startup 6 Turbopack panic inner_of_upper_lost_follower ... aggregation_update.rs The socket connection was closed unexpectedly 4 the same panic while compiling /api/v2/workflows/[workflowId]/execute The operation timed out. after 5 min 2 ○ Compiling /api/v2/workflows/[workflowId]/execute ... that never finishes, with JS heap flat The other 2 failed runs had real branch errors. In the timed-out runs the cleanup check found no open execution log, so the first request never reached the handler. That rules out a stop-after run that never terminates. Healthy runs of this step took 35–99s (p50 47s). Changes CI (test-build.yml), for all three app steps: Each app starts in its own session (setsid). The new .github/scripts/stop-session.sh sends SIGTERM to the whole session and returns only once none of it is left running. It escalates to SIGKILL after 10s and fails the step if anything survives that. It logs any process that outlived next dev. Each app then starts from an empty dev cache (rm -rf .next/dev). A failing step prints the server log tail, not only on a startup failure. Stop-after suite: A named first check compiles the execute route with a refused request under its own 300s budget. Every later request and CLI run is bounded at 60s. A timed-out or dropped request names the route and the elapsed time. It lands in the report with status: null, so a status is recorded only for a fully read response. A CLI timeout is reported as a timeout, and an unexpected CLI failure reports its stderr. Desktop inbox suite (#8650): a cold cache exposed that its 10s "all four calls" deadline also covered next dev compiling the claim, lease and complete routes. One CI attempt failed that way. A new check now compiles those three routes with refused bodies before the timed checks. Evidence Local: a CI-faithful harness on the Mac (5 iterations) and a targeted SIGTERM-then-restore loop (5 cycles) both passed. The panic didn't reproduce on darwin-arm64. Linux EC2 (8 cores via taskset), unchanged code: 8 of 8 iterations passed. On a quiet box the flake doesn't reproduce, and no process outlived next dev there. Linux EC2, this PR: 8 of 8 two-step iterations and 6 of 6 three-step iterations passed. A cold cache moves the stop-after step from ~58s to ~105s. CI reruns of the http-e2e job on this PR: see the comment thread. Gate (EC2): lint, typecheck, audits, migrations, docs, blocks and test all pass. In test, 3 unrelated files failed under load and passed when rerun alone.

Open Graph Description: Summary The "End-to-end over real HTTP" job's stop-after step (test-workflow-stop-after-e2e.ts) was flaky. This was test infrastructure, not a product bug: no failed run ever reached ...

X Description: Summary The "End-to-end over real HTTP" job's stop-after step (test-workflow-stop-after-e2e.ts) was flaky. This was test infrastructure, not a product bug: no failed run e...

Opengraph URL: https://github.com/simstudioai/sim/pull/8686

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7d48e112-6f9f-75ce-4743-a2edd3a0cf63
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id918A:26EC7A:22D704:30D44E:6AFB512B
html-safe-nonce0e8d41f02848a64716709d2fdf14944e178f4b5f6bb084e7fd8841a1bc61a352
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MThBOjI2RUM3QToyMkQ3MDQ6MzBENDRFOjZBRkI1MTJCIiwidmlzaXRvcl9pZCI6IjkxNzIyNDE1Mzk2MTc0NzY5MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac583131e8e506c569f03fc8375d54eb93557901fd58b98dbeddd0d8b217966849
hovercard-subject-tagpull_request:4762864620
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/simstudioai/sim/pull/8686/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary The "End-to-end over real HTTP" job's stop-after step (test-workflow-stop-after-e2e.ts) was flaky. This was test infrastructure, not a product bug: no failed run ever reached ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8686/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8686%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%2Fsimstudioai%2Fsim%2Fpull%2F8686%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=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8686/files
Reloadhttps://github.com/simstudioai/sim/pull/8686/files
Reloadhttps://github.com/simstudioai/sim/pull/8686/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/stop-after-e2e-cold-cachehttps://github.com/simstudioai/sim/tree/fix/stop-after-e2e-cold-cache
Conversation 18 https://github.com/simstudioai/sim/pull/8686
Commits 5 https://github.com/simstudioai/sim/pull/8686/commits
Checks 34 https://github.com/simstudioai/sim/pull/8686/checks
Files changed https://github.com/simstudioai/sim/pull/8686/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8686/files
fix(ci): stop each HTTP end-to-end app fully and start the next from an empty dev cache https://github.com/simstudioai/sim/pull/8686/files#top
Show all changes 5 commits https://github.com/simstudioai/sim/pull/8686/files
393e4cd fix(ci): start each HTTP end-to-end app from an empty Turbopack dev c… waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8686/commits/393e4cd6f93b7ecb6688aa1ccc437326be6ba24e
1f3ea39 fix(ci): start the desktop inbox app from an empty Turbopack dev cach… waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8686/commits/1f3ea39b21bc361f324ba685349161a3920f149f
6583e33 fix(e2e): record a status only for a fully read stop-after response waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8686/commits/6583e33259b16f93fee7b1db10649e6db39c24c4
edc1d47 fix(ci): stop each HTTP end-to-end app's whole process session before… waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8686/commits/edc1d47aadcab7d23aad8d0248861bebc9da579e
bd1e89d fix(e2e): compile the desktop executor routes before timing executor … waleedlatif1 Oct 6, 2026 https://github.com/simstudioai/sim/pull/8686/commits/bd1e89dc5fe25c21de9d02a9cfd25f2e0f846b19
Clear filters https://github.com/simstudioai/sim/pull/8686/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8686/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8686/files
stop-session.sh https://github.com/simstudioai/sim/pull/8686/files#diff-ce5ccc41321bbbb8cc488d338318943c11c90eb387f9f9d7c67f432d69729cac
test-build.yml https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
test-desktop-inbox-e2e.ts https://github.com/simstudioai/sim/pull/8686/files#diff-cccbeb979bb964bf8ba5b5fa155cdb4148fbdd1507bc21448e84f90cce430a69
test-workflow-stop-after-e2e.ts https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
.github/scripts/stop-session.shhttps://github.com/simstudioai/sim/pull/8686/files#diff-ce5ccc41321bbbb8cc488d338318943c11c90eb387f9f9d7c67f432d69729cac
View file https://github.com/simstudioai/sim/blob/bd1e89dc5fe25c21de9d02a9cfd25f2e0f846b19/.github/scripts/stop-session.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8686/{{ revealButtonHref }}
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/bd1e89dc5fe25c21de9d02a9cfd25f2e0f846b19/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8686/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/8686/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
apps/sim/scripts/test-desktop-inbox-e2e.tshttps://github.com/simstudioai/sim/pull/8686/files#diff-cccbeb979bb964bf8ba5b5fa155cdb4148fbdd1507bc21448e84f90cce430a69
View file https://github.com/simstudioai/sim/blob/bd1e89dc5fe25c21de9d02a9cfd25f2e0f846b19/apps/sim/scripts/test-desktop-inbox-e2e.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8686/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8686/files#diff-cccbeb979bb964bf8ba5b5fa155cdb4148fbdd1507bc21448e84f90cce430a69
https://github.com/simstudioai/sim/pull/8686/files#diff-cccbeb979bb964bf8ba5b5fa155cdb4148fbdd1507bc21448e84f90cce430a69
apps/sim/scripts/test-workflow-stop-after-e2e.tshttps://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
View file https://github.com/simstudioai/sim/blob/bd1e89dc5fe25c21de9d02a9cfd25f2e0f846b19/apps/sim/scripts/test-workflow-stop-after-e2e.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8686/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
https://github.com/simstudioai/sim/pull/8686/files#diff-46adaa7586b0c54606b35b539ca6155c1d25fedc8582f6d9792d3ca32a2650f7
Please reload this pagehttps://github.com/simstudioai/sim/pull/8686/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.