Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from johanneswuerbach/ci
Browse files Browse the repository at this point in the history
feat(ci): run integration tests
  • Loading branch information
johanneswuerbach committed Feb 18, 2022
2 parents 72e40c4 + 027d589 commit de49873
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ jobs:
curl -SL https://github.com/docker/compose/releases/download/v2.0.0/docker-compose-linux-amd64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
- run: make test

test-jaeger-grpc-integration:
name: test-jaeger-grpc-integration
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials from CI account
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::962548656022:role/jaeger-s3-ci
aws-region: us-east-1
- run: |
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.0.0/docker-compose-linux-amd64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
- run: make test-jaeger-grpc-integration
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
test-config.yml
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FROM code AS test

FROM base AS jaeger-grpc-integration
ARG GOARCH=amd64
RUN git clone --depth=1 --single-branch --branch=main https://github.com/jaegertracing/jaeger.git /jaeger
RUN git clone --depth=1 --single-branch --branch=no-future https://github.com/johanneswuerbach/jaeger.git /jaeger
WORKDIR /jaeger
COPY --from=build /src/s3-plugin /go/bin

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ services:
- STORAGE=grpc-plugin
- AWS_PROFILE
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
volumes:
- ~/.aws:/root/.aws
- int-mod-cache:/go/pkg/mod
Expand Down
13 changes: 13 additions & 0 deletions test-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
s3:
bucketName: jaeger-s3-test
prefix: spans/
bufferDuration: 1s
emptyBucket: true
athena:
databaseName: default
tableName: jaeger
outputLocation: s3://jaeger-s3-test-results/
workGroup: jaeger
maxSpanAge: 336h
dependenciesQueryTtl: 6h
servicesQueryTtl: 10s

0 comments on commit de49873

Please sign in to comment.