-
-
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
Log an error when the Build.pk differs from the pk in Build.error message #3940
Conversation
@agjohnson please, take a look at this and let me know if this could be a good way to get more debugging information from production environment. |
extra={ | ||
'build': self, | ||
'project': self.project, | ||
'version': self.version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What else could I add here relevant to this issue?
@humitos there are others examples of this? I didn't find anything with that one :/ |
Also, that id exists? I think the instance of the Edit: I was able to replicate this on my local instance. |
From pdb
Here you can see how the message is changed ( I going to keep investigating. |
OK, I got it. The other build id comes from here Before that the build is shown as failed and with the correct id, then pdb session (before
|
With the above information, I think that piece of code needs to check for the type of exception before running the update. But, still is curious why the ids are different 🤔 |
@stsewd thanks for taking a look at this. I'm really confused at the moment :( I wasn't able to reproduce this in my local instance and I don't really understand the steps you followed to reproduce this in yours. Can you enumerate those steps and how you did the project fail and where the exception has to be raised? |
@humitos, sorry, I forgot to write the steps here. Well, because I'm lazy I just turn off my docker daemon and trigger two builds consecutively. Anyway, the exception would happen here |
I'm going to close this. We discovered the underlying issue and don't need this anymore. PR is open at #3946 |
This is my last card played trying to get more debug information to understand what is happening with the Build.pk and the Build.error.
Example: https://readthedocs.org/projects/libmodule/builds/7015103/