Open j0nas opened 3 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?
@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.
@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.
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.
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.defaultBranchMy environment is GitHub Actions, running Node.js 14.x.
My .github/workflows/ci.yml:
And I set
LHCI_GITHUB_APP_TOKEN
to the token provided to me when I installed the Lighthouse GitHub application.