diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml deleted file mode 100644 index 5fe365e88..000000000 --- a/.buildkite/pipeline.yml +++ /dev/null @@ -1,13 +0,0 @@ -steps: - - command: 'bazel test -- //... \$(bazel query //... | grep -e "_container\$" -e "_container_push\$" -e "_layer" | while read target; do echo -\$target; done)' - label: 'FreeBSD' - agents: - - "os=freebsd" - - command: 'bazel test -- //... \$(bazel query //... | grep -e "_container\$" -e "_container_push\$" -e "_layer" | while read target; do echo -\$target; done)' - label: 'macOS' - agents: - - "os=darwin" - - command: 'bazel run @com_github_buildbarn_bb_deployments//ci:run-ci' - label: 'Linux' - agents: - - "os=linux" diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 000000000..8ea312c6c --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,32 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + gofmt: + runs-on: ubuntu-latest + container: docker://golang:1.13 + steps: + - uses: actions/checkout@v1 + - name: run gofmt + run: test -z "$(gofmt -d . | tee /dev/stderr)" + buildifier: + runs-on: ubuntu-latest + container: docker://golang:1.13 + steps: + - uses: actions/checkout@v1 + - name: install buildifier + run: go get github.com/bazelbuild/buildtools/buildifier + - name: run buildifier + run: buildifier -mode=check -r . + build_and_test: + runs-on: ubuntu-latest + container: docker://l.gcr.io/google/bazel:2.1.0 + steps: + - uses: actions/checkout@v1 + - name: build and test + run: bazel test //... diff --git a/BUILD.bazel b/BUILD.bazel index f06bc376e..d3a882a6d 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -6,6 +6,7 @@ load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") # gazelle:resolve proto go build/bazel/remote/execution/v2/remote_execution.proto @com_github_bazelbuild_remote_apis//build/bazel/remote/execution/v2:go_default_library gazelle( name = "gazelle", + foo='bar', ) buildifier( diff --git a/README.md b/README.md index 0e0f9895b..f98ed8992 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# The Buildbarn storage daemon [![Build status](https://badge.buildkite.com/212ccc2e6aab9f4df6490b30390492365c5641e65a768e5a51.svg)](https://buildkite.com/buildbarn/bb-storage) [![GoDoc](https://godoc.org/github.com/buildbarn/bb-storage?status.svg)](https://godoc.org/github.com/buildbarn/bb-storage) +# The Buildbarn storage daemon [![Build status](https://github.com/buildbarn/bb-storage/workflows/CI/badge.svg)](https://github.com/buildbarn/bb-storage/actions) [![GoDoc](https://godoc.org/github.com/buildbarn/bb-storage?status.svg)](https://godoc.org/github.com/buildbarn/bb-storage) The Buildbarn project provides an implementation of the [Remote Execution protocol](https://github.com/bazelbuild/remote-apis). diff --git a/pkg/blobstore/cloud_blob_access.go b/pkg/blobstore/cloud_blob_access.go index ebe0fd9c6..b508e587f 100644 --- a/pkg/blobstore/cloud_blob_access.go +++ b/pkg/blobstore/cloud_blob_access.go @@ -15,7 +15,7 @@ import ( ) type cloudBlobAccess struct { - bucket *blob.Bucket + bucket *blob.Bucket keyPrefix string storageType StorageType } diff --git a/pkg/proto/configuration/blobstore/blobstore.proto b/pkg/proto/configuration/blobstore/blobstore.proto index eff4072ec..c0394c80b 100644 --- a/pkg/proto/configuration/blobstore/blobstore.proto +++ b/pkg/proto/configuration/blobstore/blobstore.proto @@ -47,6 +47,9 @@ message BlobAccessConfiguration { SizeDistinguishingBlobAccessConfiguration size_distinguishing = 5; // Read objects from/write objects to a circular file on disk. + // TODO: CircularBlobAccess should be considered deprecated as it is + // prone to data corruption. LocalBlobAccess should be used instead + // if at all possible. CircularBlobAccessConfiguration circular = 6; // Read objects from/write objects to a GRPC service that