GoogleChrome / lighthouse-ci

Automate running Lighthouse for every commit, viewing the changes, and preventing regressions
Apache License 2.0
6.43k stars 648 forks source link

GitHub Status Checks not being posted from Lighthouse GitHub App #680

Open j0nas opened 3 years ago

j0nas commented 3 years ago

Hi, and thank you for merging my small PR earlier :smile: I love that this repo exists, and the great work you're putting in here. :clap:

I'm having issues with getting the GitHub Status Checks working when following the docs. I've installed the Lighthouse GitHub App and added the provided token as a repo secret, but when the GitHub app attempts to post, it seems to encounter a HTTP 404 and nothing is posted to my PR.

Uploading median LHR of http://localhost:43429/index.html...success!
Open the report at https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1629741673517-18667.report.html
GitHub token found, attempting to set status...
GitHub responded with 404
{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"}

I've followed the linked documentation to the letter, with the exception of using Node.js 14 instead of 12, but I doubt that matters for the issue in question.

Here is the full build log ``` 2021-08-23T17:58:54.6441079Z Found online and idle hosted runner in the current repository's organization account that matches the required labels: 'ubuntu-latest' 2021-08-23T17:58:54.7127764Z Waiting for a Hosted runner in the 'organization' to pick this job... 2021-08-23T17:58:54.9812216Z Job is waiting for a hosted runner to come online. 2021-08-23T17:58:58.7693622Z Job is about to start running on the hosted runner: Hosted Agent (hosted) 2021-08-23T17:59:02.4705077Z Current runner version: '2.280.3' 2021-08-23T17:59:02.4732873Z ##[group]Operating System 2021-08-23T17:59:02.4733994Z Ubuntu 2021-08-23T17:59:02.4734573Z 20.04.2 2021-08-23T17:59:02.4735040Z LTS 2021-08-23T17:59:02.4735583Z ##[endgroup] 2021-08-23T17:59:02.4736183Z ##[group]Virtual Environment 2021-08-23T17:59:02.4736905Z Environment: ubuntu-20.04 2021-08-23T17:59:02.4737564Z Version: 20210816.1 2021-08-23T17:59:02.4738622Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20210816.1/images/linux/Ubuntu2004-README.md 2021-08-23T17:59:02.4740121Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210816.1 2021-08-23T17:59:02.4741115Z ##[endgroup] 2021-08-23T17:59:02.4741762Z ##[group]Virtual Environment Provisioner 2021-08-23T17:59:02.4742525Z 1.0.0.0-master-20210816-1 2021-08-23T17:59:02.4743137Z ##[endgroup] 2021-08-23T17:59:02.4745294Z ##[group]GITHUB_TOKEN Permissions 2021-08-23T17:59:02.4746874Z Actions: write 2021-08-23T17:59:02.4747513Z Checks: write 2021-08-23T17:59:02.4748042Z Contents: write 2021-08-23T17:59:02.4748675Z Deployments: write 2021-08-23T17:59:02.4749310Z Discussions: write 2021-08-23T17:59:02.4749884Z Issues: write 2021-08-23T17:59:02.4750476Z Metadata: read 2021-08-23T17:59:02.4751085Z Packages: write 2021-08-23T17:59:02.4751655Z PullRequests: write 2021-08-23T17:59:02.4752364Z RepositoryProjects: write 2021-08-23T17:59:02.4753064Z SecurityEvents: write 2021-08-23T17:59:02.4753696Z Statuses: write 2021-08-23T17:59:02.4754433Z ##[endgroup] 2021-08-23T17:59:02.4757818Z Prepare workflow directory 2021-08-23T17:59:02.5472765Z Prepare all required actions 2021-08-23T17:59:02.5484039Z Getting action download info 2021-08-23T17:59:02.8419326Z Download action repository 'actions/checkout@v2' (SHA:5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f) 2021-08-23T17:59:04.9339852Z Download action repository 'actions/setup-node@v1' (SHA:f1f314fca9dfce2769ece7d933488f076716723e) 2021-08-23T17:59:05.6417998Z ##[group]Run actions/checkout@v2 2021-08-23T17:59:05.6418713Z with: 2021-08-23T17:59:05.6419260Z repository: j0nas/test-lighthouse-ci 2021-08-23T17:59:05.6420289Z token: *** 2021-08-23T17:59:05.6420760Z ssh-strict: true 2021-08-23T17:59:05.6421294Z persist-credentials: true 2021-08-23T17:59:05.6421805Z clean: true 2021-08-23T17:59:05.6422206Z fetch-depth: 1 2021-08-23T17:59:05.6422617Z lfs: false 2021-08-23T17:59:05.6423015Z submodules: false 2021-08-23T17:59:05.6423453Z ##[endgroup] 2021-08-23T17:59:05.8922616Z Syncing repository: j0nas/test-lighthouse-ci 2021-08-23T17:59:05.8944780Z ##[group]Getting Git version info 2021-08-23T17:59:05.8946514Z Working directory is '/home/runner/work/test-lighthouse-ci/test-lighthouse-ci' 2021-08-23T17:59:05.9005616Z [command]/usr/bin/git version 2021-08-23T17:59:05.9144416Z git version 2.32.0 2021-08-23T17:59:06.4425883Z ##[endgroup] 2021-08-23T17:59:06.4427717Z Deleting the contents of '/home/runner/work/test-lighthouse-ci/test-lighthouse-ci' 2021-08-23T17:59:06.4431330Z ##[group]Initializing the repository 2021-08-23T17:59:06.4432936Z [command]/usr/bin/git init /home/runner/work/test-lighthouse-ci/test-lighthouse-ci 2021-08-23T17:59:06.4434572Z hint: Using 'master' as the name for the initial branch. This default branch name 2021-08-23T17:59:06.4435750Z hint: is subject to change. To configure the initial branch name to use in all 2021-08-23T17:59:06.4436862Z hint: of your new repositories, which will suppress this warning, call: 2021-08-23T17:59:06.4437686Z hint: 2021-08-23T17:59:06.4445927Z hint: git config --global init.defaultBranch 2021-08-23T17:59:06.4446929Z hint: 2021-08-23T17:59:06.4448093Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2021-08-23T17:59:06.4449946Z hint: 'development'. The just-created branch can be renamed via this command: 2021-08-23T17:59:06.4450931Z hint: 2021-08-23T17:59:06.4451863Z hint: git branch -m 2021-08-23T17:59:06.4453384Z Initialized empty Git repository in /home/runner/work/test-lighthouse-ci/test-lighthouse-ci/.git/ 2021-08-23T17:59:06.4455688Z [command]/usr/bin/git remote add origin https://github.com/j0nas/test-lighthouse-ci 2021-08-23T17:59:06.4457397Z ##[endgroup] 2021-08-23T17:59:06.4458780Z ##[group]Disabling automatic garbage collection 2021-08-23T17:59:06.4460042Z [command]/usr/bin/git config --local gc.auto 0 2021-08-23T17:59:06.4461432Z ##[endgroup] 2021-08-23T17:59:06.4466347Z ##[group]Setting up auth 2021-08-23T17:59:06.4499233Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2021-08-23T17:59:06.4501288Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2021-08-23T17:59:06.4503338Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2021-08-23T17:59:06.4505825Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2021-08-23T17:59:06.4508185Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2021-08-23T17:59:06.4509941Z ##[endgroup] 2021-08-23T17:59:06.4511240Z ##[group]Fetching the repository 2021-08-23T17:59:06.4513413Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +ba4e2296f68bd0fba366314f411e2b73ddd488e1:refs/remotes/origin/lighthouse-ci-setup 2021-08-23T17:59:06.4515202Z remote: Enumerating objects: 26, done. 2021-08-23T17:59:06.4516015Z remote: Counting objects: 3% (1/26) 2021-08-23T17:59:06.4516806Z remote: Counting objects: 7% (2/26) 2021-08-23T17:59:06.4517587Z remote: Counting objects: 11% (3/26) 2021-08-23T17:59:06.4518969Z remote: Counting objects: 15% (4/26) 2021-08-23T17:59:06.4536072Z remote: Counting objects: 19% (5/26) 2021-08-23T17:59:06.4537074Z remote: Counting objects: 23% (6/26) 2021-08-23T17:59:06.4537914Z remote: Counting objects: 26% (7/26) 2021-08-23T17:59:06.4538706Z remote: Counting objects: 30% (8/26) 2021-08-23T17:59:06.4539466Z remote: Counting objects: 34% (9/26) 2021-08-23T17:59:06.4540235Z remote: Counting objects: 38% (10/26) 2021-08-23T17:59:06.4541005Z remote: Counting objects: 42% (11/26) 2021-08-23T17:59:06.4541762Z remote: Counting objects: 46% (12/26) 2021-08-23T17:59:06.4542535Z remote: Counting objects: 50% (13/26) 2021-08-23T17:59:06.4543307Z remote: Counting objects: 53% (14/26) 2021-08-23T17:59:06.4544062Z remote: Counting objects: 57% (15/26) 2021-08-23T17:59:06.4544845Z remote: Counting objects: 61% (16/26) 2021-08-23T17:59:06.4545617Z remote: Counting objects: 65% (17/26) 2021-08-23T17:59:06.4546366Z remote: Counting objects: 69% (18/26) 2021-08-23T17:59:06.4547159Z remote: Counting objects: 73% (19/26) 2021-08-23T17:59:06.4547947Z remote: Counting objects: 76% (20/26) 2021-08-23T17:59:06.4548722Z remote: Counting objects: 80% (21/26) 2021-08-23T17:59:06.4549471Z remote: Counting objects: 84% (22/26) 2021-08-23T17:59:06.4550234Z remote: Counting objects: 88% (23/26) 2021-08-23T17:59:06.4551007Z remote: Counting objects: 92% (24/26) 2021-08-23T17:59:06.4551758Z remote: Counting objects: 96% (25/26) 2021-08-23T17:59:06.4552522Z remote: Counting objects: 100% (26/26) 2021-08-23T17:59:06.4553307Z remote: Counting objects: 100% (26/26), done. 2021-08-23T17:59:06.4554111Z remote: Compressing objects: 4% (1/24) 2021-08-23T17:59:06.4554928Z remote: Compressing objects: 8% (2/24) 2021-08-23T17:59:06.4555748Z remote: Compressing objects: 12% (3/24) 2021-08-23T17:59:06.4556543Z remote: Compressing objects: 16% (4/24) 2021-08-23T17:59:06.4557384Z remote: Compressing objects: 20% (5/24) 2021-08-23T17:59:06.4558504Z remote: Compressing objects: 25% (6/24) 2021-08-23T17:59:06.4559313Z remote: Compressing objects: 29% (7/24) 2021-08-23T17:59:06.4560135Z remote: Compressing objects: 33% (8/24) 2021-08-23T17:59:06.4560949Z remote: Compressing objects: 37% (9/24) 2021-08-23T17:59:06.4561773Z remote: Compressing objects: 41% (10/24) 2021-08-23T17:59:06.4562576Z remote: Compressing objects: 45% (11/24) 2021-08-23T17:59:06.4563394Z remote: Compressing objects: 50% (12/24) 2021-08-23T17:59:06.4564211Z remote: Compressing objects: 54% (13/24) 2021-08-23T17:59:06.4565673Z remote: Compressing objects: 58% (14/24) 2021-08-23T17:59:06.4566614Z remote: Compressing objects: 62% (15/24) 2021-08-23T17:59:06.4567444Z remote: Compressing objects: 66% (16/24) 2021-08-23T17:59:06.4568523Z remote: Compressing objects: 70% (17/24) 2021-08-23T17:59:06.4569501Z remote: Compressing objects: 75% (18/24) 2021-08-23T17:59:06.4570363Z remote: Compressing objects: 79% (19/24) 2021-08-23T17:59:06.4571258Z remote: Compressing objects: 83% (20/24) 2021-08-23T17:59:06.4572116Z remote: Compressing objects: 87% (21/24) 2021-08-23T17:59:06.4572937Z remote: Compressing objects: 91% (22/24) 2021-08-23T17:59:06.4573765Z remote: Compressing objects: 95% (23/24) 2021-08-23T17:59:06.4574564Z remote: Compressing objects: 100% (24/24) 2021-08-23T17:59:06.4575848Z remote: Compressing objects: 100% (24/24), done. 2021-08-23T17:59:06.5334513Z remote: Total 26 (delta 0), reused 22 (delta 0), pack-reused 0 2021-08-23T17:59:06.5587611Z From https://github.com/j0nas/test-lighthouse-ci 2021-08-23T17:59:06.5589108Z * [new ref] ba4e2296f68bd0fba366314f411e2b73ddd488e1 -> origin/lighthouse-ci-setup 2021-08-23T17:59:06.5608861Z ##[endgroup] 2021-08-23T17:59:06.5610474Z ##[group]Determining the checkout info 2021-08-23T17:59:06.5615811Z ##[endgroup] 2021-08-23T17:59:06.5616948Z ##[group]Checking out the ref 2021-08-23T17:59:06.5629895Z [command]/usr/bin/git checkout --progress --force -B lighthouse-ci-setup refs/remotes/origin/lighthouse-ci-setup 2021-08-23T17:59:06.5733173Z Switched to a new branch 'lighthouse-ci-setup' 2021-08-23T17:59:06.5734541Z Branch 'lighthouse-ci-setup' set up to track remote branch 'lighthouse-ci-setup' from 'origin'. 2021-08-23T17:59:06.5735960Z ##[endgroup] 2021-08-23T17:59:06.5768114Z [command]/usr/bin/git log -1 --format='%H' 2021-08-23T17:59:06.5794996Z 'ba4e2296f68bd0fba366314f411e2b73ddd488e1' 2021-08-23T17:59:06.5944142Z ##[group]Run actions/setup-node@v1 2021-08-23T17:59:06.5944717Z with: 2021-08-23T17:59:06.5945378Z node-version: 14 2021-08-23T17:59:06.5945844Z always-auth: false 2021-08-23T17:59:06.5946309Z ##[endgroup] 2021-08-23T17:59:06.7035674Z [command]/opt/hostedtoolcache/node/14.17.5/x64/bin/node --version 2021-08-23T17:59:07.4548998Z v14.17.5 2021-08-23T17:59:07.4576247Z [command]/opt/hostedtoolcache/node/14.17.5/x64/bin/npm --version 2021-08-23T17:59:09.1677935Z 6.14.14 2021-08-23T17:59:09.1870414Z ##[group]Run npm install 2021-08-23T17:59:09.1871163Z npm install 2021-08-23T17:59:09.1871618Z npm run build 2021-08-23T17:59:09.1920762Z shell: /usr/bin/bash -e {0} 2021-08-23T17:59:09.1921267Z ##[endgroup] 2021-08-23T17:59:12.1080011Z npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. 2021-08-23T17:59:16.7705101Z npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. 2021-08-23T17:59:17.5112537Z npm WARN deprecated querystring@0.2.1: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. 2021-08-23T17:59:21.0581311Z npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. 2021-08-23T17:59:21.5567803Z npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. 2021-08-23T17:59:21.7007538Z npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. 2021-08-23T17:59:21.9574448Z npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' 2021-08-23T17:59:22.0286500Z npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel. 2021-08-23T17:59:22.9903324Z npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added 2021-08-23T17:59:24.6136007Z npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash. 2021-08-23T17:59:24.6381899Z npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated 2021-08-23T17:59:25.2762673Z npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' 2021-08-23T17:59:25.3198025Z npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained 2021-08-23T17:59:25.5513407Z npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained 2021-08-23T17:59:25.5764043Z npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained 2021-08-23T17:59:26.8300053Z npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated 2021-08-23T17:59:28.4281325Z npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. 2021-08-23T17:59:52.7984256Z 2021-08-23T17:59:52.8005392Z > core-js@2.6.12 postinstall /home/runner/work/test-lighthouse-ci/test-lighthouse-ci/node_modules/babel-runtime/node_modules/core-js 2021-08-23T17:59:52.8025261Z > node -e "try{require('./postinstall')}catch(e){}" 2021-08-23T17:59:52.8025797Z 2021-08-23T17:59:52.9057212Z 2021-08-23T17:59:52.9059366Z > core-js@3.16.2 postinstall /home/runner/work/test-lighthouse-ci/test-lighthouse-ci/node_modules/core-js 2021-08-23T17:59:52.9060885Z > node -e "try{require('./postinstall')}catch(e){}" 2021-08-23T17:59:52.9061357Z 2021-08-23T17:59:52.9750457Z 2021-08-23T17:59:52.9780226Z > core-js-pure@3.16.2 postinstall /home/runner/work/test-lighthouse-ci/test-lighthouse-ci/node_modules/core-js-pure 2021-08-23T17:59:52.9781760Z > node -e "try{require('./postinstall')}catch(e){}" 2021-08-23T17:59:52.9782219Z 2021-08-23T17:59:53.0670805Z 2021-08-23T17:59:53.0673043Z > ejs@2.7.4 postinstall /home/runner/work/test-lighthouse-ci/test-lighthouse-ci/node_modules/ejs 2021-08-23T17:59:53.0674082Z > node ./postinstall.js 2021-08-23T17:59:53.0674783Z 2021-08-23T17:59:55.0748701Z npm notice created a lockfile as package-lock.json. You should commit this file. 2021-08-23T17:59:55.0827114Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.3 (node_modules/react-scripts/node_modules/fsevents): 2021-08-23T17:59:55.0829353Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 2021-08-23T17:59:55.0911825Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack-chokidar2/node_modules/chokidar/node_modules/fsevents): 2021-08-23T17:59:55.0914130Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 2021-08-23T17:59:55.1015688Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents): 2021-08-23T17:59:55.1019644Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 2021-08-23T17:59:55.1108414Z npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.14.5 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself. 2021-08-23T17:59:55.1235479Z npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself. 2021-08-23T17:59:55.1236653Z 2021-08-23T17:59:55.1300329Z added 1909 packages from 739 contributors and audited 1912 packages in 43.885s 2021-08-23T17:59:56.2140055Z 2021-08-23T17:59:56.2141483Z 148 packages are looking for funding 2021-08-23T17:59:56.2142555Z run `npm fund` for details 2021-08-23T17:59:56.2143189Z 2021-08-23T17:59:56.2161561Z found 3 moderate severity vulnerabilities 2021-08-23T17:59:56.2162698Z run `npm audit fix` to fix them, or `npm audit` for details 2021-08-23T17:59:56.4925221Z 2021-08-23T17:59:56.4927741Z > test-lighthouse-ci@0.1.0 build /home/runner/work/test-lighthouse-ci/test-lighthouse-ci 2021-08-23T17:59:56.4929703Z > react-scripts build 2021-08-23T17:59:56.4930055Z 2021-08-23T17:59:58.0646492Z Creating an optimized production build... 2021-08-23T18:00:05.8817756Z Compiled successfully. 2021-08-23T18:00:05.8818686Z 2021-08-23T18:00:05.8819707Z File sizes after gzip: 2021-08-23T18:00:05.8820299Z 2021-08-23T18:00:05.8935553Z 41.34 KB build/static/js/2.1a7b6deb.chunk.js 2021-08-23T18:00:05.8936701Z 1.63 KB build/static/js/3.2a073cb0.chunk.js 2021-08-23T18:00:05.8938461Z 1.18 KB build/static/js/runtime-main.f034f672.js 2021-08-23T18:00:05.8939637Z 613 B build/static/js/main.44e701b0.chunk.js 2021-08-23T18:00:05.8940703Z 556 B build/static/css/main.a617e044.chunk.css 2021-08-23T18:00:05.8941418Z 2021-08-23T18:00:05.8942345Z The project was built assuming it is hosted at /. 2021-08-23T18:00:05.8943543Z You can control this with the homepage field in your package.json. 2021-08-23T18:00:05.8944294Z 2021-08-23T18:00:05.8945108Z The build folder is ready to be deployed. 2021-08-23T18:00:05.8946084Z You may serve it with a static server: 2021-08-23T18:00:05.8946688Z 2021-08-23T18:00:05.8947417Z yarn global add serve 2021-08-23T18:00:05.8956542Z serve -s build 2021-08-23T18:00:05.8957154Z 2021-08-23T18:00:05.8957908Z Find out more about deployment here: 2021-08-23T18:00:05.8958478Z 2021-08-23T18:00:05.8959159Z https://cra.link/deployment 2021-08-23T18:00:05.8959686Z 2021-08-23T18:00:06.4556841Z ##[group]Run npm install -g @lhci/cli@0.8.x 2021-08-23T18:00:06.4557633Z npm install -g @lhci/cli@0.8.x 2021-08-23T18:00:06.4558141Z lhci autorun 2021-08-23T18:00:06.4609424Z shell: /usr/bin/bash -e {0} 2021-08-23T18:00:06.4609883Z env: 2021-08-23T18:00:06.4611007Z LHCI_GITHUB_APP_TOKEN: *** 2021-08-23T18:00:06.4611525Z ##[endgroup] 2021-08-23T18:00:10.6467582Z npm WARN deprecated intl-messageformat-parser@1.8.1: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser 2021-08-23T18:00:10.6909019Z npm WARN deprecated uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. 2021-08-23T18:00:18.8104989Z /opt/hostedtoolcache/node/14.17.5/x64/bin/lhci -> /opt/hostedtoolcache/node/14.17.5/x64/lib/node_modules/@lhci/cli/src/cli.js 2021-08-23T18:00:18.9230686Z + @lhci/cli@0.8.0 2021-08-23T18:00:18.9231378Z added 333 packages from 206 contributors in 12.037s 2021-08-23T18:00:19.7443377Z ✅ .lighthouseci/ directory writable 2021-08-23T18:00:19.7449147Z ✅ Configuration file found 2021-08-23T18:00:19.8119240Z ✅ Chrome installation found 2021-08-23T18:00:19.8124701Z ✅ GitHub token set 2021-08-23T18:00:19.8127847Z Healthcheck passed! 2021-08-23T18:00:19.8169419Z 2021-08-23T18:00:19.8194583Z Automatically determined ./build as `staticDistDir`. 2021-08-23T18:00:19.8195603Z Set it explicitly in lighthouserc.json if incorrect. 2021-08-23T18:00:19.8196099Z 2021-08-23T18:00:20.2479435Z Started a web server on port 43429... 2021-08-23T18:00:20.2495974Z Running Lighthouse 3 time(s) on http://localhost:43429/index.html 2021-08-23T18:00:42.2997888Z Run #1...done. 2021-08-23T18:00:57.5585545Z Run #2...done. 2021-08-23T18:01:12.8025593Z Run #3...done. 2021-08-23T18:01:12.8028800Z Done running Lighthouse! 2021-08-23T18:01:12.8077318Z 2021-08-23T18:01:13.7952575Z Uploading median LHR of http://localhost:43429/index.html...success! 2021-08-23T18:01:13.7955854Z Open the report at https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1629741673517-18667.report.html 2021-08-23T18:01:13.8043795Z GitHub token found, attempting to set status... 2021-08-23T18:01:14.3948818Z GitHub responded with 404 2021-08-23T18:01:14.3951161Z {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"} 2021-08-23T18:01:14.3952029Z 2021-08-23T18:01:14.4024346Z 2021-08-23T18:01:14.4025341Z Done running autorun. 2021-08-23T18:01:14.4183959Z Post job cleanup. 2021-08-23T18:01:14.5467532Z [command]/usr/bin/git version 2021-08-23T18:01:14.5513390Z git version 2.32.0 2021-08-23T18:01:14.5555771Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand 2021-08-23T18:01:14.5588640Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || : 2021-08-23T18:01:14.5815084Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2021-08-23T18:01:14.5835785Z http.https://github.com/.extraheader 2021-08-23T18:01:14.5850995Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2021-08-23T18:01:14.5882264Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || : 2021-08-23T18:01:14.6161455Z Cleaning up orphan processes ```

My environment is GitHub Actions, running Node.js 14.x.

My .github/workflows/ci.yml:

name: CI
on: [push]
jobs:
  lhci:
    name: Lighthouse
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_request.head.sha }}
      - name: Use Node.js 14
        uses: actions/setup-node@v1
        with:
          node-version: 14
      - name: npm install, build
        run: |
          npm install
          npm run build
      - name: run Lighthouse CI
        run: |
          npm install -g @lhci/cli@0.8.x
          lhci autorun
        env:
          LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

And I set LHCI_GITHUB_APP_TOKEN to the token provided to me when I installed the Lighthouse GitHub application.

tniezurawski commented 2 years ago

@j0nas It looks like it was a temporary problem. The error message suggests some issue with the script using Github API in the wrong way (I guess).

Did it start working for you after all?

kisaraofpern commented 1 year ago

@tniezurawski I'm having a similar issue where we're using GitHub Actions to run the Lighthouse script as part of our CI. In the output for the specific job, I see:

GitHub token found, attempting to set status...
GitHub accepted "success" status for ${URL}.

However, the status does not appear in the checks for the Pull Request. This was not an issue when we were invoking the script as part of CI on AWS CodeBuild.

Have you seen this issue elsewhere? I do prefer to see the status checks for each of the individual URLs, which is a perk of using the App vs the Action published by Treo.

tniezurawski commented 1 year ago

@kisaraofpern I'm just a user and had some problems before which led me to this issue in the past... but my issue was temporary so I thought @j0nas's could be as well.