Fix cannot query zipkin traces with annotationQuery
parameter in th…
#204
This file contains 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
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you under the Apache License, Version 2.0 (the | |
# "License"); you may not use this file except in compliance | |
# with the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: GraalVM Community Edition build | |
on: | |
pull_request: | |
push: | |
concurrency: | |
group: skywalking-graalvm-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
SW_AGENT_JDK_VERSION: 8 | |
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5 # Cache restore timeout | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17.0.8' | |
distribution: 'graalvm-community' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Native Compile | |
run: | | |
./mvnw -Pbackend,native clean package -Dmaven.test.skip | |
- uses: actions/upload-artifact@v3 | |
name: Upload distribution tar | |
with: | |
name: native-pre-dist | |
path: graal/dist | |
- name: Build and save docker images | |
run: | | |
make -f graal/Makefile docker.oap || make -f graal/Makefile docker.oap | |
docker save -o docker-images-skywalking-oap.tar skywalking/oap:latest | |
- name: Upload docker images | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docker-images-native | |
path: docker-images-skywalking-*.tar | |
e2e-test: | |
if: | | |
always() && ! cancelled() | |
name: E2E test | |
needs: [build] | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
test: | |
- name: GraalVM Native Image Agent Test | |
config: test/e2e-v2/cases/go/e2e.yaml | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/download-artifact@v3 | |
name: Download docker images | |
with: | |
name: docker-images-native | |
path: docker-images | |
- name: Load docker images | |
run: | | |
find docker-images -name "*.tar" -exec docker load -i {} \; | |
find docker-images -name "*.tar" -exec rm {} \; | |
- name: Cache maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('test/e2e-v2/java-test-service/**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Prepare test services | |
shell: bash | |
run: ./mvnw -B -q -f test/e2e-v2/java-test-service/pom.xml clean package | |
- name: Set env var | |
run: | | |
echo "${{ matrix.test.env }}" >> $GITHUB_ENV | |
- name: ${{ matrix.test.name }} | |
uses: apache/skywalking-infra-e2e@0a5b398fc9668ccb848b16e6da4f09180955dc3e | |
with: | |
e2e-file: $GITHUB_WORKSPACE/${{ matrix.test.config }} | |
- uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
name: Upload Logs | |
with: | |
name: logs | |
path: "${{ env.SW_INFRA_E2E_LOG_DIR }}" |