Skip to content

Commit

Permalink
Extract ddev, datadog_checks_base and datadog_checks_dev to separate …
Browse files Browse the repository at this point in the history
…workflows

Include them as a separate job in relevant workflows
  • Loading branch information
vivek-datadog committed May 22, 2024
1 parent 496992e commit 3958a09
Show file tree
Hide file tree
Showing 10 changed files with 299 additions and 167 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,19 @@ jobs:
cache:
uses: ./.github/workflows/cache-shared-deps.yml

test:
test-common:
needs:
- cache

uses: ./.github/workflows/test-common.yml
with:
repo: core

# Options
standard: true
secrets: inherit

test-integrations:
needs:
- cache

Expand All @@ -23,7 +35,8 @@ jobs:

publish-test-results:
needs:
- test
- test-common
- test-integrations
if: success() || failure()
concurrency:
group: test-results
Expand All @@ -33,7 +46,8 @@ jobs:

submit-traces:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/submit-traces.yml
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/nightly-base-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ on:
- cron: "0 5 * * *"

jobs:
test:
test-common:
uses: ./.github/workflows/test-common.yml
with:
repo: core

# Options
standard: true
minimum-base-package: true
test-py2: true
secrets: inherit

test-integrations:
uses: ./.github/workflows/test-all.yml
with:
repo: core
Expand All @@ -19,7 +30,8 @@ jobs:

submit-traces:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/submit-traces.yml
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/nightly-py2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ on:
- cron: "0 4 * * *"

jobs:
test:
test-common:
uses: ./.github/workflows/test-common.yml
with:
repo: core

# Options
standard: true
test-py2: true
test-py3: false
secrets: inherit

test-integrations:
uses: ./.github/workflows/test-all.yml
with:
repo: core
Expand All @@ -19,7 +30,8 @@ jobs:

submit-traces:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/submit-traces.yml
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/pr-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ concurrency:
cancel-in-progress: true

jobs:
test:
test-common:
uses: ./.github/workflows/test-common.yml
with:
repo: core

# Options
standard: true
test-py2: true
secrets: inherit

test-integrations:
uses: ./.github/workflows/test-all.yml
with:
repo: core
Expand All @@ -27,14 +37,16 @@ jobs:

save-event:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/save-event.yml

submit-traces:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/submit-traces.yml
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/test-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,22 @@ on:
type: string

jobs:
test:
test-common:
uses: ./.github/workflows/test-common.yml
with:
repo: core

# Options
standard: true
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
secrets: inherit

test-integrations:
uses: ./.github/workflows/test-all.yml
with:
repo: core
Expand All @@ -52,7 +67,8 @@ jobs:

submit-traces:
needs:
- test
- test-common
- test-integrations
if: success() || failure()

uses: ./.github/workflows/submit-traces.yml
Expand Down
154 changes: 1 addition & 153 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test all
name: Test all integrations

on:
workflow_call:
Expand Down Expand Up @@ -49,158 +49,6 @@ on:
type: string

jobs:
jd316aba:
uses: ./.github/workflows/test-target.yml
with:
job-name: ddev on Linux
target: ddev
platform: linux
runner: '["ubuntu-22.04"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
j6712d43:
uses: ./.github/workflows/test-target.yml
with:
job-name: ddev on Windows
target: ddev
platform: windows
runner: '["windows-2022"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
jb232c8c:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Base on Linux
target: datadog_checks_base
platform: linux
runner: '["ubuntu-22.04"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
jda96080:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Base on Windows
target: datadog_checks_base
platform: windows
runner: '["windows-2022"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
j77217e9:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Dev on Linux
target: datadog_checks_dev
platform: linux
runner: '["ubuntu-22.04"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
j1176210:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Dev on Windows
target: datadog_checks_dev
platform: windows
runner: '["windows-2022"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
j8cdb65b:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Downloader on Linux
target: datadog_checks_downloader
platform: linux
runner: '["ubuntu-22.04"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
j8c73c41:
uses: ./.github/workflows/test-target.yml
with:
job-name: Datadog Checks Downloader on Windows
target: datadog_checks_downloader
platform: windows
runner: '["windows-2022"]'
repo: "${{ inputs.repo }}"
python-version: "${{ inputs.python-version }}"
standard: ${{ inputs.standard }}
latest: ${{ inputs.latest }}
agent-image: "${{ inputs.agent-image }}"
agent-image-py2: "${{ inputs.agent-image-py2 }}"
agent-image-windows: "${{ inputs.agent-image-windows }}"
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
test-py2: ${{ inputs.test-py2 }}
test-py3: ${{ inputs.test-py3 }}
minimum-base-package: ${{ inputs.minimum-base-package }}
secrets: inherit
jd66e148:
uses: ./.github/workflows/test-target.yml
with:
Expand Down
Loading

0 comments on commit 3958a09

Please sign in to comment.