Skip to content
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

3.x Agent Bootstrap fails silently when BUILDKITE_CLEAN_CHECKOUT is truthy #576

Closed
plasticine opened this issue Nov 8, 2017 · 6 comments
Labels

Comments

@plasticine
Copy link
Contributor

Running buildkite-agent bootstrap will fail silently when the BUILDKITE_CLEAN_CHECKOUT env var is set.

I’ve replicated against beta.34, purely via curl-ing a build ENV from the api and invoking buildkite-agent bootstrap.

Context: https://buildkitechat.slack.com/archives/C02T53V9H/p1510043322000137

@lox
Copy link
Contributor

lox commented Nov 8, 2017

Hrm, perplexing. We have a specific test for that:

func TestForcingACleanCheckout(t *testing.T) {

I wonder what is going on.

@lox lox added the bug label Nov 8, 2017
@lox lox added this to the v3.0.0 milestone Nov 8, 2017
@lox
Copy link
Contributor

lox commented Nov 9, 2017

I'm struggling to reproduce this one @plasticine, I'm running:

BUILDKITE_CLEAN_CHECKOUT=true buildkite-agent bootstrap --job "llamas" --repository "git@github.com:buildkite/agent.git" --debug --commit "HEAD" --branch "master" --agent "my-agent" --organization "buildkite" --pipeline "agent" --pipeline-provider git --build-path /usr/local/var/buildkite-agent/builds

Could you provide the output of that?

@plasticine
Copy link
Contributor Author

@lox OK, in repro-ing this I’ve found the actual cause. We actually have BUILDKITE_CLEAN_CHECKOUT=set for some reason. Everything works perfectly if BUILDKITE_CLEAN_CHECKOUT=true.

@lox
Copy link
Contributor

lox commented Nov 9, 2017

Awesome, that's a good outcome, you can correct that and I can fix the bug :)

@plasticine
Copy link
Contributor Author

@lox Yep — yay! 💯 Interestingly BUILDKITE_CLEAN_CHECKOUT=set ./bin/buildkite-agent bootstrap --build-path builds actually exits zero too FYI.

@lox
Copy link
Contributor

lox commented Nov 9, 2017

urfave/cli#610

@lox lox closed this as completed in b43be01 Nov 12, 2017
lox added a commit that referenced this issue Nov 12, 2017
Bump github.com/urfave/cli, closes #576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants