Skip to content

internal: (studio) enable studio to access the protocol database with a new connection #31502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 18, 2025

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Apr 14, 2025

Additional details

In order to not block the main thread with full snapshot generation, we are going to move this logic to a worker thread. In order to access the protocol database from within a worker thread, we need to provide the path to the database rather than the database itself. In addition, we need to provide enough information to properly load in better-sqlite3 in the worker thread and make sure it's properly accessible in the binary.

Steps to test

How has the user experience changed?

PR Tasks

@ryanthemanuel ryanthemanuel self-assigned this Apr 14, 2025
@ryanthemanuel ryanthemanuel requested a review from Copilot April 14, 2025 01:35
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Copy link

cypress bot commented Apr 14, 2025

cypress    Run #61730

Run Properties:  status check passed Passed #61730  •  git commit feb7cfe580: Merge branch 'develop' into ryanm/chore/full-snapshot-threaded
Project cypress
Branch Review ryanm/chore/full-snapshot-threaded
Run status status check passed Passed #61730
Run duration 11m 35s
Commit git commit feb7cfe580: Merge branch 'develop' into ryanm/chore/full-snapshot-threaded
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 672
View all changes introduced in this branch ↗︎
UI Coverage  37.81%
  Untested elements 125  
  Tested elements 76  
Accessibility  92.18%
  Failed rules  3 critical   7 serious   1 moderate   1 minor
  Failed elements 525  

@ryanthemanuel ryanthemanuel changed the title internal: (studio) improvements to how studio can access the protocol database internal: (studio) enable studio to access the protocol database with a new connection Apr 14, 2025
@ryanthemanuel ryanthemanuel requested a review from Copilot April 14, 2025 22:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

@ryanthemanuel ryanthemanuel merged commit ac3bb18 into develop Apr 18, 2025
133 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/chore/full-snapshot-threaded branch April 18, 2025 01:32
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 22, 2025

Released in 14.3.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.3.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants