Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move reused worflows to the "reusable" directory. #19138

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ datadog_checks_base/tests/**/test_db_statements.py @DataDog/database-monitoring
# APM Integrations
/langchain/ @DataDog/ml-observability @DataDog/agent-integrations @DataDog/documentation
/openai/ @DataDog/ml-observability @DataDog/agent-integrations @DataDog/documentation

/anthropic/ @DataDog/ml-observability @DataDog/agent-integrations @DataDog/documentation

# Windows agent
datadog_checks_base/datadog_checks/base/checks/win/ @DataDog/windows-agent @DataDog/agent-integrations
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/config/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ integration/kyverno:
- kyverno/**/*
integration/langchain:
- langchain/**/*
integration/anthropic:
- anthropic/**/*
integration/lastpass:
- lastpass/**/*
integration/lighttpd:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
concurrency:
group: test-results

uses: ./.github/workflows/test-results-master.yml
uses: ./.github/workflows/reusable/test-results-master.yml
secrets: inherit

submit-traces:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
pull-requests: write
contents: write

uses: ./.github/workflows/test-results-master.yml
uses: ./.github/workflows/reusable/test-results-master.yml
secrets: inherit

submit-traces:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
run:
uses: ./.github/workflows/pr-quick-check.yml
if: ${{ github.base_ref == 'master' }}
permissions: # These permissions need to match the ones in the included workflow, see pr-quick-check.yml for details
pull-requests: write
contents: read
with:
repo: core
secrets: inherit

4 changes: 2 additions & 2 deletions .github/workflows/pr-quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
runs-on: ubuntu-22.04

permissions:
pull-requests: write
contents: read
pull-requests: write # For the "Comment" step, read for the "Fetch script" and "Check changelog" steps
contents: read # For the "Fetch diff" and "Check changelog" steps

steps:
# Uncomment for testing purposes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ concurrency:

jobs:
test:
uses: ./.github/workflows/pr-test.yml
uses: ./.github/workflows/reusable/pr-test.yml
with:
repo: core
secrets: inherit
6 changes: 4 additions & 2 deletions .github/workflows/publish-test-results-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:

jobs:
publish:
uses: ./.github/workflows/test-results-pr.yml
uses: ./.github/workflows/reusable/test-results-pr.yml
if: github.event.workflow_run.conclusion != 'skipped'
permissions:
permissions: # These permissions need to match the ones in the included workflow, see test-results-pr.yml for details
checks: write
pull-requests: write
contents: read
actions: read
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
matrix:
include: ${{ fromJson(needs.compute-matrix.outputs.matrix) }}

uses: ./.github/workflows/test-target.yml
uses: ./.github/workflows/reusable/test-results-pr.yml
with:
job-name: "${{ matrix.name }}"
target: "${{ matrix.target }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
name: Publish test results
runs-on: ubuntu-22.04

permissions:
checks: write
pull-requests: write
contents: write
permissions:
checks: write # For EnricoMi/publish-unit-test-result-action@v2
pull-requests: write # For EnricoMi/publish-unit-test-result-action@v2
contents: read # For EnricoMi/publish-unit-test-result-action@v2
actions: read # For "Download and extract artifacts"

steps:
- name: Download and extract artifacts
Expand Down
Loading
Loading