Skip to content

Commit

Permalink
Merge branch 'master' into tiflash_config
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Dec 15, 2021
2 parents 6e261e8 + 5eb7abf commit ae3b6b6
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 14 deletions.
11 changes: 11 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ codecov:
wait_for_ci: no

coverage:
round: nearest
range: 30..70

ignore:
- "pkg/cluster/api/dmpb"
- "pkg/cluster/api/typeutil"

flags:
tiup:
carryforward: true
cluster:
carryforward: true
dm:
carryforward: true
playground:
carryforward: true
7 changes: 6 additions & 1 deletion .github/workflows/integrate-cluster-cmd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: integrate-cluster-cmd

on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
Expand Down Expand Up @@ -109,4 +112,6 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F integrate,cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
7 changes: 6 additions & 1 deletion .github/workflows/integrate-cluster-scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: integrate-cluster-scale

on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
Expand Down Expand Up @@ -110,4 +113,6 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F integrate,cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F cluster -s ${{ env.working-directory }}/tests/tiup-cluster/cover -f '*.out'
7 changes: 6 additions & 1 deletion .github/workflows/integrate-dm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: integrate-dm

on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
Expand Down Expand Up @@ -114,4 +117,6 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F integrate,dm -s ${{ env.working-directory }}/tests/tiup-dm/cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F dm -s ${{ env.working-directory }}/tests/tiup-dm/cover -f '*.out'
7 changes: 6 additions & 1 deletion .github/workflows/integrate-playground.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: integrate-playground

on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
Expand Down Expand Up @@ -90,4 +93,6 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F integrate,playground -s ${{ env.working-directory }}/tests/tiup-playground/cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F playground -s ${{ env.working-directory }}/tests/tiup-playground/cover -f '*.out'
11 changes: 9 additions & 2 deletions .github/workflows/integrate-tiup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: integrate-tiup

on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
Expand Down Expand Up @@ -72,7 +75,9 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F integrate,tiup -s ${{ env.working-directory }}/tests/tiup/cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F tiup -s ${{ env.working-directory }}/tests/tiup/cover -f '*.out'
unit-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,4 +107,6 @@ jobs:
- name: Upload coverage to Codecov
working-directory: ${{ env.working-directory }}
run: |
curl -s https://codecov.io/bash | bash -s - -F unittest -s cover -f '*.out'
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -F unittest -s cover -f '*.out'
7 changes: 6 additions & 1 deletion .github/workflows/release-tiup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
release:
types:
- published
workflow_dispatch:
inputs:
git-ref:
description: git ref
required: true

jobs:
release:
Expand All @@ -42,7 +47,7 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.inputs.git-ref || github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}
fetch-depth: 0

Expand Down
2 changes: 2 additions & 0 deletions embed/examples/cluster/topology.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ alertmanager_servers:
- host: 10.0.1.21
# # SSH port of the server.
# ssh_port: 22
# Alertmanager web service listen host.
# listen_host: 0.0.0.0
# # Alertmanager web service port.
# web_port: 9093
# # Alertmanager communication port.
Expand Down
2 changes: 1 addition & 1 deletion embed/templates/scripts/run_alertmanager.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exec bin/alertmanager/alertmanager \
--storage.path="{{.DataDir}}" \
--data.retention=120h \
--log.level="info" \
--web.listen-address="{{.IP}}:{{.WebPort}}" \
--web.listen-address="{{.ListenHost}}:{{.WebPort}}" \
--web.external-url="http://{{.IP}}:{{.WebPort}}" \
{{- if .EndPoints}}
{{- range $idx, $am := .EndPoints}}
Expand Down
4 changes: 2 additions & 2 deletions tests/tiup-cluster/test_scale_core_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -eu

source script/scale_core.sh

echo "test scaling of core components in cluster for version v4.0.12 w/ TLS, via easy ssh"
scale_core v4.0.12 true false
echo "test scaling of core components in cluster for version v5.3.0 w/ TLS, via easy ssh"
scale_core v5.3.0 true false
4 changes: 2 additions & 2 deletions tests/tiup-cluster/test_scale_tools_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -eu

source script/scale_tools.sh

echo "test scaling of tools components in cluster for version v4.0.12 w/ TLS, via easy ssh"
scale_tools v4.0.12 true false
echo "test scaling of tools components in cluster for version v5.3.0 w/ TLS, via easy ssh"
scale_tools v5.3.0 true false
4 changes: 2 additions & 2 deletions tests/tiup-cluster/test_upgrade_tls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -eu

old_version=${old_version-v3.0.20}
version=${version-v4.0.12}
old_version=${old_version-v4.0.15}
version=${version-v5.3.0}

source script/upgrade.sh

Expand Down

0 comments on commit ae3b6b6

Please sign in to comment.