Not working in CD builds
See original GitHub issueDescribe 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
- install plugin
- configure toml locally
- 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:
- Created a year ago
- Comments:11 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
@kevinsamoei ahah, yes I see. Neat thanks. At least we get 1 for a11y lol.
@brittneypostma oh, I can sort of see that. Thanks.