Skip to content

Deploy our OCI artifact to a private registry#23931

Merged
dd-mergequeue[bot] merged 4 commits intomainfrom
chouquette/deploy_oci_to_ecr
Mar 21, 2024
Merged

Deploy our OCI artifact to a private registry#23931
dd-mergequeue[bot] merged 4 commits intomainfrom
chouquette/deploy_oci_to_ecr

Conversation

@chouquette
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR starts deploying our OCI artifacts to an internal registry.

Motivation

Additional Notes

This is probably a bit too datadog-agent centric and should be reworked to have a base job that handles multiple flavors, but we'll see about that when we get there

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

@chouquette chouquette added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation [deprecated] team/agent-build-and-releases BaRX labels Mar 20, 2024
@chouquette chouquette requested review from a team as code owners March 20, 2024 15:28
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💬 Suggestion: ‏Can we use registry.ddbuild.io/ci/remote-updates/datadog-agent:${VERSION}? That'd match the tracers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For registry.ddbuild.io/ci/remote-updates/ no problem at all on my end.

Regarding the image name itself, I believe @vboulineau wanted to have a more descriptive name than datadog-agent.
The prefix/folder might be enough to disambiguate what kind of datadog-package though

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

True, the name may change again, but it's easy to change.

@agent-platform-auto-pr
Copy link
Copy Markdown
Contributor

agent-platform-auto-pr Bot commented Mar 20, 2024

[Fast Unit Tests Report]

On pipeline 30552942 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_deb-arm64-py3
  • tests_deb-x64-py3
  • tests_flavor_dogstatsd_deb-x64
  • tests_flavor_heroku_deb-x64
  • tests_flavor_iot_deb-x64
  • tests_rpm-arm64-py3
  • tests_rpm-x64-py3
  • tests_windows-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-developer-experience

@chouquette chouquette force-pushed the chouquette/deploy_oci_to_ecr branch from 5766814 to a4dbadf Compare March 20, 2024 16:55
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Mar 20, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=30552942 --os-family=ubuntu

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Mar 20, 2024

Regression Detector

Regression Detector Results

Run ID: d32d6195-9d90-49db-ba27-3d48036700ef
Baseline: 5cc2544
Comparison: 42ee9e0

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

No significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI
file_to_blackhole % cpu utilization -2.01 [-8.22, +4.20]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI
pycheck_1000_100byte_tags % cpu utilization +2.17 [-2.77, +7.12]
basic_py_check % cpu utilization +1.96 [-0.58, +4.50]
file_tree memory utilization +0.68 [+0.57, +0.78]
idle memory utilization +0.09 [+0.05, +0.13]
trace_agent_json ingress throughput +0.04 [+0.01, +0.07]
uds_dogstatsd_to_api ingress throughput +0.02 [-0.19, +0.22]
trace_agent_msgpack ingress throughput +0.01 [-0.00, +0.01]
otel_to_otel_logs ingress throughput -0.00 [-0.47, +0.47]
process_agent_standard_check memory utilization -0.00 [-0.05, +0.05]
tcp_dd_logs_filter_exclude ingress throughput -0.00 [-0.04, +0.04]
process_agent_standard_check_with_stats memory utilization -0.19 [-0.23, -0.14]
uds_dogstatsd_to_api_cpu % cpu utilization -0.19 [-2.95, +2.56]
process_agent_real_time_mode memory utilization -0.70 [-0.75, -0.66]
tcp_syslog_to_blackhole ingress throughput -1.21 [-1.30, -1.13]
file_to_blackhole % cpu utilization -2.01 [-8.22, +4.20]

Explanation

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

@chouquette chouquette force-pushed the chouquette/deploy_oci_to_ecr branch from a4dbadf to 42ee9e0 Compare March 21, 2024 15:04
@chouquette
Copy link
Copy Markdown
Contributor Author

/merge

@dd-devflow
Copy link
Copy Markdown

dd-devflow Bot commented Mar 21, 2024

🚂 MergeQueue

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.

Use /merge -c to cancel this operation!

Copy link
Copy Markdown
Contributor

@amenasria amenasria left a comment

Choose a reason for hiding this comment

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

LGTM for Agent CI Exp owned file !

@dd-devflow
Copy link
Copy Markdown

dd-devflow Bot commented Mar 21, 2024

🚂 MergeQueue

Added to the queue.

There are 2 builds ahead of this PR! (estimated merge in less than 28m)

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue Bot merged commit 108a811 into main Mar 21, 2024
@dd-mergequeue dd-mergequeue Bot deleted the chouquette/deploy_oci_to_ecr branch March 21, 2024 17:38
@github-actions github-actions Bot added this to the 7.53.0 milestone Mar 21, 2024
alexgallotta pushed a commit that referenced this pull request May 9, 2024
* deploy oci image to an internal registry

* start publishing the actual pipeline artifact

* update image name

* use the same version pattern as other packages

this way we won't need to fiddle with the version on the release
management side, we can just use it as is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed [deprecated] team/agent-build-and-releases BaRX qa/no-code-change No code change in Agent code requiring validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants