Skip to content

Chore: Remove node-canvas dependency #12238

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

Conversation

personalizedrefrigerator
Copy link
Collaborator

Summary

This pull request removes the node-canvas dependency.

Previously,

  • This dependency was used for the OcrService's multi_page__no_embedded_text.pdf test.
  • This dependency caused occasional CI failures (related: upgrade to canvas v3) and made it more difficult for new contributors to set up the development environment.

Impact on test coverage

This pull request removes the test for OCRing PDFs with no embedded text. However, this case will be covered by the end-to-end tests added in #12237.

Comment on lines -14 to -16
"pixman": "latest",
"cairo.dev": "",
"pango.dev": "",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: I have not manually tested this updated devbox config.

@laurent22 laurent22 merged commit 5b2f409 into laurent22:dev May 19, 2025
14 of 15 checks passed
@personalizedrefrigerator personalizedrefrigerator deleted the pr/chore/remove-canvas-dependency branch May 22, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants