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 jackgopack4 branch with main #27979

Merged
merged 44 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
09224f2
Enabled change path rule linter + added allow list (#27484)
CelianR Jul 25, 2024
98e74f0
installer: request non default CPU and memory resources (#27916)
chouquette Jul 25, 2024
6c2871e
[ASCII-2047] Adding "inventories" expvar in metadata inventorychecks …
misteriaud Jul 25, 2024
2940189
[SBOM] Add some Trivy analyzers to be deactivated by default (#27120)
jinroh Jul 25, 2024
8670e6c
[ASCII-2052] Fix races in expvar http handler when returning a slice …
pgimalac Jul 25, 2024
0dd70a5
Forward the AWS profile to the EKS cluster (#27919)
FlorentClarret Jul 25, 2024
0840f1a
[tasks] Debugger support (#27508)
CelianR Jul 25, 2024
d676a3a
Added task to setup vscode unit test tab (#27551)
CelianR Jul 25, 2024
be5c4ce
[CSM] Hook ftruncate (#27470)
Gui774ume Jul 25, 2024
64bf145
[CWS] clean up the truncate/ftruncate test (#27922)
paulcacheux Jul 25, 2024
1ba5f38
fix(OCI): Add auth to internal Go packages in build pipeline (#27890)
BaptisteFoy Jul 25, 2024
d484f60
Add Ubuntu 24.04 to the e2e installer tests (#27747)
Pythyu Jul 25, 2024
49da269
Bump google.golang.org/grpc from 1.64.1 to 1.65.0 (#27833)
dependabot[bot] Jul 25, 2024
b0a29ba
Disable k8s 1.19 e2e suite (#27913)
sblumenthal Jul 25, 2024
901f3eb
[fakeintake] redact keys from header at log (#27925)
pducolin Jul 25, 2024
2fe3e1b
fix(installer): Handle installation under non-default `umask` (#27887)
BaptisteFoy Jul 25, 2024
5e2e3a7
fix(installer): Support multiple dockerd running during instrumentati…
BaptisteFoy Jul 25, 2024
a5c3d2b
feat(serverless): temporary set dogstatsd socket to empty (#27911)
duncanista Jul 25, 2024
6897317
V2 Auto Multiline Detection Foundation - Aggregator, Labeler, and Ref…
gh123man Jul 25, 2024
cf8c964
[ASCII-1992] Use the new tunneled http client for sending requests fr…
jeremy-hanna Jul 25, 2024
4196499
Remove milestone from dependabot PRs (#27860)
pgimalac Jul 25, 2024
ebeb9ea
Increase Serverless Perf Threshold to Reduce Flakiness (#27932)
duncanpharvey Jul 25, 2024
65f4032
admission controllers: untangle global auto-instrumentation webhook f…
stanistan Jul 25, 2024
cfe81e8
Remove "github.com/google/gopacket/layers" when linux_bpf is not set …
ogaca-dd Jul 25, 2024
6b3e6ad
[gitlab] fix fakeintake publish (#27933)
pducolin Jul 25, 2024
5a888c4
[network path] Add network path configs (#27920)
AlexandreYang Jul 25, 2024
eef0735
Bump pyaml from 24.4.0 to 24.7.0 in /test/e2e/cws-tests (#27936)
dependabot[bot] Jul 25, 2024
7cc41a6
Bump github.com/cyphar/filepath-securejoin from 0.3.0 to 0.3.1 (#27942)
dependabot[bot] Jul 25, 2024
2a3124e
[processes] increase the wait interval for the manual process check t…
wiyu Jul 25, 2024
e71de65
[ASCII-2057] Use Header for authorizing flare api requests instead of…
jeremy-hanna Jul 25, 2024
0398f05
Add BYOC docker file (#27774)
dineshg13 Jul 25, 2024
ec8c83b
[Cisco SD-WAN] Do not collect unspecified IP addresses (#27923)
TCheruy Jul 25, 2024
cd410d9
[OTEL-1862] Fix flaky test in otlp statsprocessor (#27954)
songy23 Jul 25, 2024
2ac8f11
[gitlab] Temporarily disable publish_fakeintake_latest (#27957)
KSerrania Jul 25, 2024
1e1a6e7
feat(ci): Add a new task to compare a branch to itself (#26101)
chouetz Jul 26, 2024
def18e3
[NDM] Add Cloud application metrics query to the Cisco SD-WAN client …
TCheruy Jul 26, 2024
44bbe07
Migrate log comp new layout (#27365)
hush-hush Jul 26, 2024
7c4e82f
wait for tags to be populated (#27962)
mftoure Jul 26, 2024
8ac3808
packaging: oci: add retry when building datadog-packages (#27964)
chouquette Jul 26, 2024
6fbafe7
[release] Minor fixes (#27966)
chouetz Jul 26, 2024
0f372a5
Fixed vscode unit test settings (#27968)
CelianR Jul 26, 2024
3320b1b
[ASCII-2062][Fakeintake] Log errors on store append payload (#27973)
pgimalac Jul 26, 2024
9cf0b99
feat(notify): Add reporting of bridge jobs (#27972)
chouetz Jul 26, 2024
190d7b8
Run the `go_e2e_deps` step in the flakes finder pipeline (#27963)
FlorentClarret Jul 26, 2024
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
/cmd/agent/dist/conf.d/jetson.d/ @DataDog/agent-devx-infra
/cmd/agent/dist/conf.d/oracle.d/ @DataDog/database-monitoring
/cmd/agent/dist/conf.d/oracle-dbm.d/ @DataDog/database-monitoring
/cmd/agent/dist/conf.d/network_path.d/ @DataDog/Networks @DataDog/network-device-monitoring
/cmd/agent/dist/conf.d/sbom.d/ @DataDog/container-integrations
/cmd/agent/dist/conf.d/snmp.d/ @DataDog/network-device-monitoring
/cmd/agent/dist/conf.d/win32_event_log.d/ @DataDog/windows-agent
Expand Down Expand Up @@ -207,6 +208,7 @@
/Dockerfiles/agent/entrypoint.d.windows/ @DataDog/container-integrations @DataDog/windows-agent
/Dockerfiles/agent/entrypoint.ps1 @DataDog/container-integrations @DataDog/windows-agent
/Dockerfiles/agent/windows/ @DataDog/container-integrations @DataDog/windows-agent
/Dockerfiles/agent-ot/Dockerfile.byoc @DataDog/opentelemetry

/docs/ @DataDog/documentation @DataDog/agent-devx-loops
/docs/dev/checks/ @DataDog/documentation @DataDog/agent-metrics-logs
Expand Down
12 changes: 0 additions & 12 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ updates:
- dependencies-go
- team/triage
- changelog/no-changelog
milestone: 22
ignore:
# These dependencies are replaced in the main go.mod file.
# They are ignored since bumping them would have no effect on the build.
Expand Down Expand Up @@ -45,7 +44,6 @@ updates:
- dependencies-go
- team/agent-apm
- changelog/no-changelog
milestone: 22
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
Expand All @@ -61,7 +59,6 @@ updates:
- dependencies-go
- team/agent-shared-components
- changelog/no-changelog
milestone: 22
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
Expand All @@ -77,7 +74,6 @@ updates:
- dependencies-go
- team/agent-apm
- changelog/no-changelog
milestone: 22
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
Expand All @@ -93,7 +89,6 @@ updates:
- dependencies-go
- team/agent-security
- changelog/no-changelog
milestone: 22
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
Expand All @@ -113,7 +108,6 @@ updates:
- team/agent-delivery
- changelog/no-changelog
- qa/no-code-change
milestone: 22
schedule:
interval: monthly
open-pull-requests-limit: 100
Expand All @@ -124,7 +118,6 @@ updates:
- dependencies-go
- team/network-device-monitoring
- changelog/no-changelog
milestone: 22
ignore:
# Ignore internal modules
- dependency-name: github.com/DataDog/datadog-agent/*
Expand All @@ -140,7 +133,6 @@ updates:
- changelog/no-changelog
- qa/no-code-change
- dev/testing
milestone: 22
ignore:
# Ignore test-infra-definitions because bumping the GO package inside `go.mod`
# requires to also bump `TEST_INFRA_DEFINITIONS_BUILDIMAGES` inside `.gitlab/common/test_infra_version.yml`
Expand All @@ -162,7 +154,6 @@ updates:
- changelog/no-changelog
- qa/no-code-change
- dev/testing
milestone: 22
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -175,7 +166,6 @@ updates:
- changelog/no-changelog
- qa/no-code-change
- dev/tooling
milestone: 22
schedule:
interval: monthly
open-pull-requests-limit: 100
Expand All @@ -187,7 +177,6 @@ updates:
- changelog/no-changelog
- qa/no-code-change
- dev/testing
milestone: 22
schedule:
interval: weekly
open-pull-requests-limit: 100
Expand All @@ -200,7 +189,6 @@ updates:
- changelog/no-changelog
- qa/no-code-change
- dev/tooling
milestone: 22
schedule:
interval: weekly
open-pull-requests-limit: 100
3 changes: 3 additions & 0 deletions .github/workflows/create_rc_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:

- name: Check for changes since last RC
id: check_for_changes
env:
ATLASSIAN_USERNAME: ${{ secrets.ATLASSIAN_USERNAME }}
ATLASSIAN_PASSWORD: ${{ secrets.ATLASSIAN_PASSWORD }}
run: |
echo "CHANGES=$(inv -e release.check-for-changes -r ${{ env.RELEASE_BRANCH }} ${{ env.WARNING }})" >> $GITHUB_OUTPUT

Expand Down
28 changes: 17 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ variables:
GITLAB_FULL_API_TOKEN_SSM_NAME: ci.datadog-agent.gitlab_full_api_token # ci-cd
INSTALL_SCRIPT_API_KEY_SSM_NAME: ci.agent-linux-install-script.datadog_api_key_2 # agent-delivery
JIRA_READ_API_TOKEN_SSM_NAME: ci.datadog-agent.jira_read_api_token # agent-devx-infra
AGENT_GITHUB_APP_ID_SSM_NAME: ci.datadog-agent.platform-github-app-id # agent-devx-infra
AGENT_GITHUB_INSTALLATION_ID_SSM_NAME: ci.datadog-agent.platform-github-app-installation-id # agent-devx-infra
AGENT_GITHUB_KEY_SSM_NAME: ci.datadog-agent.platform-github-app-key # agent-devx-infra
MACOS_GITHUB_APP_ID_SSM_NAME: ci.datadog-agent.macos_github_app_id # agent-devx-infra
MACOS_GITHUB_INSTALLATION_ID_SSM_NAME: ci.datadog-agent.macos_github_installation_id # agent-devx-infra
MACOS_GITHUB_KEY_SSM_NAME: ci.datadog-agent.macos_github_key_b64 # agent-devx-infra
Expand Down Expand Up @@ -359,14 +362,12 @@ variables:
.if_mergequeue: &if_mergequeue
if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/

.fakeintake_changes: &fakeintake_changes
changes:
paths:
- "test/fakeintake/**/*"
- .gitlab/binary_build/fakeintake.yml
- .gitlab/container_build/fakeintake.yml
- .gitlab/dev_container_deploy/fakeintake.yml
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
.fakeintake_paths: &fakeintake_paths
paths:
- "test/fakeintake/**/*"
- .gitlab/binary_build/fakeintake.yml
- .gitlab/container_build/fakeintake.yml
- .gitlab/dev_container_deploy/fakeintake.yml

#
# Workflow rules
Expand Down Expand Up @@ -790,7 +791,9 @@ workflow:

.on_e2e_or_fakeintake_changes_or_manual:
- !reference [.on_e2e_main_release_or_rc]
- <<: *fakeintake_changes
- changes:
<<: *fakeintake_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916
variables:
FAKEINTAKE_IMAGE_OVERRIDE: "public.ecr.aws/datadog/fakeintake:v$CI_COMMIT_SHORT_SHA"
when: on_success
Expand Down Expand Up @@ -1051,10 +1054,13 @@ workflow:
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916

.on_fakeintake_changes:
- <<: *fakeintake_changes
- changes:
<<: *fakeintake_paths
compare_to: main # TODO: use a variable, when this is supported https://gitlab.com/gitlab-org/gitlab/-/issues/369916

.on_fakeintake_changes_on_main:
- <<: *fakeintake_changes
- changes:
<<: *fakeintake_paths
<<: *if_main_branch

.fast_on_dev_branch_only:
Expand Down
18 changes: 16 additions & 2 deletions .gitlab/.pre/test_gitlab_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,19 @@ test_gitlab_configuration:
script:
- source /root/.bashrc
- export GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $GITLAB_FULL_API_TOKEN_SSM_NAME)
- inv linter.gitlab-ci
- inv linter.gitlab-change-paths
- inv -e linter.gitlab-ci
- inv -e linter.job-change-path
- inv -e linter.gitlab-change-paths

test_gitlab_compare_to:
stage: .pre
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
tags: ["arch:amd64"]
rules:
- !reference [.on_gitlab_changes]
script:
- source /root/.bashrc
- export GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $GITLAB_FULL_API_TOKEN_SSM_NAME)
- !reference [.setup_agent_github_app]
- pip install -r tasks/requirements.txt
- inv pipeline.compare-to-itself
6 changes: 6 additions & 0 deletions .gitlab/common/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
echo "Using GitHub App instance 2"
fi

.setup_agent_github_app:
- export GITHUB_KEY_B64=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $AGENT_GITHUB_KEY_SSM_NAME)
- export GITHUB_APP_ID=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $AGENT_GITHUB_APP_ID_SSM_NAME)
- export GITHUB_INSTALLATION_ID=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $AGENT_GITHUB_INSTALLATION_ID_SSM_NAME)
- echo "Using agent GitHub App"

# Install `dd-pkg` and lint packages produced by Omnibus, supports only deb and rpm packages
.lint_linux_packages:
- curl -sSL "https://dd-package-tools.s3.amazonaws.com/dd-pkg/${DD_PKG_VERSION}/dd-pkg_Linux_${DD_PKG_ARCH}.tar.gz" | tar -xz -C /usr/local/bin dd-pkg
Expand Down
1 change: 1 addition & 0 deletions .gitlab/container_build/fakeintake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ docker_build_fakeintake:
rules:
- !reference [.except_mergequeue]
- !reference [.on_fakeintake_changes]
- !reference [.on_fakeintake_changes_on_main]
needs: []
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/docker:20.10-py3
tags: ["arch:amd64"]
Expand Down
3 changes: 3 additions & 0 deletions .gitlab/deploy_packages/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ include:
- export VERSION=$(inv agent.version --url-safe)-1
- git config --global credential.helper '!f() { echo username=x-access-token; echo "password=$GH_TOKEN"; };f'
- ${CI_PROJECT_DIR}/tools/ci/retry.sh git clone -v --depth=1 https://github.com/DataDog/datadog-packages /tmp/datadog-packages
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/"
- export GOPROXY="binaries.ddbuild.io,proxy.golang.org,direct"
- export GONOSUMDB="github.com/DataDog,go.ddbuild.io"
- cd /tmp/datadog-packages/cmd/datadog-package
- go build .
- ./datadog-package push registry.ddbuild.io/ci/remote-updates/${OCI_PRODUCT}:${VERSION} ${OMNIBUS_PACKAGE_DIR}/${OCI_PRODUCT}-${VERSION}.oci.tar
Expand Down
28 changes: 14 additions & 14 deletions .gitlab/dev_container_deploy/fakeintake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ publish_fakeintake:
IMG_REGISTRIES: public
IMG_SIGNING: "false"

publish_fakeintake_latest:
extends: .docker_publish_job_definition
stage: dev_container_deploy
rules:
- !reference [.except_mergequeue]
- !reference [.on_fakeintake_changes_on_main]
needs:
- job: docker_build_fakeintake
optional: false
variables:
IMG_SOURCES: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent/fakeintake:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}
IMG_DESTINATIONS: fakeintake:latest
IMG_REGISTRIES: public
IMG_SIGNING: "false"
# publish_fakeintake_latest:
# extends: .docker_publish_job_definition
# stage: dev_container_deploy
# rules:
# - !reference [.except_mergequeue]
# - !reference [.on_fakeintake_changes_on_main]
# needs:
# - job: docker_build_fakeintake
# optional: false
# variables:
# IMG_SOURCES: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent/fakeintake:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}
# IMG_DESTINATIONS: fakeintake:latest
# IMG_REGISTRIES: public
# IMG_SIGNING: "false"
4 changes: 3 additions & 1 deletion .gitlab/e2e/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ new-e2e-containers:
TEAM: container-integrations
parallel:
matrix:
- EXTRA_PARAMS: "--run TestKindSuite -c ddinfra:kubernetesVersion=1.19"
# Temporarily disable old version of Kubernetes
# On this version, the reported kubernetes CPU usage appears to be significantly off
# - EXTRA_PARAMS: "--run TestKindSuite -c ddinfra:kubernetesVersion=1.19"
- EXTRA_PARAMS: "--run TestKindSuite -c ddinfra:kubernetesVersion=1.22"
- EXTRA_PARAMS: "--run TestKindSuite -c ddinfra:kubernetesVersion=1.27"
- EXTRA_PARAMS: "--run TestKindSuite -c ddinfra:kubernetesVersion=1.29"
Expand Down
12 changes: 6 additions & 6 deletions .gitlab/kitchen_testing/new-e2e_testing/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
.new-e2e_ubuntu_a6_x86_64:
variables:
E2E_ARCH: x86_64
E2E_OSVERS: "ubuntu-14-04,ubuntu-16-04,ubuntu-18-04,ubuntu-20-04,ubuntu-22-04"
E2E_OSVERS: "ubuntu-14-04,ubuntu-16-04,ubuntu-18-04,ubuntu-20-04,ubuntu-22-04,ubuntu-24-04"
E2E_CWS_SUPPORTED_OSVERS: "ubuntu-18-04,ubuntu-20-04,ubuntu-22-04"
E2E_BRANCH_OSVERS: "ubuntu-22-04"
E2E_BRANCH_OSVERS: "ubuntu-24-04"
needs:
- !reference [.needs_new_e2e_template]
- deploy_deb_testing-a6_x64

.new-e2e_ubuntu_a6_arm64:
variables:
E2E_ARCH: arm64
E2E_OSVERS: "ubuntu-18-04,ubuntu-20-04"
E2E_OSVERS: "ubuntu-18-04,ubuntu-20-04,ubuntu-24-04"
E2E_CWS_SUPPORTED_OSVERS: "ubuntu-18-04,ubuntu-20-04"
E2E_BRANCH_OSVERS: "ubuntu-20-04"
needs:
Expand All @@ -38,17 +38,17 @@
.new-e2e_ubuntu_a7_x86_64:
variables:
E2E_ARCH: x86_64
E2E_OSVERS: "ubuntu-14-04,ubuntu-16-04,ubuntu-18-04,ubuntu-20-04,ubuntu-22-04"
E2E_OSVERS: "ubuntu-14-04,ubuntu-16-04,ubuntu-18-04,ubuntu-20-04,ubuntu-22-04,ubuntu-24-04"
E2E_CWS_SUPPORTED_OSVERS: "ubuntu-18-04,ubuntu-20-04,ubuntu-22-04"
E2E_BRANCH_OSVERS: "ubuntu-22-04"
E2E_BRANCH_OSVERS: "ubuntu-24-04"
needs:
- !reference [.needs_new_e2e_template]
- deploy_deb_testing-a7_x64

.new-e2e_ubuntu_a7_arm64:
variables:
E2E_ARCH: arm64
E2E_OSVERS: "ubuntu-18-04,ubuntu-20-04"
E2E_OSVERS: "ubuntu-18-04,ubuntu-20-04,ubuntu-24-04"
E2E_CWS_SUPPORTED_OSVERS: "ubuntu-18-04,ubuntu-20-04"
E2E_BRANCH_OSVERS: "ubuntu-20-04"
needs:
Expand Down
3 changes: 3 additions & 0 deletions .gitlab/package_build/installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ datadog-agent-oci-arm64-a7:
- !reference [.upload_sbom_artifacts]
variables:
AGENT_MAJOR_VERSION: 7
KUBERNETES_CPU_REQUEST: 8
KUBERNETES_MEMORY_REQUEST: "16Gi"
KUBERNETES_MEMORY_LIMIT: "16Gi"
artifacts:
expire_in: 2 weeks
paths:
Expand Down
5 changes: 4 additions & 1 deletion .gitlab/packaging/oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
- git config --global credential.helper '!f() { echo username=x-access-token; echo "password=$GH_TOKEN"; };f'
- cd /tmp/
- ${CI_PROJECT_DIR}/tools/ci/retry.sh git clone --depth=1 https://github.com/DataDog/datadog-packages
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/"
- export GOPROXY="binaries.ddbuild.io,proxy.golang.org,direct"
- export GONOSUMDB="github.com/DataDog,go.ddbuild.io"
- cd datadog-packages/cmd/datadog-package
- go build .
- ${CI_PROJECT_DIR}/tools/ci/retry.sh go build .
- OUTPUT_DIR="/tmp/oci_output"
- mkdir -p ${OUTPUT_DIR}
- ls $OMNIBUS_PACKAGE_DIR
Expand Down
4 changes: 3 additions & 1 deletion .gitlab/post_rc_build/post_rc_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ update_rc_build_links:
- export ATLASSIAN_PASSWORD=$($CI_PROJECT_DIR/tools/ci/aws_ssm_get_wrapper.sh $JIRA_READ_API_TOKEN_SSM_NAME)
- export ATLASSIAN_USERNAME=robot-jira-agentplatform@datadoghq.com
- python3 -m pip install -r tasks/requirements_release_tasks.txt
- inv -e release.update-build-links ${CI_COMMIT_REF_NAME}
- PATCH=$(echo "$CI_COMMIT_REF_NAME" | cut -d'.' -f3 | cut -c1)
- if [[ "$PATCH" == "0" ]]; then PATCH_OPTION=""; else PATCH_OPTION="-p"; fi
- inv -e release.update-build-links ${CI_COMMIT_REF_NAME} ${PATCH_OPTION}
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ linters-settings:
errcheck:
# Disable warnings for `fmt`, `log` and `seelog` packages. Also ignore `Write` functions from `net/http` package.
# Disable warnings for select Windows functions
ignore: fmt:.*,github.com/DataDog/datadog-agent/pkg/util/log:.*,github.com/DataDog/datadog-agent/comp/core/log:.*,github.com/cihub/seelog:.*,net/http:Write,github.com/DataDog/datadog-agent/pkg/trace/metrics:.*,github.com/DataDog/datadog-agent/pkg/collector/corechecks:Warnf?,golang.org/x/sys/windows:(CloseHandle|FreeLibrary|FreeSid|RegCloseKey|SetEvent|LocalFree),syscall:CloseHandle,golang.org/x/sys/windows/svc/mgr:Disconnect,golang.org/x/sys/windows/svc/debug:(Close|Error|Info|Warning),github.com/lxn/walk:Dispose,github.com/DataDog/datadog-agent/comp/core/flare/types:(AddFile.*|CopyDir.*|CopyFile.*),github.com/DataDog/datadog-agent/comp/core/flare/builder:(AddFile.*|CopyDir.*|CopyFile.*),golang.org/x/sys/windows/registry:Close
ignore: fmt:.*,github.com/DataDog/datadog-agent/pkg/util/log:.*,github.com/DataDog/datadog-agent/comp/core/log/def:.*,github.com/DataDog/datadog-agent/comp/core/log/mock:.*,github.com/cihub/seelog:.*,net/http:Write,github.com/DataDog/datadog-agent/pkg/trace/metrics:.*,github.com/DataDog/datadog-agent/pkg/collector/corechecks:Warnf?,golang.org/x/sys/windows:(CloseHandle|FreeLibrary|FreeSid|RegCloseKey|SetEvent|LocalFree),syscall:CloseHandle,golang.org/x/sys/windows/svc/mgr:Disconnect,golang.org/x/sys/windows/svc/debug:(Close|Error|Info|Warning),github.com/lxn/walk:Dispose,github.com/DataDog/datadog-agent/comp/core/flare/types:(AddFile.*|CopyDir.*|CopyFile.*),github.com/DataDog/datadog-agent/comp/core/flare/builder:(AddFile.*|CopyDir.*|CopyFile.*),golang.org/x/sys/windows/registry:Close
staticcheck:
checks: ["all",
"-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", # These ones are disabled by default on staticcheck
Expand Down
17 changes: 16 additions & 1 deletion .vscode/launch.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,20 @@
"mode": "test",
"program": "${fileDirname}"
},
{
"name": "Remote Debug Tasks",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
},
]
}
}
11 changes: 10 additions & 1 deletion .vscode/settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
"SC2059",
"SC2028"
],
"shellcheck.run": "onSave"
"shellcheck.run": "onSave",
"python.testing.unittestArgs": [
"-v",
"-s",
"./tasks",
"-p",
"*_tests.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
}}
Loading
Loading