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

PageSpeed plugin causing errors in workflow runs. #14

Closed
vittodevit opened this issue Dec 9, 2020 · 8 comments · Fixed by #28
Closed

PageSpeed plugin causing errors in workflow runs. #14

vittodevit opened this issue Dec 9, 2020 · 8 comments · Fixed by #28

Comments

@vittodevit
Copy link

Bug description
With the new metrics version (v2.25) my github workflow fails.

Expected behavior
The workflow should run normally but with the 'latest' tag set in the workflow file, now my workflow fails.

To Reproduce
I think the plugin affected is PageSpeed, because the error is related to that.
I fixed by setting the tag to v2.24 in the workflow file.

Additional context and screenshots

This is the error message:

ejs:412 410| <div class="row fill-width"> 411| <section class="categories"> >> 412| <% for (const {score, title} of computed.plugins.pagespeed.scores) { %> 413| <div class="categorie column"> 414| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="50" height="50" class="gauge <%= !Number.isNaN(score) ? (score >= 0.9 ? 'high' : score >= 0.5 ? 'average' : 'low') : '' %>"> 415| <circle class="gauge-base" r="53" cx="60" cy="60"></circle> computed.plugins.pagespeed.scores is not iterable

fail

@lowlighter
Copy link
Owner

Hi,
Thanks for the feedback.

I made some changes to the PageSpeed plugin in the new version v2.6 and it should be fixed now. If it still doesn't work, try enabling the debug option, I'll try to investigate more 👍

@vittodevit
Copy link
Author

Issue is now resolved for me, it's working fine. Thanks a lot for the help! 😄

@yozachar
Copy link
Contributor

This issue has resurfaced 😕 https://github.com/joe733/joe733/actions/runs/445593935

@lowlighter
Copy link
Owner

Hello !

Seems I haven't added enough logs to debug it yet.

I'm wondering if it isn't an uncaught error related to the rate-limit/captcha of the pagespeed api since it seems you don't have a token, and your runs are passing from time to time.

Anyway, I'll add more logs in next release to get more clues.

Thanks for your feedback, and happy holidays !

@lowlighter lowlighter reopened this Dec 26, 2020
@yozachar
Copy link
Contributor

yozachar commented Dec 27, 2020

Hi, Thanks for the taking note.

I'm wondering if it isn't an uncaught error related to the rate-limit/captcha of the pagespeed api since it seems you don't have a token, and your runs are passing from time to time.

Have you tried reducing the cron job frequency to say something like: '0 0 * * *' (every 12 AM UTC)? If not I'll try. I guess it might solve the issue, if it's due to rate-limit.

And happy holidays to you too!

@lowlighter lowlighter linked a pull request Dec 27, 2020 that will close this issue
@lowlighter
Copy link
Owner

@joe733
0 0 * * * is actually the schedule I use in my personal workflow and it seems fine.

But I think I've figured out the issue, errors of pagespeed plugin were indeed badly caught.
It should now fails "gracefully" with additional logs in the runner.

Don't hesitate to ping me if you still have this issue, I'll look at it and will hopefully be able to solve it next time.

Thanks a lot !

@lowlighter lowlighter reopened this Dec 27, 2020
@yozachar
Copy link
Contributor

Thanks a lot for the changes you made in #28. For now it looks good! Will inform when I see something. You can close the issue. 🙂

@lowlighter
Copy link
Owner

Thanks !

@github-actions github-actions bot locked and limited conversation to collaborators Mar 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants