fix(metrics): improve probe sample shutdown behavior #2990
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-integration: | |
| name: Build And Integration | |
| runs-on: ubuntu-latest | |
| env: | |
| DING_TOKEN: ${{ secrets.DING_TOKEN }} | |
| DING_SIGN: ${{ secrets.DING_SIGN }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Cache Go build artifacts | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/bin | |
| key: ${{ runner.os }}-go-build-bin-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-build-bin- | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: maven | |
| - name: Check tool versions | |
| run: | | |
| go version | |
| java -version | |
| mvn -version | |
| - name: Install imports-formatter | |
| run: | | |
| command -v imports-formatter >/dev/null 2>&1 || go install github.com/dubbogo/tools/cmd/imports-formatter@latest | |
| - name: Format code | |
| run: | | |
| go fmt ./... | |
| GOROOT=$(go env GOROOT) imports-formatter | |
| git status | |
| [[ -z "$(git status -s)" ]] | |
| - name: Switch Dubbo-go version | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then | |
| BRANCH=${{ github.base_ref }} | |
| elif [ "$GITHUB_EVENT_NAME" == "push" ]; then | |
| BRANCH=$GITHUB_REF_NAME | |
| else | |
| echo "$GITHUB_EVENT_NAME event is unsupported right now" | |
| exit 1 | |
| fi | |
| echo "EVENT=$GITHUB_EVENT_NAME BRANCH=$BRANCH" | |
| go mod edit -replace=dubbo.apache.org/dubbo-go/v3=dubbo.apache.org/dubbo-go/v3@$BRANCH | |
| go mod tidy | |
| - name: Check license header | |
| uses: apache/skywalking-eyes/header@main | |
| - name: Integration test | |
| run: | | |
| chmod +x start_integrate_test.sh | |
| ./start_integrate_test.sh |