Skip to content

Commit 53e99fe

Browse files
authored
Merge branch 'main' into issue-688-fix
2 parents fa3b2e0 + 1baa1c2 commit 53e99fe

48 files changed

Lines changed: 2210 additions & 486 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-agentcore-collector.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
run: |
32-
LATEST_SHA=$(gh api repos/wangzlei/opentelemetry-collector-contrib/commits/genai-adapter-connector --jq '.sha')
32+
LATEST_SHA=$(gh api repos/amazon-contributing/opentelemetry-collector-contrib/commits/aws-cwa-dev --jq '.sha')
3333
LAST_SHA=$(cat .last-code-sha 2>/dev/null || echo "")
3434
3535
echo "Latest SHA: $LATEST_SHA"
@@ -53,11 +53,12 @@ jobs:
5353
permissions:
5454
id-token: write
5555
contents: read
56+
actions: write
5657
steps:
5758
- name: Checkout code repo
5859
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5960
with:
60-
repository: wangzlei/opentelemetry-collector-contrib
61+
repository: amazon-contributing/opentelemetry-collector-contrib
6162
ref: ${{ needs.check-for-changes.outputs.latest_sha }}
6263

6364
- name: Set up Go
@@ -78,7 +79,7 @@ jobs:
7879
- name: Configure AWS Credentials
7980
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
8081
with:
81-
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE_ARN }}
82+
role-to-assume: arn:aws:iam::${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ACCOUNT_ID }}:role/${{ secrets.APPLICATION_SIGNALS_E2E_TEST_ROLE_NAME }}
8283
aws-region: us-east-1
8384

8485
- name: Package and upload collector to S3
@@ -87,7 +88,7 @@ jobs:
8788
cp bin/otelcol-agentcore_linux_arm64 collector-package/otelcol-agentcore
8889
cp cmd/otelcol-agentcore/config.yaml collector-package/config.yaml
8990
cd collector-package && zip -r ../otelcol-agentcore.zip . && cd ..
90-
aws s3 cp otelcol-agentcore.zip s3://${{ secrets.STAGING_BUCKET_NAME }}/otelcol-agentcore.zip
91+
aws s3 cp otelcol-agentcore.zip s3://adot-main-build-staging-jar/otelcol-agentcore.zip
9192
9293
- name: Checkout current repo for cache context
9394
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
types: [opened, synchronize, ready_for_review, reopened]
8+
# Optional: Only run on specific file changes
9+
# paths:
10+
# - "**/*.py"
11+
# - "**/*.pyi"
12+
13+
concurrency:
14+
group: claude-review-${{ github.event.pull_request.number }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
claude-review:
19+
if: ${{ !github.event.pull_request.draft }}
20+
timeout-minutes: 15
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
issues: read
26+
id-token: write
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 #v4.3.1
31+
with:
32+
fetch-depth: 50
33+
34+
- name: Configure AWS Credentials
35+
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 #5.0.0
36+
with:
37+
role-to-assume: ${{ secrets.TELEGEN_AWS_ASSUME_ROLE_ARN }}
38+
aws-region: ${{ vars.AWS_DEFAULT_REGION || 'us-east-1' }}
39+
40+
- name: Run Claude Code Review
41+
id: claude-review
42+
uses: anthropics/claude-code-action@1b422b3517b51140e4484faab676c5e68b914866 #v1.0.73
43+
with:
44+
use_bedrock: "true"
45+
direct_api: "true"
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
claude_args: |
48+
--model us.anthropic.claude-opus-4-6-v1 --allowedTools "Bash(gh pr diff *),Bash(gh pr view *),Bash(gh api repos/*/pulls/*/comments*),Bash(gh api repos/*/pulls/*/reviews*)"
49+
prompt: |
50+
Review this PR for bugs, security issues, and code quality. Post your findings as inline review comments on the relevant lines.

.github/workflows/main-build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ jobs:
134134
staging-wheel-name: ${{ needs.build.outputs.staging_wheel_file }}
135135
adot-image-name: ${{ needs.build.outputs.staging_registry }}/aws-observability/adot-autoinstrumentation-python-staging:${{ needs.build.outputs.python_image_tag }}
136136

137-
# build-agentcore-collector:
138-
# name: "Build AgentCore Runtime Collector"
139-
# needs: [ build ]
140-
# uses: ./.github/workflows/build-agentcore-collector.yml
141-
# secrets: inherit
142-
# permissions:
143-
# id-token: write
144-
# contents: read
145-
# actions: write
137+
build-agentcore-collector:
138+
name: "Build AgentCore Runtime Collector"
139+
needs: [ build ]
140+
uses: ./.github/workflows/build-agentcore-collector.yml
141+
secrets: inherit
142+
permissions:
143+
id-token: write
144+
contents: read
145+
actions: write
146146

147147
publish-main-build-status:
148148
name: "Publish Main Build Status"

.github/workflows/nightly-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
permissions:
101101
id-token: write
102102
contents: read
103+
actions: write
103104
with:
104105
ref: nightly-dependency-updates
105106

@@ -151,8 +152,10 @@ jobs:
151152
${{ needs.update-dependencies.outputs.breaking_changes_info }}"
152153
153154
if gh pr view "$BRANCH_NAME" --json state --jq '.state' 2>/dev/null | grep -q "OPEN"; then
154-
echo "Open PR already exists, updating description..."
155-
gh pr edit "$BRANCH_NAME" --body "$PR_BODY"
155+
echo "Open PR already exists, updating title and description..."
156+
gh pr edit "$BRANCH_NAME" \
157+
--title "Nightly dependency update: OpenTelemetry ${{ needs.update-dependencies.outputs.otel_python_version }}/${{ needs.update-dependencies.outputs.otel_contrib_version }}" \
158+
--body "$PR_BODY"
156159
else
157160
echo "Creating new PR..."
158161
gh pr create \

0 commit comments

Comments
 (0)