-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: cancel screenshot diff if there is no activity #6957
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
build: cancel screenshot diff if there is no activity #6957
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tools/gulp/tasks/screenshots.ts
Outdated
@@ -34,6 +34,9 @@ const FIREBASE_IMAGE = `${TEMP_FOLDER}/screenshot/images`; | |||
const FIREBASE_DATA_GOLDENS = `screenshot/goldens`; | |||
const FIREBASE_STORAGE_GOLDENS = 'goldens'; | |||
|
|||
const lastActionTimeout = 1000 * 60 * 6; | |||
const lastActionRefreshInterval = 1000 * 45; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments with the human-readable times?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Done
* No longer just gives the screenshot diff task 8 minutes to pass, because the run time can vary. Now it just exits the process if the last action in the task takes longer than 6 minutes. * Instead of just closing the firebase connection, the process will be exited with an error code. Just closing the connection is not helpful and breaks the screenshot diff Web Interface.
3ab54b7
to
e9d90e0
Compare
e9d90e0
to
1f10516
Compare
* build: cancel screenshot diff if there is no activity * No longer just gives the screenshot diff task 8 minutes to pass, because the run time can vary. Now it just exits the process if the last action in the task takes longer than 6 minutes. * Instead of just closing the firebase connection, the process will be exited with an error code. Just closing the connection is not helpful and breaks the screenshot diff Web Interface. * Add comments
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Note: Should wait for #6956 before review.