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

Downgrade to lhci 0.8 #447

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Downgrade to lhci 0.8 #447

merged 2 commits into from
Nov 2, 2023

Conversation

kasperg
Copy link
Contributor

@kasperg kasperg commented Oct 30, 2023

Description

We upgraded to Lighthouse 0.12 as suggested by Dependabot in #434. However this has introduced multiple problems:

First:

Lighthouse CI/lhci 0.10 introduces a change where it will respect the
HTTP_PROXY url environment variable for API requests. Apparently this
includes uploading reports to temporary storage.
https://github.com/GoogleChrome/lighthouse-ci/releases/tag/v0.10.0
GoogleChrome/lighthouse-ci#727

As we setup Wiremock as a general HTTP proxy for Lighthouse requests to
mock API requests, report uploads will also pass through Wiremock.
This results in an error when uploading reports:

FetchError: request to https://us-central1-lighthouse-infrastructure.cloudfunctions.net/saveHtmlReport failed, reason: self signed certificate in certificate chain

This is also visible in the output for the PR which introduced the upgrade #434 even though the action as a whole succeeded: https://github.com/danskernesdigitalebibliotek/dpl-cms/actions/runs/6588193517/job/17899940545

To address this we either need to move away from browser proxying so
we only use WireMock for specific external systems or setup the browser
proxy to provide a trusted certificate chain.
https://wiremock.org/docs/proxying/#browser-proxying-of-https

Second:

Running with lhci 0.9 upgrades to Lighthouse 9.3.0. This reveals new
problems which causes our tests to fail: https://github.com/danskernesdigitalebibliotek/dpl-cms/actions/runs/6695006011/job/18201354535

LCHI 0.8 was the original version we used before Dependabot started
suggesting updates. Revert to this to ensure we have a working version.
Then we will update LHCI at a later point in time when we have room to
fix these issues.

@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 14:00 Destroyed
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 14:07 Destroyed
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 14:14 Destroyed
Lighthouse CI/lhci 0.10 introduces a change where it will respect the
HTTP_PROXY url environment variable for API requests. Apparently this
includes uploading reports to temporary storage.
https://github.com/GoogleChrome/lighthouse-ci/releases/tag/v0.10.0
GoogleChrome/lighthouse-ci#727

As we setup Wiremock as a general HTTP proxy for Lighthouse requests to
mock API requests, report uploads will also pass through Wiremock.
This results in an error when uploading reports:

FetchError: request to https://us-central1-lighthouse-infrastructure.cloudfunctions.net/saveHtmlReport failed, reason: self signed certificate in certificate chain

To address this we either need to move away from browser proxying so
we only use WireMock for specific external systems or setup the browser
proxy to provide a trusted certificate chain.
https://wiremock.org/docs/proxying/#browser-proxying-of-https
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 15:25 Destroyed
@kasperg kasperg changed the title Downgrade to lhci 0.11 Downgrade to lhci 0.9 Oct 30, 2023
@kasperg kasperg marked this pull request as ready for review October 30, 2023 15:28
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 21:23 Destroyed
@kasperg kasperg marked this pull request as draft October 30, 2023 21:35
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 21:38 Destroyed
@github-actions github-actions bot temporarily deployed to pr-447 October 30, 2023 22:04 Destroyed
@kasperg kasperg changed the title Downgrade to lhci 0.9 Downgrade to lhci 0.8 Oct 30, 2023
Running with lhci 0.9 upgrades to Lighthouse 9.3.0. This reveals new 
problems which causes our tests to fail.

LCHI 0.8 was the original version we used before Dependabot started
suggesting updates. Revert to this to ensure we have a working version.
Then we will update LHCI at a later point in time when we have room to
fix these issues.
@github-actions github-actions bot temporarily deployed to pr-447 October 31, 2023 04:04 Destroyed
@kasperg kasperg marked this pull request as ready for review October 31, 2023 04:12
@spaceo spaceo self-requested a review November 2, 2023 08:41
Copy link
Collaborator

@spaceo spaceo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kasperg kasperg merged commit ce78d9b into develop Nov 2, 2023
18 checks passed
@kasperg kasperg deleted the lhci-11 branch November 2, 2023 09: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.

5 participants