Skip to content

Add Azure Blob Storage source #8592

Add Azure Blob Storage source

Add Azure Blob Storage source #8592

# Integration Test Comment
#
# This workflow runs one or more integration tests triggered by a comment in a PR.
# The comment must include '/ci-run-integration'.
# More than one can be specified.
#
# Examples:
#
# 1. Run a single integration test:
#
# /ci-run-integration-amqp
#
# 2. Run two integration tests:
#
# /ci-run-integration-datadog-logs
# /ci-run-integration-splunk
#
# 3. Run all integration tests:
#
# /ci-run-integration-all
#
# 4. Run all CI (including all integration tests)
#
# /ci-run-all
name: Integration Test Comment
on:
issue_comment:
types: [created]
env:
AWS_ACCESS_KEY_ID: "dummy"
AWS_SECRET_ACCESS_KEY: "dummy"
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
TEST_APPSIGNAL_PUSH_API_KEY: ${{ secrets.TEST_APPSIGNAL_PUSH_API_KEY }}
TEST_DATADOG_API_KEY: ${{ secrets.CI_TEST_DATADOG_API_KEY }}
CONTAINER_TOOL: "docker"
DD_ENV: "ci"
DD_API_KEY: ${{ secrets.DD_API_KEY }}
RUST_BACKTRACE: full
TEST_LOG: vector=debug
VERBOSE: true
CI: true
PROFILE: debug
jobs:
prep-pr:
name: (PR comment) Signal pending to PR
runs-on: ubuntu-latest
timeout-minutes: 5
if: contains(github.event.comment.body, '/ci-run-integration') || contains(github.event.comment.body, '/ci-run-all')
steps:
- name: Generate authentication token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_ID }}
private_key: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_PRIVATE_KEY }}
- name: Get PR comment author
id: comment
uses: tspascoal/get-user-teams-membership@v3
with:
username: ${{ github.actor }}
team: 'Vector'
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Validate author membership
if: steps.comment.outputs.isTeamMember == 'false'
run: exit 1
- name: (PR comment) Get PR branch
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- name: (PR comment) Set latest commit status as pending
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: pending
integration-tests:
needs: prep-pr
runs-on: ubuntu-20.04-4core
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- run: sudo npm -g install @datadog/datadog-ci
- run: docker image prune -af ; docker container prune -f
- name: amqp
if: ${{ contains(github.event.comment.body, '/ci-run-integration-amqp')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
# First one requires more time, as we need to build the image from scratch
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int amqp
- name: appsignal
if: ${{ contains(github.event.comment.body, '/ci-run-integration-appsignal')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int appsignal
- name: aws
if: ${{ contains(github.event.comment.body, '/ci-run-integration-aws')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int aws
- name: axiom
if: ${{ contains(github.event.comment.body, '/ci-run-integration-axiom')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int axiom
- name: azure
if: ${{ contains(github.event.comment.body, '/ci-run-integration-azure')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int azure
- name: clickhouse
if: ${{ contains(github.event.comment.body, '/ci-run-integration-clickhouse')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int clickhouse
- name: databend
if: ${{ contains(github.event.comment.body, '/ci-run-integration-databend')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int databend
- name: datadog-agent
if: ${{ contains(github.event.comment.body, '/ci-run-integration-datadog-agent')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int datadog-agent
- name: datadog-logs
if: ${{ contains(github.event.comment.body, '/ci-run-integration-datadog-logs')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int datadog-logs
- name: datadog-metrics
if: ${{ contains(github.event.comment.body, '/ci-run-integration-datadog-metrics')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int datadog-metrics
- name: datadog-traces
if: ${{ contains(github.event.comment.body, '/ci-run-integration-datadog-traces')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int datadog-traces
- name: dnstap
if: ${{ contains(github.event.comment.body, '/ci-run-integration-dnstap')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int dnstap
- run: docker image prune -af --filter=label!=vector-test-runner=true ; docker container prune -f
- name: docker-logs
if: ${{ contains(github.event.comment.body, '/ci-run-integration-docker-logs')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int docker-logs
- name: elasticsearch
if: ${{ contains(github.event.comment.body, '/ci-run-integration-elasticsearch')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int elasticsearch
- name: eventstoredb
if: ${{ contains(github.event.comment.body, '/ci-run-integration-eventstoredb')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int eventstoredb
- name: fluent
if: ${{ contains(github.event.comment.body, '/ci-run-integration-fluent')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int fluent
- name: gcp
if: ${{ contains(github.event.comment.body, '/ci-run-integration-gcp')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int gcp
- name: greptimedb
if: ${{ contains(github.event.comment.body, '/ci-run-integration-greptimedb')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int greptimedb
- name: humio
if: ${{ contains(github.event.comment.body, '/ci-run-integration-humio')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int humio
- name: http-client
if: ${{ contains(github.event.comment.body, '/ci-run-integration-http-client')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int http-client
- name: influxdb
if: ${{ contains(github.event.comment.body, '/ci-run-integration-influxdb')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int influxdb
- name: kafka
if: ${{ contains(github.event.comment.body, '/ci-run-integration-kafka')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int kafka
- name: logstash
if: ${{ contains(github.event.comment.body, '/ci-run-integration-logstash')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int logstash
- name: loki
if: ${{ contains(github.event.comment.body, '/ci-run-integration-loki')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int loki
- name: mongodb
if: ${{ contains(github.event.comment.body, '/ci-run-integration-mongodb')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int mongodb
- name: mqtt
if: ${{ contains(github.event.comment.body, '/ci-run-integration-mqtt')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int mqtt
- run: docker image prune -af --filter=label!=vector-test-runner=true ; docker container prune -f
- name: nats
if: ${{ contains(github.event.comment.body, '/ci-run-integration-nats')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int nats
- name: nginx
if: ${{ contains(github.event.comment.body, '/ci-run-integration-nginx')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int nginx
- name: opentelemetry
if: ${{ contains(github.event.comment.body, '/ci-run-integration-opentelemetry')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int opentelemetry
- name: postgres
if: ${{ contains(github.event.comment.body, '/ci-run-integration-postgres')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int postgres
- name: prometheus
if: ${{ contains(github.event.comment.body, '/ci-run-integration-prometheus')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int prometheus
- name: pulsar
if: ${{ contains(github.event.comment.body, '/ci-run-integration-pulsar')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int pulsar
- name: redis
if: ${{ contains(github.event.comment.body, '/ci-run-integration-redis')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int redis
- name: shutdown
if: ${{ contains(github.event.comment.body, '/ci-run-integration-shutdown')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int shutdown
- name: splunk
if: ${{ contains(github.event.comment.body, '/ci-run-integration-splunk')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int splunk
- name: webhdfs
if: ${{ contains(github.event.comment.body, '/ci-run-integration-webhdfs')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh int webhdfs
e2e-tests:
needs: prep-pr
runs-on: ubuntu-20.04-8core
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- run: sudo npm -g install @datadog/datadog-ci
- run: docker image prune -af ; docker container prune -f
- name: e2e-datadog-logs
if: ${{ contains(github.event.comment.body, '/ci-run-e2e-datadog-logs')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 35
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh e2e datadog-logs
- name: datadog-e2e-metrics
if: ${{ contains(github.event.comment.body, '/ci-run-e2e-datadog-metrics')
|| contains(github.event.comment.body, '/ci-run-integration-all')
|| contains(github.event.comment.body, '/ci-run-all') }}
uses: nick-fields/retry@v3
with:
timeout_minutes: 35
max_attempts: 3
command: bash scripts/ci-int-e2e-test.sh e2e datadog-metrics
update-pr-status:
name: Signal result to PR
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- integration-tests
- e2e-tests
if: always() && (contains(github.event.comment.body, '/ci-run-integration') || contains(github.event.comment.body, '/ci-run-all'))
env:
FAILED: ${{ contains(needs.*.result, 'failure') }}
steps:
- name: Generate authentication token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_ID }}
private_key: ${{ secrets.GH_APP_DATADOG_VECTOR_CI_APP_PRIVATE_KEY }}
- name: Validate issue comment
if: github.event_name == 'issue_comment'
uses: tspascoal/get-user-teams-membership@v3
with:
username: ${{ github.actor }}
team: 'Vector'
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: (PR comment) Get PR branch
if: github.event_name == 'issue_comment' && env.FAILED != 'true'
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- name: (PR comment) Submit PR result as success
if: github.event_name == 'issue_comment' && env.FAILED != 'true'
uses: myrotvorets/set-commit-status-action@v2.0.1
with:
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: 'success'
- run: |
echo "failed=${{ env.FAILED }}"
if [[ "$FAILED" == "true" ]] ; then
exit 1
else
exit 0
fi