1
0
Fork 0
llvm-premerge-checks/containers
Mikhail Goncharov a152d97e3c Simple service to integrate harbormaster w/ buildkite
Harbormaster can send a request in url encoded form while buildkite
expects a POST request with json. Instead of modifying harbormastar or
buildkite this adds a simple proxy that accepts url encoded form and
creates a request that buildkite expects. To avoid potential abuse,
nginx asks for simple http auth credentials stored in harbormaster.

All build parameters passed by proxy are put into build metadata and as
ph_* env variables available during the build.

Secrets involved:
- harbormastert knows http-auth to proxy (stored in privatly and in k8
  buildkite/http-auth as auth file);
- proxy knows buildkite api token (mine atm);
- build agent knows conduit API token (mine atm),
  and SSH key of llvm-premerge-tests-bot (in k8 buildkite/github-ssh).

Sample build: https://reviews.llvm.org/harbormaster/build/64828/8/
https://buildkite.com/llvm-project/premerge/builds/48
2020-05-13 13:13:33 +02:00
..
agent-debian-testing-buildkite Add new deployment for agent that will do premerge checks 2020-04-22 12:11:23 +02:00
agent-debian-testing-ssd added gdb 2020-03-27 13:51:54 +01:00
agent-windows-buildkite added versioning to windows docker containers 2020-02-20 15:18:26 +00:00
agent-windows-jenkins changed the way sccache is started 2020-04-24 09:54:36 +00:00
agent-windows-vs2017 Upgrade Windows agents to Visual Studio 2019 and sccache (#162) 2020-04-21 11:46:41 +02:00
agent-windows-vs2019 manual commands for vs config 2020-05-04 14:23:02 +00:00
base-debian Forked docker image for premerge 2020-04-24 12:29:44 +02:00
buildbot-mlir-nvidia addd buildbot installation 2020-03-19 14:53:19 +01:00
buildkite-premerge-debian Simple service to integrate harbormaster w/ buildkite 2020-05-13 13:13:33 +02:00
jenkins-master fixed jeninkins version 2020-04-20 21:52:07 +02:00
nginx-results added license 2019-10-07 15:32:12 +02:00
build_deploy.ps1 Upgrade Windows agents to Visual Studio 2019 and sccache (#162) 2020-04-21 11:46:41 +02:00
build_deploy.sh Forked docker image for premerge 2020-04-24 12:29:44 +02:00
build_run.ps1 fixed version file path 2020-04-24 09:54:36 +00:00
build_run.sh added persistent workspace for testing containers 2020-04-15 18:00:53 +02:00
README.md Create docker container for Windows build (#52) 2019-11-26 17:10:30 +01:00

Overview

This folder contains files related to the machines running the build/test/checks for the merge guards.

Scripts

The scripts are written in bash (for Linux) and powershell (for Windows).

build_run.(sh|ps1)

Build the docker image and run it locally. This is useful for testing it.

build_deploy.(sh|ps1)

Build the docker and deploy it to the GCP registry. This is useful for deploying it in the Kubernetes cluster.