-
Notifications
You must be signed in to change notification settings - Fork 40
Keep getting tmp branch already exists error #778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 - |
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.
The text was updated successfully, but these errors were encountered: