Commit 36603fa8 authored by Martin Blanchard's avatar Martin Blanchard Committed by Jürg Billeter

.gitlab-ci.yml: Add a CI test job for remote execution

#629
parent 686a83e3
......@@ -138,6 +138,29 @@ tests-fedora-update-deps:
- su buildstream -c "${TEST_COMMAND}"
tests-remote-execution:
allow_failure: true
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:29-master-47052095
<<: *tests
before_script:
- dnf install -y docker docker-compose
- docker-compose --file ${COMPOSE_MANIFEST} up --detach
after_script:
- docker-compose --file ${COMPOSE_MANIFEST} stop
- docker-compose --file ${COMPOSE_MANIFEST} logs
- docker-compose --file ${COMPOSE_MANIFEST} down
services:
- docker:stable-dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
COMPOSE_MANIFEST: .gitlab-ci/buildgrid-compose.yml
ARTIFACT_CACHE_SERVICE: http://docker:50052
REMOTE_EXECUTION_SERVICE: http://docker:50051
SOURCE_CACHE_SERVICE: http://docker:50052
PYTEST_ARGS: "--color=yes --remote-execution"
# Lint separately from testing
lint:
stage: test
......@@ -308,6 +331,7 @@ coverage:
- tests-fedora-29
- tests-fedora-missing-deps
- tests-fedora-update-deps
- tests-remote-execution
- tests-ubuntu-18.04
- tests-unix
except:
......
##
# BuildGrid Compose manifest for BuildStream.
#
# Spins-up a unnamed and unauthenticated grid:
# - Controller + CAS + AC at http://localhost:50051
# - Ref. + CAS at: http://localhost:50052
#
# BuildStream configuration snippet:
#
# artifacts:
# url: http://localhost:50052
# push: true
# remote-execution:
# execution-service:
# url: http://localhost:50051
# action-cache-service:
# url: http://localhost:50051
# storage-service:
# url: http://localhost:50051
#
# Basic usage:
# - docker-compose -f buildgrid-compose.yml up
# - docker-compose -f buildgrid-compose.yml down
#
version: "3.2"
services:
controller:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
command: [
"bgd", "server", "start", "-vvv",
"/etc/buildgrid/default.conf"]
ports:
- 50051:50051
networks:
- grid
bot:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
command: [
"bgd", "bot", "--parent=", "-vvv",
"--remote=http://controller:50051",
"--remote-cas=http://controller:50051",
"buildbox",
"--local-cas", "/var/lib/buildgrid/cache",
"--fuse-dir", "/mnt"]
privileged: true
volumes:
- type: volume
source: cache
target: /var/lib/buildgrid/cache
depends_on:
- controller
networks:
- grid
storage:
image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly
command: [
"bgd", "server", "start", "-vvv",
"/etc/buildgrid/artifacts.conf"]
ports:
- 50052:50052
networks:
- grid
networks:
grid:
driver: bridge
volumes:
cache:
......@@ -28,6 +28,7 @@ deps =
# Only require coverage and pytest-cov when using it
!nocover: -rrequirements/cov-requirements.txt
passenv =
ARTIFACT_CACHE_SERVICE
BST_FORCE_BACKEND
GI_TYPELIB_PATH
INTEGRATION_CACHE
......@@ -37,6 +38,8 @@ passenv =
HTTPS_PROXY
no_proxy
NO_PROXY
REMOTE_EXECUTION_SERVICE
SOURCE_CACHE_SERVICE
SSL_CERT_FILE
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment