This is an automated email from the ASF dual-hosted git repository. juergbi pushed a commit to branch juerg/buildbarn in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e9ce5bd6a4c6247b5b6c4434aa60969c87b4fb33 Author: Jürg Billeter <[email protected]> AuthorDate: Fri Nov 22 15:39:14 2024 +0100 .github/compose/ci.buildbarn.yml: Update Buildbarn docker images The old docker images are no longer available. --- .github/compose/buildbarn-config/asset.jsonnet | 53 ++++++++++++++---------- .github/compose/buildbarn-config/storage.jsonnet | 52 ++++++++++++++++------- .github/compose/ci.buildbarn.yml | 4 +- 3 files changed, 69 insertions(+), 40 deletions(-) diff --git a/.github/compose/buildbarn-config/asset.jsonnet b/.github/compose/buildbarn-config/asset.jsonnet index aad06a22e..eb779cd1f 100644 --- a/.github/compose/buildbarn-config/asset.jsonnet +++ b/.github/compose/buildbarn-config/asset.jsonnet @@ -1,32 +1,41 @@ { - fetcher: { - caching: { - fetcher: { - // We should never be fetching anything which is not already returned by the caching fetcher. - 'error': { - code: 5, - message: "Asset Not Found", - } - } - } - }, - - assetStore: { - circular: { - directory: '/storage', - offsetFileSizeBytes: 1024 * 1024, - offsetCacheSize: 1000, - dataFileSizeBytes: 100 * 1024 * 1024, - dataAllocationChunkSizeBytes: 1048576, - instances: [''], + assetCache: { + blobAccess: { + 'local': { + keyLocationMapOnBlockDevice: { + file: { + path: '/storage/key_location_map', + sizeBytes: 1024 * 1024, + }, + }, + keyLocationMapMaximumGetAttempts: 8, + keyLocationMapMaximumPutAttempts: 32, + oldBlocks: 8, + currentBlocks: 24, + newBlocks: 1, + blocksOnBlockDevice: { + source: { + file: { + path: '/storage/blocks', + sizeBytes: 100 * 1024 * 1024, + }, + }, + spareBlocks: 3, + }, + persistent: { + stateDirectoryPath: '/storage/persistent_state', + minimumEpochInterval: '300s', + }, + }, }, }, - httpListenAddress: ':1111', grpcServers: [{ - listenAddresses: [':7981'], + listenAddresses: [':8981'], authenticationPolicy: { allow: {} }, }], allowUpdatesForInstances: [''], maximumMessageSizeBytes: 16 * 1024 * 1024, + fetchAuthorizer: { allow: {} }, + pushAuthorizer: { allow: {} }, } diff --git a/.github/compose/buildbarn-config/storage.jsonnet b/.github/compose/buildbarn-config/storage.jsonnet index 11fbdbee7..6b3864c18 100644 --- a/.github/compose/buildbarn-config/storage.jsonnet +++ b/.github/compose/buildbarn-config/storage.jsonnet @@ -1,26 +1,46 @@ { - blobstore: { - contentAddressableStorage: { - circular: { - directory: '/cas', - offsetFileSizeBytes: 16 * 1024 * 1024, - offsetCacheSize: 10000, - dataFileSizeBytes: 10 * 1024 * 1024 * 1024, - dataAllocationChunkSizeBytes: 16 * 1024 * 1024, + contentAddressableStorage: { + backend: { + 'local': { + keyLocationMapOnBlockDevice: { + file: { + path: '/cas/key_location_map', + sizeBytes: 16 * 1024 * 1024, + }, + }, + keyLocationMapMaximumGetAttempts: 16, + keyLocationMapMaximumPutAttempts: 64, + oldBlocks: 8, + currentBlocks: 24, + newBlocks: 3, + blocksOnBlockDevice: { + source: { + file: { + path: '/cas/blocks', + sizeBytes: 10 * 1024 * 1024 * 1024, + }, + }, + spareBlocks: 3, + }, + persistent: { + stateDirectoryPath: '/cas/persistent_state', + minimumEpochInterval: '300s', + }, }, }, - actionCache: { - 'error': { - code: 12, # UNIMPLEMENTED - message: "AC requests are not supported for this endpoint.", - } - }, + getAuthorizer: { allow: {} }, + putAuthorizer: { allow: {} }, + findMissingAuthorizer: { allow: {} }, }, - httpListenAddress: ':6981', + global: { diagnosticsHttpServer: { + httpServers: [{ + listenAddresses: [':6981'], + authenticationPolicy: { allow: {} }, + }], + } }, grpcServers: [{ listenAddresses: [':7982'], authenticationPolicy: { allow: {} }, }], - allowAcUpdatesForInstanceNamePrefixes: [''], maximumMessageSizeBytes: 16 * 1024 * 1024, } diff --git a/.github/compose/ci.buildbarn.yml b/.github/compose/ci.buildbarn.yml index c1e90e9a7..63c0a2f93 100644 --- a/.github/compose/ci.buildbarn.yml +++ b/.github/compose/ci.buildbarn.yml @@ -23,7 +23,7 @@ version: '3.4' services: bb-asset: - image: buildbarn/bb-remote-asset:20200903T103837Z-90136c4 + image: ghcr.io/buildbarn/bb-remote-asset:20241031T230517Z-4926e8e command: /config/asset.jsonnet restart: unless-stopped ports: @@ -37,7 +37,7 @@ services: target: /config bb-storage: - image: buildbarn/bb-storage:20200816T115912Z-d83e1f0 + image: ghcr.io/buildbarn/bb-storage:20241121T154059Z-f5a181e command: /config/storage.jsonnet restart: unless-stopped ports:
