Skip to content
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

Percy on Automate: Making async create comparisons #1371

Closed
wants to merge 3 commits into from

Conversation

Amit3200
Copy link
Contributor

  • Enhancement
    ✨ Making upload comparisons async in order to attain better speed.

@itsjwala itsjwala changed the title Making async create comparisons for the poa Percy on Automate: Making async create comparisons Sep 14, 2023
@itsjwala itsjwala added the ✨ enhancement New feature or request label Sep 14, 2023
@@ -118,8 +118,9 @@ export function createPercyServer(percy, port) {
}))
.route('post', '/percy/automateScreenshot', async (req, res) => {
req = percyAutomateRequestHandler(req, percy.build);
percy.upload(await new WebdriverUtils(req.body).automateScreenshot());
Copy link
Contributor

Choose a reason for hiding this comment

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

check #1369

I've tried this, though this doesn't make it async, since we need to have a way to make that await removed which will require some more code changes. though this version is much simplified then what it is in master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this is not full await however this unblocks PoA SDK. CLI can keep on waiting but if we add await which is master as of now that blocks the PoA. So if we have this thing then we do see speed improvements.

Copy link
Contributor

@itsjwala itsjwala Sep 14, 2023

Choose a reason for hiding this comment

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

you can close this PR, as I've updated this in the linked PR. (if the changes are same)

Also can you please review other bit in that PR?

@Amit3200 Amit3200 closed this Sep 18, 2023
@Amit3200 Amit3200 deleted the poa/async-comparison branch September 18, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants