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

Fix Percy on CircleCI performance issues #5048

Merged
merged 3 commits into from Apr 4, 2024

Conversation

bartaz
Copy link
Contributor

@bartaz bartaz commented Apr 4, 2024

Done

On Thursday 04.04 CircleCI builds for Percy started to timeout.
For some reason we don't fully understand yet, the process of crawling example links out of the website started to be very slow and time consuming which in the end led to timeout.

To remedy the issue this PR replaces the process of crawling the website (to get example URLs) to simply getting list of example files from file system and constructing URLs out of the file names (because they are jinja templates and there is 1:1 relation between the file paths and URLs).

We also increase CircleCI resources (as suggested by CircleCI itself) to use environment with more CPU cores and RAM.

QA

  • Make sure CircleCI Percy job is passing
image

@webteam-app
Copy link

@bartaz bartaz changed the title WIP: Get examples from file system instead of crawling website Fix Percy on CircleCI performance issues Apr 4, 2024
@bartaz bartaz marked this pull request as ready for review April 4, 2024 13:39
@bartaz bartaz mentioned this pull request Apr 4, 2024
3 tasks
snapshots.js Show resolved Hide resolved
snapshots.js Show resolved Hide resolved
@mas-who
Copy link
Contributor

mas-who commented Apr 4, 2024

LGTM 👍

@bartaz bartaz merged commit aac7063 into canonical:main Apr 4, 2024
5 checks passed
@bartaz bartaz deleted the get-examples-list branch April 4, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants