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

Update dev branch to be in sync with main #2363

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
a7c9f87
Bump github.com/aws/aws-sdk-go in /tools/workflow/cleaner (#2185)
dependabot[bot] Jul 4, 2023
3758895
[chore] prep v0.31.0 release (#2194)
bryan-aguilar Jul 11, 2023
46c1d32
Store and use testcases file from collector repo (#2205)
bryan-aguilar Jul 18, 2023
19f6623
Fix ref name (#2206)
bryan-aguilar Jul 18, 2023
5351dca
Dependabot updates Wed Jul 19 15:39:09 EDT 2023 (#2210)
Aneurysm9 Jul 19, 2023
83e2bc0
Add missing clusters (#2212)
bryan-aguilar Jul 20, 2023
00eabc0
Merge branch 'release/v0.31.x' into updateMain31
bryan-aguilar Jul 20, 2023
9b61518
Merge pull request #2213 from aws-observability/updateMain31
bryan-aguilar Jul 20, 2023
2ee64a6
Don't ignore testcases file for triggering CI (#2225)
bryan-aguilar Jul 27, 2023
988cf79
Adding ECS_Observer_Test_Case (#2227)
PaurushGarg Aug 1, 2023
004e176
Dependabot prs/2023 08 01 t120653 and OTel Collector v0.82.0 (#2229)
vasireddy99 Aug 2, 2023
1456727
[main] Vendor modules and add patch file for StatsD Receiver (#2241)
vasireddy99 Aug 3, 2023
ccc3001
[chore] Add Patch file for kafka exporter (#2244)
vasireddy99 Aug 7, 2023
8343b25
Run go mod vendor (#2245)
vasireddy99 Aug 7, 2023
77a55a0
[dev] add k8sattr processor and integ tests (#2214)
bryan-aguilar Jul 24, 2023
a2e322f
Run go mod vendor
humivo Aug 9, 2023
e22ad6a
[dev] add load balancing exporter and integ tests
humivo Jul 24, 2023
0472a28
Run go mod vendor
humivo Aug 9, 2023
0df7f15
Re-add test targets
humivo Aug 9, 2023
f7cd74f
Merge pull request #2262 from aws-observability/AddNewComponents
humivo Aug 9, 2023
31cdc2e
Add Log statement about statsd receiver (#2250)
vasireddy99 Aug 10, 2023
a32a143
Fix: Add support to vendor folder in the dependabot-pr script
rapphil Aug 11, 2023
4da7dca
dependabot updates Fri Aug 11 04:54:36 UTC 2023 (#2264)
rapphil Aug 11, 2023
1e22b23
Merge branch 'main' into rapphil-fix-dependabot-pr
bryan-aguilar Aug 11, 2023
ff2f5b9
Bump github.com/aws/aws-sdk-go in /tools/workflow/cleaner
dependabot[bot] Aug 11, 2023
3d239c5
Fix: don't overwrite .env file (#2261)
rapphil Aug 11, 2023
301ec5a
Fix control script to avoid sed special characters
rapphil Aug 11, 2023
0b69a1f
Fix typo in tests
rapphil Aug 11, 2023
f583d3e
Merge pull request #2267 from aws-observability/rapphil-fix-control-s…
rapphil Aug 11, 2023
f36b166
bump version to v0.32.0 (#2268)
humivo Aug 12, 2023
0de2bee
Merge branch 'main' into rapphil-fix-dependabot-pr
rapphil Aug 12, 2023
4b3ba64
Merge pull request #2265 from aws-observability/rapphil-fix-dependabo…
rapphil Aug 12, 2023
d4529c2
Merge branch 'main' into dependabot/go_modules/tools/workflow/cleaner…
rapphil Aug 13, 2023
4498d6d
Merge remote-tracking branch 'upstream/release/v0.32.x' into UpdateMa…
humivo Aug 14, 2023
29722c8
Merge pull request #2266 from aws-observability/dependabot/go_modules…
rapphil Aug 14, 2023
e238f2e
Merge branch 'main' into UpdateMain32
humivo Aug 14, 2023
fce60bd
Merge pull request #2271 from aws-observability/UpdateMain32
humivo Aug 14, 2023
ede986e
Update collector versions
bryan-aguilar Aug 15, 2023
e0b1456
Add script to update versions
bryan-aguilar Aug 15, 2023
3c946b1
run vendor
bryan-aguilar Aug 15, 2023
8c71b8a
Add var ifndef checks
bryan-aguilar Aug 15, 2023
f8d7a38
Fix patch files
bryan-aguilar Aug 15, 2023
991786c
Add agent replace statements
bryan-aguilar Aug 15, 2023
013d1c1
go mod vendor
bryan-aguilar Aug 15, 2023
54c557d
remove new target
bryan-aguilar Aug 15, 2023
e407809
Merge pull request #2273 from aws-observability/updateCollector83
rapphil Aug 15, 2023
d0bda7c
Use ecr images across all templates
rapphil Aug 17, 2023
51fa79e
Merge pull request #2287 from aws-observability/rapphil-use-amazonlinux
rapphil Aug 17, 2023
6a0f8dd
Bump github.com/golangci/golangci-lint in /tools/workflow/linters (#2…
dependabot[bot] Aug 22, 2023
7d2e607
Bump benchmark-action/github-action-benchmark from 1.17.0 to 1.18.0 (…
dependabot[bot] Aug 22, 2023
042a0fa
[aoc-collector non-root user]: Removing code that changes user from r…
PaurushGarg Aug 11, 2023
787da80
Add k8s and lb to readme table (#2296)
bryan-aguilar Aug 28, 2023
5149a53
Merge branch 'main' into root-user-linux
bryan-aguilar Sep 5, 2023
ddc5d47
Merge pull request #2297 from aws-observability/root-user-linux
rapphil Sep 5, 2023
7c8d23f
[aoc-collector non-root user]: Statement breaking change non root us…
PaurushGarg Sep 6, 2023
830533f
[release/v0.33.x] Prepare release v0.33.0 (#2316)
bryan-aguilar Sep 6, 2023
c56236a
Updated type in ReadMe (#2319)
Danielzolty Sep 6, 2023
c32f5ce
Merge branch 'release/v0.33.x' into updatemain33
bryan-aguilar Sep 7, 2023
af35031
Use reusable workflows to trigger perf workflow (#2322)
rapphil Sep 7, 2023
8b1bf3d
Merge branch 'main' into updatemain33
bryan-aguilar Sep 7, 2023
2871cd5
Merge pull request #2324 from aws-observability/updatemain33
bryan-aguilar Sep 8, 2023
ebe8533
Revert "Use reusable workflows to trigger perf workflow (#2322)" (#2330)
rapphil Sep 8, 2023
f843927
Add dependency to build-aot-util in performance test job (#2329)
bryan-aguilar Sep 8, 2023
ff2e9a1
bump terraform version (#2331)
bryan-aguilar Sep 8, 2023
1d024c2
Dependabot prs/2023 09 08 t095035 (#2332)
bryan-aguilar Sep 11, 2023
cb2f6bf
Update Collector Version (#2353)
vasireddy99 Sep 18, 2023
bf88a23
Merge release/v0.33.x to main (#2354)
vasireddy99 Sep 19, 2023
2ed8194
[release/v0.32.x] Remove Log for AOT_CONFIG_CONTENT (#2350) (#2356)
vasireddy99 Sep 19, 2023
7f4bae3
Fix merge conflicts
Kausik-A Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
134 changes: 134 additions & 0 deletions .github/config/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,43 @@
"type": "EKS",
"targets": [
{
<<<<<<< HEAD
"name": "dev-collector-ci-amd64-1-23",
=======
"name": "collector-ci-amd64-1-22",
>>>>>>> main
"region": "us-west-2",
"excluded_tests": [
"containerinsights_eks_containerd"
]
},
{
<<<<<<< HEAD
"name": "dev-collector-ci-amd64-1-26",
=======
"name": "collector-ci-amd64-1-23",
"region": "us-west-2",
"excluded_tests": [
"containerinsights_eks_containerd"
]
},
{
"name": "collector-ci-amd64-1-24",
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
]
},
{
"name": "collector-ci-amd64-1-25",
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
]
},
{
"name": "collector-ci-amd64-1-26",
>>>>>>> main
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
Expand All @@ -23,18 +52,89 @@
"type": "EKS_ARM64",
"targets": [
{
<<<<<<< HEAD
"name": "dev-collector-ci-arm64-1-23",
=======
"name": "collector-ci-arm64-1-22",
>>>>>>> main
"region": "us-west-2",
"excluded_tests": [
"containerinsights_eks_containerd"
]
},
{
<<<<<<< HEAD
"name": "dev-collector-ci-arm64-1-26",
=======
"name": "collector-ci-arm64-1-23",
"region": "us-west-2",
"excluded_tests": [
"containerinsights_eks_containerd"
]
},
{
"name": "collector-ci-arm64-1-24",
>>>>>>> main
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
]
<<<<<<< HEAD
=======
},
{
"name": "collector-ci-arm64-1-25",
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
]
},
{
"name": "collector-ci-arm64-1-26",
"region": "us-west-2",
"excluded_tests": [
"containerinsight_eks"
]
}
]
},
{
"type": "EKS_ADOT_OPERATOR",
"targets": [
{
"name": "operator-ci-amd64-1-22",
"region": "us-west-2"
},
{
"name": "operator-ci-amd64-1-23",
"region": "us-west-2"
}
]
},
{
"type": "EKS_ADOT_OPERATOR_ARM64",
"targets": [
{
"name": "operator-ci-arm64-1-22",
"region": "us-west-2"
},
{
"name": "operator-ci-arm64-1-23",
"region": "us-west-2"
}
]
},
{
"type": "EKS_FARGATE",
"targets": [
{
"name": "collector-ci-fargate-1-22",
"region": "us-west-2"
},
{
"name": "collector-ci-fargate-1-23",
"region": "us-west-2"
>>>>>>> main
}
]
}
Expand Down Expand Up @@ -436,6 +536,23 @@
]
},
{
<<<<<<< HEAD
=======
"case_name": "statsd_nootellib_instScopeEnabled",
"platforms": [
"EKS",
"EKS_ARM64"
]
},
{
"case_name": "statsd_otellib_instScopeEnabled",
"platforms": [
"EKS",
"EKS_ARM64"
]
},
{
>>>>>>> main
"case_name": "logzio_exporter_trace_mock",
"platforms": [
"LOCAL",
Expand Down Expand Up @@ -478,6 +595,15 @@
]
},
{
<<<<<<< HEAD
=======
"case_name": "containerinsight_ecs_prometheus",
"platforms": [
"ECS"
]
},
{
>>>>>>> main
"case_name": "otlp_metric_k8sattr",
"platforms": [
"EKS",
Expand Down Expand Up @@ -515,6 +641,7 @@
]
},
{
<<<<<<< HEAD
"case_name": "statsd_nootellib_instScopeEnabled",
"platforms": [
"EKS",
Expand All @@ -523,10 +650,17 @@
},
{
"case_name": "statsd_otellib_instScopeEnabled",
=======
"case_name": "statsd_instscopedisabled",
>>>>>>> main
"platforms": [
"EKS",
"EKS_ARM64"
]
}
]
<<<<<<< HEAD
}
=======
}
>>>>>>> main
74 changes: 74 additions & 0 deletions .github/scripts/test-collector-ctl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/bash -x

set -e

# This script is supposed to run during the CI to validate that the control
# script is working as expected
# Important: this script requires root permission.

COLLECTOR_DEB=$1
COLLECTOR_CONFIG=$2

ADOT_CTL=/opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl
ENV_FILE="/opt/aws/aws-otel-collector/etc/.env"
CONFIG_FILE="/opt/aws/aws-otel-collector/etc/config.yaml"

setup() {
dpkg -i "$COLLECTOR_DEB"
}

test_collector_ctl_does_not_overwrite_env() {
$ADOT_CTL -a start
if [ ! -e $CONFIG_FILE ]; then
echo "Config file does not exist"
exit 1
fi

echo "EXTRA_ENV=\"some value\"" | tee -a $ENV_FILE > /dev/null

# We don't need the collector to succeed, just that the control script is execised
$ADOT_CTL -a start -c "http://example.com"

if ! grep -q EXTRA_ENV "$ENV_FILE"; then
echo "Env file was overwritten"
exit 1
fi

$ADOT_CTL -a start -c "$COLLECTOR_CONFIG"
if ! grep -q EXTRA_ENV "$ENV_FILE"; then
ehco "Env file was overwritten"
exit 1
fi
echo "${FUNCNAME[0]} ... OK"
}

test_collector_ctl_with_sed_special_chars() {
# ampersand is a special character in sed
cfg="https://example.com?test=1&test=2"
$ADOT_CTL -a start -c "$cfg"

expected_string="^config=\"--config '${cfg}'\"$"

if ! grep -q "${expected_string}" "$ENV_FILE"; then
echo "Configuration is incorrect"
exit 1
fi

cfg="./config.yaml"
$ADOT_CTL -a start -c "$cfg"

expected_string="^config=\"--config /opt/aws/aws-otel-collector/etc/config.yaml\"$"
if ! grep -q "${expected_string}" "$ENV_FILE"; then
echo "Configuration is incorrect"
exit 1
fi

echo "${FUNCNAME[0]} ... OK"
}


setup

## Tests
test_collector_ctl_does_not_overwrite_env
test_collector_ctl_with_sed_special_chars
14 changes: 7 additions & 7 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
latest-or-newer: ${{ steps.version.outputs.latest-or-newer }}
sha: ${{ steps.set-input-vars.outputs.sha }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set Input Variables
id: set-input-vars
run: |
Expand All @@ -62,7 +62,7 @@ jobs:
echo "sha=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2.2.0
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.COLLECTOR_ASSUMABLE_ROLE_ARN }}
aws-region: us-west-2
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
runs-on: ubuntu-latest
needs: [release-checking]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache if success
id: release-to-s3
Expand All @@ -131,7 +131,7 @@ jobs:

- name: Configure AWS Credentials
if: steps.release-to-s3.outputs.cache-hit != 'true'
uses: aws-actions/configure-aws-credentials@v2.2.0
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.COLLECTOR_PROD_RELEASE_ROLE_ARN }}
aws-region: us-west-2
Expand All @@ -148,7 +148,7 @@ jobs:
runs-on: ubuntu-latest
needs: [release-checking]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache if success
id: release-version-image
Expand All @@ -159,7 +159,7 @@ jobs:

- name: Configure AWS Credentials
if: steps.release-version-image.outputs.cache-hit != 'true'
uses: aws-actions/configure-aws-credentials@v2.2.0
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.COLLECTOR_PROD_RELEASE_ROLE_ARN }}
aws-region: us-east-1
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
needs: [ release-ssm, release-to-s3, release-version-image, release-checking]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.release-checking.outputs.sha }}

Expand Down
Loading