Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/docker/test/fakeintake/alpine-3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
pducolin authored Dec 27, 2024
2 parents 1a5638a + 70abd23 commit a648a2d
Show file tree
Hide file tree
Showing 1,509 changed files with 39,622 additions and 22,136 deletions.
12 changes: 12 additions & 0 deletions .copyright-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,15 @@ github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/multiendpoint: Copyright 2024
github.com/NVIDIA/go-nvml/*: Copyright 2023 NVIDIA CORPORATION

github.com/jonboulle/clockwork: Copyright 2014 Nell Boulle

github.com/nozzle/throttler: Copyright 2018 Derek Perkins
github.com/openvex/discovery/*: Copyright 2023 The OpenVEX Authors
github.com/sassoftware/relic/*: Copyright (c) SAS Institute Inc.
github.com/transparency-dev/merkle: Copyright 2017 Google LLC. All Rights Reserved.
github.com/transparency-dev/merkle/compact: Copyright 2019 Google LLC. All Rights Reserved.
github.com/transparency-dev/merkle/proof:
- Copyright 2017 Google LLC. All Rights Reserved.
- Copyright 2022 Google LLC. All Rights Reserved.
github.com/transparency-dev/merkle/rfc6962: Copyright 2016 Google LLC. All Rights Reserved.

gopkg.in/go-jose/go-jose.v2: Copyright 2014 Square Inc.
10 changes: 5 additions & 5 deletions .ddqa/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jira_issue_type = "Task"
jira_statuses = ["To Do", "In Progress", "Done"]
github_team = "agent-delivery"
github_labels = ["team/agent-delivery"]
exclude_members = ["hithwen"]
exclude_members = ["KSerrania"]

[teams."Universal Service Monitoring"]
jira_project = "USMON"
Expand Down Expand Up @@ -176,12 +176,12 @@ jira_statuses = ["To Do", "In Progress", "Done"]
github_team = "agent-cspm"
github_labels = ["team/agent-cspm"]

[teams."Processes"]
jira_project = "PROCS"
[teams."Container Intake"]
jira_project = "CTK"
jira_issue_type = "Task"
jira_statuses = ["TRIAGE", "In Progress", "Done"]
github_team = "processes"
github_labels = ["team/processes"]
github_team = "container-intake"
github_labels = ["team/container-intake"]

[teams."Windows Agent"]
jira_project = "WINA"
Expand Down
85 changes: 53 additions & 32 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ updates:
- dependency-name: github.com/ugorji/go
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
# OpenTelemetry collector packages need to be updated with inv rather than dependabot
- dependency-name: go.opentelemetry.io/collector/*
- dependency-name: github.com/open-telemetry/opentelemetry-collector-contrib/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -52,6 +57,11 @@ updates:
- dependency-name: github.com/DataDog/datadog-agent/*
# See https://github.com/DataDog/datadog-agent/pull/10112
- dependency-name: github.com/mailru/easyjson
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
# OpenTelemetry collector packages need to be updated with inv rather than dependabot
- dependency-name: go.opentelemetry.io/collector/*
- dependency-name: github.com/open-telemetry/opentelemetry-collector-contrib/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -67,6 +77,8 @@ updates:
- dependency-name: github.com/DataDog/datadog-agent/*
# See https://github.com/DataDog/datadog-agent/pull/10112
- dependency-name: github.com/mailru/easyjson
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -82,6 +94,8 @@ updates:
- dependency-name: github.com/DataDog/datadog-agent/*
# See https://github.com/DataDog/datadog-agent/pull/10112
- dependency-name: github.com/mailru/easyjson
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -95,6 +109,8 @@ updates:
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -113,6 +129,9 @@ updates:
- qa/no-code-change
schedule:
interval: monthly
ignore:
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
open-pull-requests-limit: 100
- package-ecosystem: gomod
directory: /pkg/networkdevice/profile
Expand All @@ -124,6 +143,8 @@ updates:
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -144,6 +165,8 @@ updates:
# Do not bump dependencies that come from test-infra-definitions, they will be bumped when we'll bump the version
# https://datadoghq.atlassian.net/browse/ADXT-375
- dependency-name: github.com/pulumi*
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*

schedule:
interval: weekly
Expand All @@ -160,6 +183,9 @@ updates:
schedule:
interval: weekly
open-pull-requests-limit: 100
ignore:
# Ignore golang.org/x/... deps to avoid noise, they are updated together, pretty regularly
- dependency-name: golang.org/x/*
- package-ecosystem: docker
directory: /test/fakeintake
labels:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add_milestone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
GH_REPO: ${{ github.repository }}
steps:
- name: Checkout datadog-agent repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/assign_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
- name: Assign issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_API_TOKEN : ${{ secrets.SLACK_DATADOG_AGENT_BOT_TOKEN }}
run: |
inv -e issue.assign-owner -i ${{ github.event.issue.number }}
6 changes: 3 additions & 3 deletions .github/workflows/buildimages-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout branch
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# credentials are needed to create the PR at the end of the workflow
persist-credentials: true
Expand All @@ -53,7 +53,7 @@ jobs:
fi
- name: Checkout branch
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
if: ${{ steps.branch_fetch.outputs.RESULT == 'true' }}
with:
ref: ${{ inputs.branch }}
Expand All @@ -66,7 +66,7 @@ jobs:
python-version: 3.11
cache: "pip"

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
# use the go version from the input, not from the .go-version file
# in case it's a Go update PR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chase_release_managers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code_review_complexity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup python
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -40,12 +40,12 @@ jobs:
echo "CGO_LDFLAGS= -L${GITHUB_WORKSPACE}/rtloader/build/rtloader -ldl " >> $GITHUB_ENV
echo "CGO_CFLAGS= -I${GITHUB_WORKSPACE}/rtloader/include -I${GITHUB_WORKSPACE}/rtloader/common " >> $GITHUB_ENV
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ".go-version"

- name: Initialize CodeQL
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
languages: ${{ matrix.language }}
config: |
Expand All @@ -67,4 +67,4 @@ jobs:
invoke agent.build --build-exclude=systemd
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
uses: github/codeql-action/analyze@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
67 changes: 21 additions & 46 deletions .github/workflows/collector-generate-and-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,37 @@ jobs:
permissions:
pull-requests: write
steps:
- name: Set date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Read tool versions
id: tool-versions
run: |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV
echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.12.6'
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

- name: Install dependencies
- name: Set up Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run update task
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: inv -e collector.update

- name: Run generate task
- name: Run Collector Update Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: inv -e collector.generate

- name: Check for changes
id: check_changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
if git diff-index --quiet HEAD; then
echo "No changes detected"
echo "changes_detected=false" >> $GITHUB_OUTPUT
else
echo "Changes detected"
echo "changes_detected=true" >> $GITHUB_OUTPUT
fi
- name: Commit changes
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
git switch -c update-otel-collector-dependencies-${{ steps.date.outputs.date }}
git commit -m "Update OTel Collector dependencies and generate OTel Agent"
git push -u origin update-otel-collector-dependencies-${{ steps.date.outputs.date }}
- name: Install GitHub CLI
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
sudo apt-get update
sudo apt-get install gh
- name: Create draft pull request
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
gh auth login --with-token <<< ${{ secrets.GITHUB_TOKEN }}
gh pr create --title "Update OTel collector dependencies" --body "This PR updates the OTel Collector dependencies to the latest version. Please ensure that all tests pass before marking ready for review." --base main --head update-otel-collector-dependencies-${{ steps.date.outputs.date }} --draft
inv -e install-tools
inv -e collector.update
inv -e collector.generate
inv -e generate-licenses
inv -e collector.pull-request
28 changes: 19 additions & 9 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
schedule:
- cron: '0 14 * * 1,3,5' # Run on Monday, Wednesday, and Friday at 14:00 UTC
- cron: '0 8 * * 1,3,5' # Same as above but at 08:00 UTC, to warn agent-integrations team about releasing
- cron: '0 9 * * 1' # Run Agent 6 workflow on Monday at 09:00 UTC

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

AGENT6_RELEASE_BRANCH: '6.53.x'
IS_AGENT6_RELEASE: ${{ github.event.schedule == '0 9 * * 1' }}
permissions: {}

jobs:
Expand All @@ -19,18 +21,21 @@ jobs:
warning: ${{ steps.warning.outputs.value }}
steps:
- name: Checkout repository

uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
sparse-checkout: 'tasks'
persist-credentials: false

- name: Install python
if: ${{ env.IS_AGENT6_RELEASE == 'false' }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.11
cache: "pip"

- name: Install Python dependencies
if: ${{ env.IS_AGENT6_RELEASE == 'false' }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand All @@ -40,7 +45,11 @@ jobs:
- name: Determine the release active branches
id: branches
run: |
echo "value=$(inv release.get-unreleased-release-branches)" >> $GITHUB_OUTPUT
if ${{ env.IS_AGENT6_RELEASE == 'true' }}; then
echo "value=[\"$AGENT6_RELEASE_BRANCH\"]" >> $GITHUB_OUTPUT
else
echo "value=$(inv release.get-unreleased-release-branches)" >> $GITHUB_OUTPUT
fi
- name: Set the warning option
id: warning
Expand All @@ -59,8 +68,8 @@ jobs:
value: ${{fromJSON(needs.find_release_branches.outputs.branches)}}
fail-fast: false
steps:
- name: Checkout release branch
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Checkout the main branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: true

Expand Down Expand Up @@ -93,11 +102,12 @@ jobs:
fi
- name: Create RC PR
if: ${{ steps.check_for_changes.outputs.CHANGES == 'true'}}
if: ${{ steps.check_for_changes.outputs.CHANGES == 'true' || env.IS_AGENT6_RELEASE == 'true' }}
env:
MATRIX: ${{ matrix.value }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git fetch
inv -e release.create-rc "$MATRIX" --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }}
if ${{ env.IS_AGENT6_RELEASE == 'true' }}; then
inv -e release.create-rc -r "$MATRIX" --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }} --patch-version
else
inv -e release.create-rc -r "$MATRIX" --slack-webhook=${{ secrets.AGENT_RELEASE_SYNC_SLACK_WEBHOOK }}
fi
2 changes: 1 addition & 1 deletion .github/workflows/create_release_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
persist-credentials: false
Expand Down
Loading

0 comments on commit a648a2d

Please sign in to comment.