question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working in CD builds

See original GitHub issue

Describe the bug

As per the blog post I enabled the plugin for one of my sites and change the netlify.toml to run for desktop.

The result CD build showed the plugin was enabled but it’s post build step is 9ms and there are no results in the feed and I cannot find any in the control panel (but I’ve not idea where to look.

It works locally - took some

To Reproduce

  1. install plugin
  2. configure toml locally
  3. push changes

Expected behavior A lighthous score in the build output and somewhere in the control panel

Screenshots netlify.toml

[build]
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --trace --config '_config.yml,_config_staging.yml'"
publish = "_site"

[build.environment]
RUBY_VERSION = "2.6.2"

[[redirects]]
from = "/wai-website"
to = "/"
status = 404

[dev]
command = "bundle exec jekyll serve -w --livereload --config _config.yml,_config_staging.yml"

[functions]
directory = "_functions"
node_bundler = "esbuild"

[[plugins]]
package = "@netlify/plugin-functions-install-core"

[[plugins]]
# See https://github.com/netlify/netlify-plugin-lighthouse#readme
package = "@netlify/plugin-lighthouse"
[plugins.inputs.settings]
preset = "desktop" # default is mobile
locale = "en"
# to audit an HTML file other than index.html in a sub path of the build directory
#[[plugins.inputs.audits]]
#path = "pages/contact.html"

Additional context

partial build Log

6:08:25 PM: ❯ Loading plugins
6:08:25 PM:    - @netlify/plugin-lighthouse@4.0.1 from netlify.toml and package.json
6:08:27 PM: ​
6:08:27 PM: ────────────────────────────────────────────────────────────────
6:08:27 PM:   1. @netlify/plugin-functions-install-core (onPreBuild event)  
6:08:27 PM: ────────────────────────────────────────────────────────────────
6:08:27 PM: ​
6:08:27 PM: ​
6:08:27 PM: (@netlify/plugin-functions-install-core onPreBuild completed in 10ms)



────────────────────────────────────────────────────────────────
6:10:03 PM:   4. @netlify/plugin-lighthouse (onPostBuild event)             
6:10:03 PM: ────────────────────────────────────────────────────────────────
6:10:03 PM: ​
6:10:03 PM: ​
6:10:03 PM: (@netlify/plugin-lighthouse onPostBuild completed in 9ms)
6:10:03 PM: ​
6:10:03 PM: ────────────────────────────────────────────────────────────────
6:10:03 PM:   5. Deploy site                                                
6:10:03 PM: ────────────────────────────────────────────────────────────────
6:10:03 PM: ​

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
SteveALeecommented, Oct 13, 2022

That was in the docs for functions I think. If I recall it’s a bit of magic.

Eg https://docs.netlify.com/integrations/build-plugins/#automatic-installation

1reaction
SteveALeecommented, Oct 17, 2022

@kevinsamoei ahah, yes I see. Neat thanks. At least we get 1 for a11y lol.

@brittneypostma oh, I can sort of see that. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Identify and fix broken builds with CI/CD pipelines | TechTarget
Are failed or broken builds creating CI/CD pipeline challenges? ... Broken builds can be red flags for larger issues and also signifyΒ ...
Read more >
7 Common Issues with CI/CD and How to Fix Them | AltexSoft
Here are a few common issues you will experience when attempting to set up and work with a CI/CD pipeline.
Read more >
Troubleshooting CI/CD - GitLab Documentation
GitLab provides several tools to help make troubleshooting your pipelines easier. This guide also lists common issues and possible solutions.
Read more >
Troubleshooting AWS CodeBuild
Issue: When you try to run a build project, the build fails with this error. Possible cause: Your source repository has a self-signed...
Read more >
Solving the CI/CD Build Queue Bottleneck Problem
In any case we have to check a lot of different things to find out why the build is not starting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found