Improvements/fixes for reading state.json #2013
Labels
pkg/server
This is due to an issue in the packages/server directory
type: enhancement
Requested enhancement of existing feature
Milestone
In an attempt to mitigate Cypress randomly hanging in CI, implement the following:
state.json
file from being read duringrun
mode. The last log before Cypress hanging is thestate.json
being read, so it's possible it is the cause. Since we solely persist state related to the GUI/browser in interactive mode, it's not necessary to read it at all during a run. This may solve the issue.state.json
, it's likely it's actually unlocking the file that never resolves. It would be better to time out in this scenario, catch the timeout, and carry on without the file unlocked. There's already a timeout on getting a lock on the file, so subsequent read and writes will handle that accordingly.state.json
. Currently, it allows any arbitrary keys to be written to it, making it difficult to tell what state it actually can possibly contain. This will document the keys in the code.The text was updated successfully, but these errors were encountered: