Skip to content

add testctx for instrumenting integration tests with OTel #5362

add testctx for instrumenting integration tests with OTel

add testctx for instrumenting integration tests with OTel #5362

Workflow file for this run

name: Engine & CLI
on:
push:
branches: ["main"]
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
# Enable manual trigger for easy debugging
workflow_dispatch:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-v0-11-8-4c-nvme' || 'ubuntu-latest' }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: "engine lint"
uses: ./.github/actions/call
with:
function: "engine lint"
- name: "scripts lint"
uses: ./.github/actions/call
with:
function: "scripts lint"
test:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-v0-11-8-16c-nvme' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "test"
uses: ./.github/actions/call
with:
function: "test all --race=true --parallel=16"
# Run Engine tests in dev Engine so that we can spot integration failures early
# Only run a subset of important test cases since we just need to verify basic
# functionality rather than repeat every test already run in the other targets.
testdev:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-v0-11-8-32c-dind' || 'ubuntu-latest' }}"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "testdev"
uses: ./.github/actions/call
with:
function: "test important --race=true --parallel=16"
dev-engine: true
test-publish:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-v0-11-8-4c-nvme' || 'ubuntu-latest' }}"
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: "test publish cli"
uses: ./.github/actions/call
with:
function: "cli test-publish"
- name: "test publish engine"
uses: ./.github/actions/call
with:
function: "engine test-publish"
- name: "test publish engine (gpu)"
uses: ./.github/actions/call
with:
function: "engine with-base --image=ubuntu --gpu-support=true test-publish"
scan-engine:
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-v0-11-8-4c-nvme' || 'ubuntu-latest' }}"
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: "scan"
uses: ./.github/actions/call
with:
function: "engine scan"