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

feat: middleware #543

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

back max-age

a384f5a
Select commit
Loading
Failed to load commit list.
Draft

feat: middleware #543

back max-age
a384f5a
Select commit
Loading
Failed to load commit list.
VTEX Sites / Lighthouse failed Oct 23, 2024 in 6m 35s

Lighthouse

Lighthouse reports successfully generated

Details

✅ .lighthouseci/ directory writable
✅ Configuration file found
✅ Chrome installation found
✅ GitHub token set
⚠️ Ancestor hash not determinable
✅ LHCI server reachable
✅ LHCI server API-compatible
✅ LHCI server token valid
✅ LHCI server can accept a build for this commit hash
Healthcheck passed!

Running Lighthouse 3 time(s) on https://sfj-a384f5a--starter.preview.vtex.app/
Run #1...done.
Run #2...done.
Run #3...done.
Running Lighthouse 3 time(s) on https://sfj-a384f5a--starter.preview.vtex.app/apple-magic-mouse/p
Run #1...done.
Run #2...done.
Run #3...done.
Running Lighthouse 3 time(s) on https://sfj-a384f5a--starter.preview.vtex.app/office
Run #1...done.
Run #2...done.
Run #3...done.
Done running Lighthouse!

Checking assertions against 3 URL(s), 9 total run(s)

5 result(s) for https://sfj-a384f5a--starter.preview.vtex.app/ :

✘ categories.seo failure for minScore assertion
expected: >=1
found: 0.93
all values: 0.93, 0.93, 0.93

✘ errors-in-console failure for minScore assertion
Browser errors were logged to the console
https://developer.chrome.com/docs/lighthouse/best-practices/errors-in-console/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

✘ is-crawlable failure for minScore assertion
Page is blocked from indexing
https://developer.chrome.com/docs/lighthouse/seo/is-crawlable/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

⚠️ bf-cache warning for minScore assertion
Page prevented back/forward cache restoration
https://developer.chrome.com/docs/lighthouse/performance/bf-cache/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

⚠️ max-potential-fid warning for minScore assertion
Max Potential First Input Delay
https://developer.chrome.com/docs/lighthouse/performance/lighthouse-max-potential-fid/

    expected: >=0.9
       found: 0.7
  all values: 0.46, 0.7, 0.68

7 result(s) for https://sfj-a384f5a--starter.preview.vtex.app/apple-magic-mouse/p :

✘ categories.performance failure for minScore assertion
expected: >=0.95
found: 0.88
all values: 0.88, 0.87, 0.87

✘ categories.seo failure for minScore assertion
expected: >=1
found: 0.93
all values: 0.93, 0.93, 0.93

✘ errors-in-console failure for minScore assertion
Browser errors were logged to the console
https://developer.chrome.com/docs/lighthouse/best-practices/errors-in-console/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

✘ is-crawlable failure for minScore assertion
Page is blocked from indexing
https://developer.chrome.com/docs/lighthouse/seo/is-crawlable/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

⚠️ bf-cache warning for minScore assertion
Page prevented back/forward cache restoration
https://developer.chrome.com/docs/lighthouse/performance/bf-cache/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

⚠️ mainthread-work-breakdown warning for minScore assertion
Minimize main-thread work
https://developer.chrome.com/docs/lighthouse/performance/mainthread-work-breakdown/

    expected: >=0.9
       found: 0.81
  all values: 0.75, 0.81, 0.72

⚠️ max-potential-fid warning for minScore assertion
Max Potential First Input Delay
https://developer.chrome.com/docs/lighthouse/performance/lighthouse-max-potential-fid/

    expected: >=0.9
       found: 0.64
  all values: 0.64, 0.57, 0.49

9 result(s) for https://sfj-a384f5a--starter.preview.vtex.app/office :

✘ categories.performance failure for minScore assertion
expected: >=0.95
found: 0.85
all values: 0.85, 0.71, 0.83

✘ categories.seo failure for minScore assertion
expected: >=1
found: 0.93
all values: 0.93, 0.93, 0.93

✘ errors-in-console failure for minScore assertion
Browser errors were logged to the console
https://developer.chrome.com/docs/lighthouse/best-practices/errors-in-console/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

✘ is-crawlable failure for minScore assertion
Page is blocked from indexing
https://developer.chrome.com/docs/lighthouse/seo/is-crawlable/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

✘ total-blocking-time failure for maxNumericValue assertion
Total Blocking Time
https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/

    expected: <=350
       found: 406.5
  all values: 406.5, 636, 513.0000000000007

⚠️ bf-cache warning for minScore assertion
Page prevented back/forward cache restoration
https://developer.chrome.com/docs/lighthouse/performance/bf-cache/

    expected: >=0.9
       found: 0
  all values: 0, 0, 0

⚠️ bootup-time warning for minScore assertion
Reduce JavaScript execution time
https://developer.chrome.com/docs/lighthouse/performance/bootup-time/

    expected: >=0.9
       found: 0.87
  all values: 0.87, 0.84, 0.85

⚠️ mainthread-work-breakdown warning for minScore assertion
Minimize main-thread work
https://developer.chrome.com/docs/lighthouse/performance/mainthread-work-breakdown/

    expected: >=0.9
       found: 0.67
  all values: 0.67, 0.55, 0.63

⚠️ max-potential-fid warning for minScore assertion
Max Potential First Input Delay
https://developer.chrome.com/docs/lighthouse/performance/lighthouse-max-potential-fid/

    expected: >=0.9
       found: 0.53
  all values: 0.39, 0.34, 0.53

Assertion failed. Exiting with status code 1.

Saving CI project starter.store (895c6919-7c6f-457e-952f-27b01e04b0de)
Saving CI build (e2c715a1-f7ce-4741-93dd-772d74ccbe10)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (75443c97-6387-4e78-a6da-08dda37c7be5)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (c1f25fa2-0293-4114-9037-b8ee61c7888c)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (d05ee18c-2019-43e3-964a-0928564e74c0)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (b3ac2421-e3b6-444f-aa23-06f20facd75d)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (d9ce07f8-6dc0-4687-ae52-95e1193757f5)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (409cf845-ebf2-4613-beae-53c0493d6340)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (7b65a70d-9130-43bc-b742-6c88d131b8c8)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (1ac55a92-cfd7-4fc9-bb59-6f115a2eb327)
Saved LHR to http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io (84282c57-0def-4837-a03b-2849afcaaa87)
Done saving build results to Lighthouse CI
View build diff at http://lighthouse-ci.prd-sh-frontendcicd-eks-use1b-z64.us-east-1.eksctl.io.ingress.vtex.io/app/projects/starter.store/compare/e2c715a1-f7ce-4741-93dd-772d74ccbe10
GitHub token found, attempting to set status...
GitHub accepted "failure" status for "lhci/url/".
GitHub accepted "failure" status for "lhci/url/office".
GitHub accepted "failure" status for "lhci/urlle-magic-mouse/p".

assert command failed. Exiting with status code 1.