You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the a POC, I am trying to run lhci server on my local machine using the docker image. When I trigger the lhci autorun in my local, below is the message I am getting. Not sure where to override the environment variables below, would appreciate any help.
LHCI_BUILD_CONTEXT__CURRENT_BRANCH
LHCI_BUILD_CONTEXT__CURRENT_HASH
✅ .lighthouseci/ directory writable
✅ Configuration file found
✅ Chrome installation found ⚠️ Ancestor hash not determinable
ERROR: Unable to determine current branch with git rev-parse --abbrev-ref HEAD. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_BRANCH env.
✅ LHCI server reachable
✅ LHCI server API-compatible
✅ LHCI server token valid ⚠️ LHCI server already has a build for this commit hash
ERROR: Unable to determine current branch with git rev-parse --abbrev-ref HEAD. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_BRANCH env.
Healthcheck passed!
Running Lighthouse 1 time(s) on https://url.co.nz/
Run #1...done.
Done running Lighthouse!
Checking assertions against 1 URL(s), 1 total run(s)
⚠️ categories.performance warning for minScore assertion
expected: >=0.9
found: 0.67
all values: 0.67
⚠️ categories.accessibility warning for minScore assertion
expected: >=1
found: 0.7
all values: 0.7
All results processed!
Error: Unable to determine current hash with git rev-parse HEAD. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_HASH env.
at getCurrentHash (/Users/jonathanherrera/node_modules/@lhci/utils/src/build-context.js:78:11)
at runLHCITarget (/Users/jonathanherrera/node_modules/@lhci/cli/src/upload/upload.js:405:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.runCommand (/Users/jonathanherrera/node_modules/@lhci/cli/src/upload/upload.js:592:16)
at async run (/Users/jonathanherrera/node_modules/@lhci/cli/src/cli.js:109:7)
WARNING: upload command failed.
Done running autorun.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
As part of the a POC, I am trying to run lhci server on my local machine using the docker image. When I trigger the lhci autorun in my local, below is the message I am getting. Not sure where to override the environment variables below, would appreciate any help.
LHCI_BUILD_CONTEXT__CURRENT_BRANCH
LHCI_BUILD_CONTEXT__CURRENT_HASH
✅ .lighthouseci/ directory writable
⚠️ Ancestor hash not determinable
⚠️ LHCI server already has a build for this commit hash
✅ Configuration file found
✅ Chrome installation found
ERROR: Unable to determine current branch with
git rev-parse --abbrev-ref HEAD
. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_BRANCH env.✅ LHCI server reachable
✅ LHCI server API-compatible
✅ LHCI server token valid
ERROR: Unable to determine current branch with
git rev-parse --abbrev-ref HEAD
. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_BRANCH env.Healthcheck passed!
Running Lighthouse 1 time(s) on https://url.co.nz/
Run #1...done.
Done running Lighthouse!
Checking assertions against 1 URL(s), 1 total run(s)
2 result(s) for https://url.co.nz/ :
expected: >=0.9
found: 0.67
all values: 0.67
expected: >=1
found: 0.7
all values: 0.7
All results processed!
Error: Unable to determine current hash with
git rev-parse HEAD
. This can be overridden with setting LHCI_BUILD_CONTEXT__CURRENT_HASH env.at getCurrentHash (/Users/jonathanherrera/node_modules/@lhci/utils/src/build-context.js:78:11)
at runLHCITarget (/Users/jonathanherrera/node_modules/@lhci/cli/src/upload/upload.js:405:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.runCommand (/Users/jonathanherrera/node_modules/@lhci/cli/src/upload/upload.js:592:16)
at async run (/Users/jonathanherrera/node_modules/@lhci/cli/src/cli.js:109:7)
WARNING: upload command failed.
Done running autorun.
Beta Was this translation helpful? Give feedback.
All reactions