This is an automated email from the ASF dual-hosted git repository. juergbi pushed a commit to branch jbilleter/buildgrid in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 5f2c3c89301737da9d33523967b2bd79c9b23447 Author: Jürg Billeter <[email protected]> AuthorDate: Wed Nov 5 11:38:35 2025 +0100 .github/compose/ci.buildgrid.yml: Switch to PostgreSQL SQLite support is being deprecated in BuildGrid. --- .github/compose/buildgrid-config/execution.yml | 67 ++++++++++++++++++++++++++ .github/compose/ci.buildgrid.yml | 27 ++++++++++- 2 files changed, 93 insertions(+), 1 deletion(-) diff --git a/.github/compose/buildgrid-config/execution.yml b/.github/compose/buildgrid-config/execution.yml new file mode 100644 index 000000000..114edc80b --- /dev/null +++ b/.github/compose/buildgrid-config/execution.yml @@ -0,0 +1,67 @@ +server: + - !channel + address: "[::]:50051" + insecure-mode: true + +grpc-server-options: + grpc.max_connection_age_ms: 300000 + +description: > + - Unauthenticated plain HTTP at :50051 + - Single instance: [unnamed] + - In-memory data, max. 2GB + - Hosted services: + - ActionCache + - Execute + - ContentAddressableStorage + - ByteStream + +authorization: + method: none + +monitoring: + enabled: false + +connections: + - !sql-connection &sql + connection-string: postgresql://bgd:insecure@database/bgd + pool-size: 5 + pool-timeout: 30 + max-overflow: 10 + +storages: + - !lru-storage &cas-storage + size: 2048M + +caches: + - !lru-action-cache &build-cache + storage: *cas-storage + max-cached-refs: 256 + cache-failed-actions: true + allow-updates: true + +schedulers: + - !sql-scheduler &state-database + sql: *sql + storage: *cas-storage + action-cache: *build-cache + max-execution-timeout: 7200 + poll-interval: 0.5 + +instances: + - name: '' + description: | + The unique '' instance. + + services: + - !action-cache + cache: *build-cache + + - !execution + scheduler: *state-database + + - !cas + storage: *cas-storage + + - !bytestream + storage: *cas-storage diff --git a/.github/compose/ci.buildgrid.yml b/.github/compose/ci.buildgrid.yml index 6ef8d422f..45845e95d 100644 --- a/.github/compose/ci.buildgrid.yml +++ b/.github/compose/ci.buildgrid.yml @@ -21,15 +21,39 @@ version: "3.2" services: + database: + image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid-postgres:nightly + environment: + POSTGRES_USER: bgd + POSTGRES_PASSWORD: insecure + POSTGRES_DB: bgd + volumes: + - type: volume + source: db + target: /var/lib/postgresql + networks: + - grid + ports: + - "5432:5432" + healthcheck: + test: ["CMD", "pg_isready", "-U", "bgd"] + interval: 1s + timeout: 5s + retries: 10 + controller: image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildgrid:nightly command: [ "bgd", "server", "start", "-v", - "/etc/buildgrid/default.yml"] + "/etc/buildgrid/execution.yml"] ports: - 50051:50051 networks: - grid + volumes: + - type: bind + source: ./buildgrid-config/ + target: /etc/buildgrid bot: image: registry.gitlab.com/buildgrid/buildgrid.hub.docker.com/buildbox:nightly @@ -51,3 +75,4 @@ networks: volumes: cache: + db:
