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

Kserrania/otel agent #33962

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Kserrania/otel agent #33962

wants to merge 2 commits into from

Conversation

FlorentClarret
Copy link
Member

What does this PR do?

Motivation

Describe how you validated your changes

Possible Drawbacks / Trade-offs

Additional Notes

@github-actions github-actions bot added team/agent-delivery medium review PR review might take time labels Feb 12, 2025
docker_build_ot_agent7:
extends: [.docker_build_job_definition_amd64, .docker_build_artifact]
rules:
- !reference [.except_mergequeue]
- when: on_success
needs:
- job: datadog-ot-agent-7-x64
- job: datadog-agent-7-x64
- job: otel-agent-x64
variables:
IMAGE: registry.ddbuild.io/ci/datadog-agent/agent
BUILD_CONTEXT: Dockerfiles/agent
TAG_SUFFIX: -7-ot-beta
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we get rid of the beta suffix right now if it's supposed to be GA for 7.64?

variables:
IMAGE: registry.ddbuild.io/ci/datadog-agent/agent
BUILD_CONTEXT: Dockerfiles/agent
TAG_SUFFIX: -7-ot-beta
BUILD_ARG: --target test --build-arg DD_AGENT_ARTIFACT=datadog-ot-agent-7*-amd64.tar.xz
BUILD_ARG: --target test --build-arg DD_AGENT_ARTIFACT=datadog-*-7*-amd64.tar.xz
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would having this be a tiny bit safer?

Suggested change
BUILD_ARG: --target test --build-arg DD_AGENT_ARTIFACT=datadog-*-7*-amd64.tar.xz
BUILD_ARG: --target test --build-arg DD_AGENT_ARTIFACT=datadog-{ot-,}agent-7*-amd64.tar.xz

I'm worried that we might use the same pattern in the future and accidentally end up with extra artifacts we don't really want there

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Same for the other BUILD_ARG)

Omnibus::Config.git_cache_dir ENV["OMNIBUS_GIT_CACHE_DIR"]
end

if windows_target?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we break osx_target too?

Comment on lines +69 to +82
if linux_target?
extra_package_file "#{output_config_dir}/etc/datadog-agent/"
end

exclude '\.git*'
exclude 'bundler\/git'

if linux_target? or windows_target?
# the stripper will drop the symbols in a `.debug` folder in the installdir
# we want to make sure that directory is not in the main build, while present
# in the debug package.
strip_build true
debug_path ".debug" # the strip symbols will be in here
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - my guess is you kept the if statements for simplicity because we're testing here, but they could be dropped since we do not support windows yet

cache:
- !reference [.cache_omnibus_ruby_deps, cache]

otel-agent-x64:
Copy link
Member Author

@FlorentClarret FlorentClarret Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how consistent we want to be, but I would call these jobs datadog-otel-agent-*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium review PR review might take time team/agent-delivery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants