Skip to content
Merged
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
24 changes: 24 additions & 0 deletions .github/scripts/tests/test_shared_workflow_runners.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from pathlib import Path

import pytest
import yaml


@pytest.mark.parametrize(
("filename", "job_id"),
[
("ai-pr-review.yml", "ai-pr-review"),
("issue-triage.yml", "triage"),
("notify.yml", "notify"),
("stale-issue-closer.yml", "close-stale"),
],
)
def test_shared_workflow_caller_passes_codebuild_runner(
filename: str, job_id: str
) -> None:
path = Path(__file__).parents[2] / "workflows" / filename
workflow = yaml.safe_load(path.read_text())

assert workflow["jobs"][job_id]["with"]["runs-on"] == (
"codebuild-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}"
)
5 changes: 4 additions & 1 deletion .github/workflows/ai-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ jobs:
contents: write
id-token: write
pull-requests: write
uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review.yml@d6b017da14385908951d23e26c790b28a4e5f9f0
uses: aws/aws-durable-execution-ci/.github/workflows/ai-pr-review.yml@8ea82196db65b5b0dd67f0b72bb03fa2fa9cf65b
with:
# CodeBuild-hosted runner in the Python testing account; the label must
# match the CodeBuild project name.
runs-on: codebuild-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
prompt-path: .github/prompts/ai-pr-review.md
run-claude: false
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ jobs:
contents: read
id-token: write
issues: write
uses: aws/aws-durable-execution-ci/.github/workflows/issue-triage.yml@d6b017da14385908951d23e26c790b28a4e5f9f0
uses: aws/aws-durable-execution-ci/.github/workflows/issue-triage.yml@8ea82196db65b5b0dd67f0b72bb03fa2fa9cf65b
with:
# CodeBuild-hosted runner in the Python testing account; the label must
# match the CodeBuild project name.
runs-on: codebuild-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ jobs:
contents: read
models: read
id-token: write
uses: aws/aws-durable-execution-ci/.github/workflows/notify.yml@d6b017da14385908951d23e26c790b28a4e5f9f0
uses: aws/aws-durable-execution-ci/.github/workflows/notify.yml@8ea82196db65b5b0dd67f0b72bb03fa2fa9cf65b
with:
# CodeBuild-hosted runner in the Python testing account; the label must
# match the CodeBuild project name.
runs-on: codebuild-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
secrets:
BEDROCK_ROLE_ARN: ${{ secrets.BEDROCK_ROLE_ARN }}
SLACK_WEBHOOK_URL_PR: ${{ secrets.SLACK_WEBHOOK_URL_PR }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stale-issue-closer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ jobs:
permissions:
contents: read
issues: write
uses: aws/aws-durable-execution-ci/.github/workflows/stale-issue-closer.yml@288e4317948ca778ebf01acca9342d8b898a1dc2
uses: aws/aws-durable-execution-ci/.github/workflows/stale-issue-closer.yml@8ea82196db65b5b0dd67f0b72bb03fa2fa9cf65b
with:
# CodeBuild-hosted runner in the Python testing account; the label must
# match the CodeBuild project name.
runs-on: codebuild-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
9 changes: 8 additions & 1 deletion .github/workflows/test-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- '.github/scripts/js_examples/**'
- '.github/scripts/tests/**'
- '.github/workflows/ai-pr-review.yml'
- '.github/workflows/issue-triage.yml'
- '.github/workflows/notify.yml'
- '.github/workflows/stale-issue-closer.yml'
- '.github/workflows/opentelemetry-conformance-tests.yml'
- '.github/workflows/test-parser.yml'
- 'packages/aws-durable-execution-sdk-python-otel/pyproject.toml'
Expand All @@ -21,6 +24,9 @@ on:
- '.github/scripts/js_examples/**'
- '.github/scripts/tests/**'
- '.github/workflows/ai-pr-review.yml'
- '.github/workflows/issue-triage.yml'
- '.github/workflows/notify.yml'
- '.github/workflows/stale-issue-closer.yml'
- '.github/workflows/opentelemetry-conformance-tests.yml'
- '.github/workflows/test-parser.yml'
- 'packages/aws-durable-execution-sdk-python-otel/pyproject.toml'
Expand Down Expand Up @@ -64,4 +70,5 @@ jobs:
.github/scripts/tests/test_check_otel_wheel_dependencies.py \
.github/scripts/tests/test_js_examples.py \
.github/scripts/tests/test_opentelemetry_conformance_workflow.py \
.github/scripts/tests/test_parse_sdk_branch.py
.github/scripts/tests/test_parse_sdk_branch.py \
.github/scripts/tests/test_shared_workflow_runners.py
Loading