Pushing gh-pages fails every other attempt

patcherton.fixesthings's Avatar


24 Apr, 2023 06:10 PM

At some point between 2023-04-05 and 2023-04-19, my automatic builds started failing on the first try because of errors when pushing to gh-pages. Running the build again always succeeds, but why is it failing in the first place? It only started happening within the past few weeks.

The given error message is

git : remote: Resolving deltas:   0% (0/3)
At line:14 char:1 + git push -q origin gh-pages + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (remote: Resolvi...% (0/3) :String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError

remote: Resolving deltas: 33% (1/3)
remote: Resolving deltas: 66% (2/3)
remote: Resolving deltas: 100% (3/3)
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
Command executed with exception: remote: Resolving deltas: 100% (3/3), completed with 3 local objects.


Failure: https://ci.appveyor.com/project/fiendish/aardwolfclientpackage/buil...
Success: https://ci.appveyor.com/project/fiendish/aardwolfclientpackage/buil...

  1. Support Staff 1 Posted by Feodor Fitsner on 24 Apr, 2023 06:26 PM

    Feodor Fitsner's Avatar

    It's because the last git push command writes some output to StdErr which is treated as an exception by built-in PowerShell host in build agent.

    Try moving that command out of that PS command into a separate, like:

    - ps: >-
        $env:PACKAGE_VERSION=(Get-Content MUSHclient\AardwolfPackageChanges.txt)[2].split()[0]
        git add index.html 2>&1 | write-host
        git add unzip_upgrading.html 2>&1 | write-host
        git commit -q -m "automatic rev update $env:PACKAGE_VERSION"
    - git push -q origin gh-pages
  2. 2 Posted by patcherton.fixe... on 28 Apr, 2023 05:23 PM

    patcherton.fixesthings's Avatar

    Any idea why it only started happening recently? I've been using the same config for years.

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Apr, 2023 05:25 PM

    Feodor Fitsner's Avatar

    My guess would be Git upgraded in the image multiple times. Could be changes in output of recent Git versions.

  4. Feodor Fitsner closed this discussion on 28 Jun, 2023 09:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac