Skip to content

Commit

Permalink
Rename stable tag to stablecomponents. (dapr#6469)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
  • Loading branch information
artursouza authored Jun 8, 2023
1 parent 0c8292c commit 518bb72
Show file tree
Hide file tree
Showing 126 changed files with 153 additions and 153 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.buildTags": "e2e,perf,conftests,unit,integration_test,certtests,all_components",
"go.buildTags": "e2e,perf,conftests,unit,integration_test,certtests,allcomponents",
"git.alwaysSignOff": true,
"terminal.integrated.env.linux": {
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "ignore"
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/dapr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
version: ${{ env.GOLANGCILINT_VER }}
skip-cache: true
args: --build-tags all_components
args: --build-tags allcomponents
- name: Run go mod tidy check diff
run: make modtidy check-diff
- name: Run gen-proto check diff
Expand Down Expand Up @@ -192,54 +192,54 @@ jobs:
target_os: linux
target_arch: amd64
job_name: "Linux/amd64"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: ubuntu-latest
target_os: linux
target_arch: amd64
job_name: "Linux/amd64"
sidecar_flavor: "stable"
sidecar_flavor: "stablecomponents"
- os: ubuntu-latest
target_os: linux
target_arch: arm64
job_name: "Linux/arm64"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: ubuntu-latest
target_os: linux
target_arch: arm64
job_name: "Linux/arm64"
sidecar_flavor: "stable"
sidecar_flavor: "stablecomponents"
- os: ubuntu-latest
target_os: linux
target_arch: arm
job_name: "Linux/arm"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: ubuntu-latest
target_os: linux
target_arch: arm
job_name: "Linux/arm"
sidecar_flavor: "stable"
sidecar_flavor: "stablecomponents"
- os: windows-2019
target_os: windows
target_arch: amd64
windows_version: "1809"
job_name: "Windows 1809"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: windows-2022
target_os: windows
target_arch: amd64
windows_version: ltsc2022
job_name: "Windows LTSC 2022"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: macOS-latest
target_os: darwin
target_arch: amd64
job_name: "macOS/Intel"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
- os: macOS-latest
target_os: darwin
target_arch: arm64
job_name: "macOS/Apple Silicon"
sidecar_flavor: "all"
sidecar_flavor: "allcomponents"
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -262,7 +262,7 @@ jobs:
- name: Parse release version and set REL_VERSION and LATEST_RELEASE
run: python ./.github/scripts/get_release_version.py ${{ github.event_name }}
- name: Updates version for sidecar flavor
if: matrix.sidecar_flavor != 'all'
if: matrix.sidecar_flavor != 'allcomponents'
run: |
echo "REL_VERSION=${REL_VERSION}-${{matrix.sidecar_flavor}}" >>${GITHUB_ENV}
# Only sidecar is built
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
GOOS: ${{ matrix.target_os }}
GOARCH: ${{ matrix.target_arch }}
ARCHIVE_OUT_DIR: ${{ env.ARCHIVE_OUTDIR }}
if: matrix.sidecar_flavor == 'all'
if: matrix.sidecar_flavor == 'allcomponents'
run: |
mkdir -p "${ARCHIVE_OUT_DIR}"
make release
Expand All @@ -321,7 +321,7 @@ jobs:
GOARCH: ${{ matrix.target_arch }}
ARCHIVE_OUT_DIR: ${{ env.ARCHIVE_OUTDIR }}
DAPR_SIDECAR_FLAVOR: "${{ matrix.sidecar_flavor }}"
if: matrix.sidecar_flavor != 'all'
if: matrix.sidecar_flavor != 'allcomponents'
run: |
mkdir -p "${ARCHIVE_OUT_DIR}"
make release-flavor
Expand All @@ -332,7 +332,7 @@ jobs:
name: dapr_${{ matrix.target_os }}_${{ matrix.target_arch }}_${{ matrix.sidecar_flavor }}
path: ${{ env.ARCHIVE_OUTDIR }}
- name: upload artifacts - grafana dashboards
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' && matrix.sidecar_flavor == 'all'
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' && matrix.sidecar_flavor == 'allcomponents'
uses: actions/upload-artifact@master
with:
name: dapr_grafana_dashboards
Expand Down Expand Up @@ -495,18 +495,18 @@ jobs:
strategy:
fail-fast: false
matrix:
sidecar_flavor: ["all", "stable"]
sidecar_flavor: ["allcomponents", "stablecomponents"]
target_os: ["linux", "windows"]
exclude:
- sidecar_flavor: "stable"
- sidecar_flavor: "stablecomponents"
target_os: "windows"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Parse release version and set REL_VERSION and LATEST_RELEASE
run: python ./.github/scripts/get_release_version.py ${{ github.event_name }}
- name: Updates version for sidecar flavor
if: matrix.sidecar_flavor != 'all'
if: matrix.sidecar_flavor != 'allcomponents'
run: |
echo "REL_VERSION=${REL_VERSION}-${{matrix.sidecar_flavor}}" >>${GITHUB_ENV}
echo "LATEST_TAG=latest-${{matrix.sidecar_flavor}}" >>${GITHUB_ENV}
Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
make docker-publish
shell: bash
- name: Build and push Docker multiarch Windows manifest to Docker Hub
if: matrix.target_os != 'darwin' && env.DOCKER_REGISTRY_ID != '' && matrix.sidecar_flavor == 'all'
if: matrix.target_os != 'darwin' && env.DOCKER_REGISTRY_ID != '' && matrix.sidecar_flavor == 'allcomponents'
env:
DOCKER_REGISTRY_ID: ${{ secrets.DOCKER_REGISTRY_ID }}
DAPR_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
Expand Down Expand Up @@ -582,7 +582,7 @@ jobs:
LATEST_TAG=${{ env.LATEST_TAG }}-mariner \
make docker-publish
- name: Build and push Docker multiarch Windows manifest to GHCR
if: matrix.target_os != 'darwin' && matrix.sidecar_flavor == 'all'
if: matrix.target_os != 'darwin' && matrix.sidecar_flavor == 'allcomponents'
env:
DAPR_REGISTRY: ghcr.io/${{ env.REPO_OWNER }}
run: |
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ HA_MODE ?= false
# Force in-memory log for placement
FORCE_INMEM ?= true
# Go's build tags:
# all_components - includes all components in Dapr sidecar
# stable_components - includes all stable components in Dapr sidecar
DAPR_SIDECAR_FLAVOR ?= all
DAPR_GO_BUILD_TAGS = $(DAPR_SIDECAR_FLAVOR)_components
# allcomponents - (default) includes all components in Dapr sidecar
# stablecomponents - includes all stable components in Dapr sidecar
DAPR_SIDECAR_FLAVOR ?= allcomponents
DAPR_GO_BUILD_TAGS = $(DAPR_SIDECAR_FLAVOR)

# Add latest tag if LATEST_RELEASE is true
LATEST_RELEASE ?=
Expand Down Expand Up @@ -300,9 +300,9 @@ test: test-deps
--format standard-quiet \
-- \
./pkg/... ./utils/... ./cmd/... \
$(COVERAGE_OPTS) --tags=unit,all_components
$(COVERAGE_OPTS) --tags=unit,allcomponents
CGO_ENABLED=$(CGO) \
go test --tags=all_components ./tests/...
go test --tags=allcomponents ./tests/...

################################################################################
# Target: test-race #
Expand Down Expand Up @@ -341,7 +341,7 @@ TEST_WITH_RACE=./pkg/acl/... \
.PHONY: test-race
test-race:
echo "$(TEST_WITH_RACE)" | xargs \
go test -tags="all_components unit" -race
go test -tags="allcomponents unit" -race

################################################################################
# Target: lint #
Expand All @@ -350,7 +350,7 @@ test-race:
# You can download version v1.51.2 at https://github.com/golangci/golangci-lint/releases/tag/v1.51.2
.PHONY: lint
lint:
$(GOLANGCI_LINT) run --build-tags=all_components --timeout=20m
$(GOLANGCI_LINT) run --build-tags=allcomponents --timeout=20m

################################################################################
# Target: modtidy-all #
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_alicloud_oss.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_alicloud_sls.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_alicloud_tablestore.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_apns.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_dynamodb.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_kinesis.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_s3.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_ses.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_sns.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_aws_sqs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_blobstorage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_cosmosdb.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_cosmosdb_gremlinapi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_eventgrid.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_eventhubs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_servicebus_queues.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_signalr.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_azure_storagequeues.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_cloudflare_queues.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_commercetools.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_cron.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_dingtalk_webhook.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_dubbo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_gcp_bucket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_gcp_pubsub.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_graphql.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_http.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_huawei_obs.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_influx.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_kafka.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components || stable_components
//go:build allcomponents || stablecomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
4 changes: 2 additions & 2 deletions cmd/daprd/components/binding_kitex.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build !(linux && arm) && all_components
//go:build !(linux && arm) && allcomponents
// +build !linux !arm
// +build all_components
// +build allcomponents

/*
Copyright 2023 The Dapr Authors
Expand Down
2 changes: 1 addition & 1 deletion cmd/daprd/components/binding_kubemq.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build all_components
//go:build allcomponents

/*
Copyright 2021 The Dapr Authors
Expand Down
Loading

0 comments on commit 518bb72

Please sign in to comment.