-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
After build is triggered, state is shown as failed #3644
Comments
@davidfischer noted he also saw this in production, which means it might not even be related to the VCS changes |
Mmm... I'm not able to reproduce this in my local instance with |
Same behaviour in .org production |
@humitos I also experiment this behavior on my local instance:
I haven't see this on production, yet. |
@stsewd i get the same results as you once i click on the build, but the build list page is where i see a failure. Another clue: I can reproduce on first build of the project, not afterwards though. |
@humitos I think the problem is with a project without tags. If I ran this command on a project without tags, the exit code is Then on another step the exit code is forced to be 0 (here is when the build goes back to the normality) |
Another clue: if I build the same project, the second build doesn't initially show the build as failing in the build list, but if I quickly select the build, it's in a failed state by the end of the VCS commands: This also causes the page to stop loading the build commands from the API, as we halt this process with JS when a build has failed. Reloading the page, I see I failed on the next command. |
This is causing the build to be marked as FAILED when the repository has no branches. Closes #3644
I checked this again and I found something new:
Also, I have this crazy log in my
|
I have more clues... First, the issue happen when RTD doesn't find a So, at that time, I think the Build is marked as FAILED but since it's an intermediate step that "it's OK to failed" ( I'm not 100% sure yet, but I wanted to write this down before I forget :) |
I just noticed that even after closing Celery, there were some celery process around and that probably made things goes that crazy. |
OK, I have two suppositions here:
I created a PR at #3745 that should fix number 2). I've been trying to replicate the error on that branch and I wasn't able to. I'd like you to take a look and try to test it. I'm not sure if 1) worth to test it, since it's an edge case and we shouldn't be running multiple celery processes. I will give it a try, though. |
To reproduce, fire off a new build, make sure to catch the build list page while VCS operations are happening. Build will be in a failure state. This is a regression where we are setting the state of the build to failed without checking that the build has completed. This might be a byproduct of using multiple environments during the build process.
The text was updated successfully, but these errors were encountered: