Skip to content

Conversation

@florian-lefebvre
Copy link
Member

Changes

Testing

Unit + manual

Docs

Changeset

@florian-lefebvre florian-lefebvre self-assigned this May 8, 2025
@changeset-bot
Copy link

changeset-bot bot commented May 8, 2025

🦋 Changeset detected

Latest commit: ebbfd22

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label May 8, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented May 8, 2025

CodSpeed Performance Report

Merging #13765 will not alter performance

Comparing fix/fonts-absolute-url-check (ebbfd22) with main (0db39b0)

Summary

✅ 6 untouched benchmarks

Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Can you create a e2e test (or integration test), so we test if the font is correctly loaded? I'm not sure a unit test is enough here

@ascorbic
Copy link
Contributor

ascorbic commented May 8, 2025

I approved this before seeing Ema's request for changes

@florian-lefebvre
Copy link
Member Author

@ematipico I don't think a e2e test is needed here. The way the fonts are architected allow to test every part in isolation with unit tests.

In this case, the bug is not that the font fetcher thinks the url is absolute when it's not (and fails). The bug is that the url it receives is incorrect. So I believe the test is actually fine since it makes sure this kind of url is handled earlier.

Let me know what you think!

@florian-lefebvre florian-lefebvre merged commit d874fe0 into main May 8, 2025
16 checks passed
@florian-lefebvre florian-lefebvre deleted the fix/fonts-absolute-url-check branch May 8, 2025 11:43
@astrobot-houston astrobot-houston mentioned this pull request May 8, 2025
openscript pushed a commit to openscript/astro that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues loading fonts from fontshare in Experimental fonts API

3 participants