Build failure when running "appveyor UpdateBuild" command

desimaniac's Avatar

desimaniac

20 Jan, 2019 11:53 PM

Hi. I need help figuring out why https://ci.appveyor.com/project/desimaniac/cloudbox/builds/21709603 (scroll to the end) works but https://ci.appveyor.com/project/desimaniac/cloudbox/builds/21760101 (scroll to the end) doesn't.

Error I get with these issues is: Expecting element 'root' from namespace ''.. Encountered 'None' with name '', namespace ''..

In this example, it occurred when running this command: appveyor UpdateBuild -Version 1.3.2-40

Using this appveyor.yml file: https://github.com/Cloudbox/Cloudbox/blob/develop/appveyor.yml

  1. 1 Posted by Eric J. Smith on 08 Mar, 2019 03:27 PM

    Eric J. Smith's Avatar
  2. 2 Posted by desimaniac on 08 Mar, 2019 06:15 PM

    desimaniac's Avatar

    Yeah. I added a fallback UpdateBuild command if the custom one failed.

    https://github.com/Cloudbox/Cloudbox/blob/d75767c81ec6ec13aa517f1eddd4d547c259ee83/appveyor.yml#L56

  3. 3 Posted by Eric J. Smith on 08 Mar, 2019 06:21 PM

    Eric J. Smith's Avatar

    Hmm... that seems pretty crappy that you would have to do that. Why hasn't anyone from AppVeyor even responded to this message from over a month ago?

  4. Support Staff 4 Posted by Ilya Finkelshte... on 08 Mar, 2019 06:26 PM

    Ilya Finkelshteyn's Avatar

    Sorry guys, missed it. Looking now.

  5. Support Staff 5 Posted by Ilya Finkelshte... on 08 Mar, 2019 06:46 PM

    Ilya Finkelshteyn's Avatar

    Am I understanding correctly that error is intermittent and even the same commit build can run with and without this error?

  6. 6 Posted by Eric J. Smith on 08 Mar, 2019 07:14 PM

    Eric J. Smith's Avatar

    Correct. It is intermittent.

  7. Support Staff 7 Posted by Ilya Finkelshte... on 08 Mar, 2019 08:31 PM

    Ilya Finkelshteyn's Avatar

    I have to admit that error is not super descriptive, but it seems that root cause is conflict -- attempt to set already existing version. Here it tried to set 5.0.3403-pre, but is was already set here.

    Am I correct or missing something?

  8. 8 Posted by Eric J. Smith on 08 Mar, 2019 08:34 PM

    Eric J. Smith's Avatar

    It is not being called twice. Here is the yml:
    https://github.com/justmine66/Exceptionless/blob/master/appveyor.yml#L30

    Even if it was being called multiple times, that doesn't seem like that should be an issue either.

  9. Support Staff 9 Posted by Ilya Finkelshte... on 08 Mar, 2019 10:32 PM

    Ilya Finkelshteyn's Avatar

    I am not saying it was being called twice. I am saying that the same version was already set in previously completed build. Maybe I have to send the same links different way:

    I may still miss something, correct me if I wrong.

  10. 10 Posted by Eric J. smith on 08 Mar, 2019 10:46 PM

    Eric J. smith's Avatar

    Ahh I see what you are saying now. AppVeyor says no (in a horribly unintuitive way) when I try to set the build number to one that has already been used which happens a lot on pull requests since I’ve got that set to not increment the build number.

  11. Support Staff 11 Posted by Ilya Finkelshte... on 09 Mar, 2019 01:50 AM

    Ilya Finkelshteyn's Avatar

    Right, this is what happened. You can add some random string to the version after checking APPVEYOR_PULL_REQUEST_NUMBER environment variable.

    Regarding horribly unintuitive way -- we are working on unifying Windows and Linux build agents codebase so it will go away as part of this process (Windows builds does not have this problem).

  12. 12 Posted by desimaniac on 09 Mar, 2019 05:48 PM

    desimaniac's Avatar

    This is what I noticed as well. Which is why I had a fallback command.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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

 

22 Aug, 2019 08:13 PM
21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 05:56 AM