-
Notifications
You must be signed in to change notification settings - Fork 93
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
Clean source dir on request in PollyBuilder. #189
Conversation
"On request" is |
The reason this came up was that there was a bad commit in LLVM that stuck some files into the source tree, so then the buildbot was continuously failing. We ended up logging into the buildbot to fix it by hand. Is there some way to force a clean through the buildbot interface? Not sure how you do that, or what kind of permissions are required. Can we make the buildbot run "git clean" to fix this sort of issue automatically, without re-downloading the whole tree? |
When you login and your GitHub email matches the email in the zorg config, a couple of options become available: The Both flags together don't always work as expected for all factories but I've been running against walls with that one already. Local git repositories can fail a lot of different ways (e.g. disk corruption) and there is no one-solution-fits-them-all to fix it. I think occasionally re-cloning a broken repository manually is fine. Would be nice if buildbot would itself detect a broken repository but that would be an upstream feature. |
I suspect a "git clean" handles the most common cases, so maybe worth doing even if it doesn't fix everything? Otherwise, I guess if this is working as intended, we can leave it, sure. |
Buildbot does |
|
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.
This patch would change the expected behavior (i.e. how it works for other builders). clean
argument when True means "clean build directory", not the source code as well.
Pulling the source code from scratch for every build is not a good idea. Unless I'm missing something, forcing a clean checkout from WebUI on a special occasion covers the described case.
@efriedma-quic Buildbot seems to support what we want according to the documentation: https://docs.buildbot.net/current/manual/configuration/steps/source_git.html#step-Git
|
No description provided.