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

v2.9 - Update importing fonts.googleapis.com to use SSL #4219

Conversation

Noah-Silvera
Copy link
Contributor

On 23/11/2021, google started to require ssl to access //fonts.googleapis.com/css, causing the import in the solidus frontend stylesheet to fail in CI. This breaks solidus and tests that run against the solidus_frontend. We can resolve this by explicitly using the https protocol.

Error example:
https://app.circleci.com/pipelines/github/solidusio/solidus/2791/workflows/e62ff646-9ae6-4e65-b20f-e1f7a109d3a1/jobs/26572

Blocking of this URL in testing_support was updated to bring it inline
with how url's are blacklisted in future solidus versions.

Even though solidus 2.9 is at end of life, some solidus extensions still test and maintain support against this version of solidus, such as SuperGoodSoft/solidus_taxjar, so it's important to continue to enable that testing.

This PR was based off the three PRs that cover actively maintained solidus versions created by @RyanofWoods

Checklist:

Copy link
Member

@jarednorman jarednorman left a comment

Choose a reason for hiding this comment

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

I believe the errors are unrelated to this change.

@waiting-for-dev
Copy link
Contributor

Not sure, but could it be related to #4048?

@jarednorman
Copy link
Member

That was my suspicion.

@Noah-Silvera Noah-Silvera force-pushed the v2.9-fix-frontend-scss-font-url-import branch from 27895db to d24134c Compare December 2, 2021 18:49
@Noah-Silvera
Copy link
Contributor Author

I think that is the problem. I ported over the relevant commit from that PR, and we'll see if the tests pass.

@Noah-Silvera Noah-Silvera force-pushed the v2.9-fix-frontend-scss-font-url-import branch from d24134c to d07f5c2 Compare December 2, 2021 18:53
@Noah-Silvera
Copy link
Contributor Author

Just fixed an inaccurate message in the first commit that referenced the wrong rails version. These tests are breaking because rails 5.2.6 introduced the security patch, not rails 6.0.3.7, like the commit originally said.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Would it make sense to add this to v2.10 as well, then?

@waiting-for-dev waiting-for-dev force-pushed the v2.9-fix-frontend-scss-font-url-import branch from d07f5c2 to fdc732d Compare June 7, 2022 11:10
Noah-Silvera and others added 2 commits June 7, 2022 13:11
On 23/11/2021, google started to require ssl to access
`//fonts.googleapis.com/css`, causing the import in the solidus frontend
stylesheet to fail in CI. This breaks solidus and tests that run against
the solidus_frontend. We can resolve this by explicitly using the
https protocol.

Error example:
app.circleci.com/pipelines/github/solidusio/solidus/2791/workflows/e62ff646-9ae6-4e65-b20f-e1f7a109d3a1/jobs/26572

Blocking of this URL in testing_support was updated to bring it inline
with how url's are blacklisted in future solidus versions.

Even though solidus 2.9 is at end of life, some solidus extensions
still test and maintain support against this  version of solidus, such
as SuperGoodSoft/solidus_taxjar.

Co-authored-by: Ryan Woods <[email protected]>
Rails 5.2.6 introduced a security fix, that forces us to use symbols
in polymorphic paths.

Port of this original commit:
solidusio@bc06da5

Co-authored-by: Thomas von Deyen <[email protected]>
@waiting-for-dev waiting-for-dev force-pushed the v2.9-fix-frontend-scss-font-url-import branch from fdc732d to c459403 Compare June 7, 2022 11:12
@waiting-for-dev
Copy link
Contributor

I tried to re-run CI, but, for some reason, it fails to clone a repository:

screenshot-app circleci com-2022 06 09-09_58_17

Does anybody have a clue about the reason?

@waiting-for-dev
Copy link
Contributor

Closing it. CI is mysteriously failing, and v2.9 is not supported anyway. If someone needs it and has the time to look into it, for me, it's not an issue to reopen and merge it.

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.

4 participants