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

Use custom checkouts #358

Open
wilzbach opened this issue Dec 1, 2018 · 1 comment
Open

Use custom checkouts #358

wilzbach opened this issue Dec 1, 2018 · 1 comment

Comments

@wilzbach
Copy link
Member

wilzbach commented Dec 1, 2018

The whole folder setup is quite messy atm. and we should consider to rewrite it, using a custom noop checkout hook and doing the checkouts manually into an empty working directory.
Checkout hooks can be installed on the agents under /etc/buildkite-agent/hooks/checkout.
This would also avoid checkouts for every project being tested.

From #335:

@MartinNowak
Copy link
Member

Atm. tests are run from a git checkout to e.g. /var/lib/buildkite-agent/builds/ci-agent-4f7ec9a0-c400-4dcc-ad73-f884d2f0f568-2/dlang/dmd/.
I'd suggest to rm -rf ../../build && mkdir ../../build && cd ../../build and run builds with custom checkouts from there e.g. /var/lib/buildkite-agent/builds/ci-agent-4f7ec9a0-c400-4dcc-ad73-f884d2f0f568-2/builds.
This would allow us to move to noop checkout hooks afterwards without interruption of service.
BUILDKITE_BUILD_CHECKOUT_PATH holds the full checkout directory, we want to get to the agent specific dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants