Open AngieWongHeb opened 9 months ago
Hi @AngieWongHeb, could you please try following the steps in this guide in our docs? It's likely the Looker user that you're using to run Spectacles has gotten into a corrupted Git state.
The guide is written for our web application, but the process is the same, just replace "set up a new worker in Spectacles" with "replace your Looker credentials in GitHub Actions".
Hi Josh, thanks for the prompt response. I followed the guide and I could checkout a branch from within Looker? When you say, "replace your Looker credentials in GitHub Actions", do you mean replacing the client ID and secret and the new Looker user's?
Edit: I sudo'ed into the Looker user and I see that there were some tmp_xxx branches that were remnants from the last time another team member tried to play around with spectacles. They couldn't be deleted, gives the same error described in the docs you linked - Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
The weird part is the Spectacles Looker User did not exist before I created it a few weeks back, why are branches created from the other team member showing up?
Wanted to add this in case spectacles team isn't aware, is this change accounted?
Hi @AngieWongHeb, sorry for the delay in response here.
You'll need to delete the Looker user, create a new one, and then use the credentials from the new user in Spectacles. As far as I know, there isn't a way to fix this issue other than contacting Looker support, and it will be much faster to just make a new Looker user.
If you and your teammate were both using the same API credentials to test Spectacles, that would explain why there would be branches from both of your tests.
Regarding the API Endpoint update, we are aware of it, and don't have any reason to believe we need to make changes to Spectacles as we don't use those endpoints.
We are using spectacles with github actions to automatically detect errors for Looker PRs.
This is the command we run
Run spectacles sql --do-not-track --config-file ./spectacles/config.yaml --project heb --branch cicd --explores -heb/google_ads_campaign_test --incremental --remote-reset -v
This is the log for the job run on Github's side.
Looker API is returning to me that the branch exists. But
git branch -r
.Please advise.