Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Docs publish fails on circleci #117

Open
k88hudson opened this issue Aug 27, 2020 · 3 comments
Open

Docs publish fails on circleci #117

k88hudson opened this issue Aug 27, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@k88hudson
Copy link
Contributor

> [email protected] publish /home/circleci/project/docs
> gh-pages --dist out --dotfiles --message '[skip ci] Docs updates'

To github.com:mozilla/nimbus-shared.git
 ! [remote rejected] gh-pages -> gh-pages (cannot lock ref 'refs/heads/gh-pages': is at 9611f003a4ed9e7b7d29682c87d4760d7d0f7da9 but expected f0830844b508d47a1a904a7315b9dde400432572)
error: failed to push some refs to '[email protected]:mozilla/nimbus-shared.git'

See https://app.circleci.com/pipelines/github/mozilla/nimbus-shared/328/workflows/0d5d687e-2498-470f-ab7a-d0f60e1a3940/jobs/377/steps

@k88hudson k88hudson added the bug Something isn't working label Aug 27, 2020
@k88hudson
Copy link
Contributor Author

@mythmon any idea what might be going wrong here?

@mythmon mythmon changed the title npm publish fails on circleci Docs publish fails on circleci Aug 27, 2020
@mythmon
Copy link
Contributor

mythmon commented Aug 27, 2020

Hm. I'm not sure what's up here. I don't really know what could cause lock contention like that. Did you see this more than once? If it just happened once I'd be ok writing it off as "sometimes distributed computing is hard", but if it's persistent...

@mythmon
Copy link
Contributor

mythmon commented Aug 27, 2020

This seems to have worked just fine on the last CI run on main:

#!/bin/bash -eo pipefail
# Set up credentials
git config user.email "[email protected]"
git config user.name "ci-build"
cd docs
npm run publish


> [email protected] publish /home/circleci/project/docs
> gh-pages --dist out --dotfiles --message '[skip ci] Docs updates'

Published

CircleCI received exit code 0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants