-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(secret): Prevent useless usage of Gitlab token #29950
Conversation
Regression DetectorRegression Detector ResultsRun ID: 5959fd20-9d08-42b8-99df-7a93807fb6b3 Metrics dashboard Target profiles Baseline: 19c2807 Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
---|---|---|---|---|---|---|
➖ | pycheck_lots_of_tags | % cpu utilization | +2.78 | [+0.18, +5.38] | 1 | Logs |
➖ | uds_dogstatsd_to_api_cpu | % cpu utilization | +1.67 | [+0.93, +2.40] | 1 | Logs |
➖ | basic_py_check | % cpu utilization | +0.84 | [-1.87, +3.55] | 1 | Logs |
➖ | tcp_dd_logs_filter_exclude | ingress throughput | -0.00 | [-0.01, +0.01] | 1 | Logs |
➖ | file_to_blackhole_0ms_latency | egress throughput | -0.01 | [-0.35, +0.33] | 1 | Logs |
➖ | file_to_blackhole_500ms_latency | egress throughput | -0.01 | [-0.26, +0.24] | 1 | Logs |
➖ | uds_dogstatsd_to_api | ingress throughput | -0.01 | [-0.11, +0.08] | 1 | Logs |
➖ | file_to_blackhole_100ms_latency | egress throughput | -0.05 | [-0.28, +0.18] | 1 | Logs |
➖ | file_to_blackhole_300ms_latency | egress throughput | -0.10 | [-0.28, +0.08] | 1 | Logs |
➖ | file_to_blackhole_1000ms_latency | egress throughput | -0.41 | [-0.88, +0.07] | 1 | Logs |
➖ | file_tree | memory utilization | -0.44 | [-0.56, -0.31] | 1 | Logs |
➖ | idle_all_features | memory utilization | -0.45 | [-0.55, -0.34] | 1 | Logs bounds checks dashboard |
➖ | idle | memory utilization | -0.69 | [-0.75, -0.62] | 1 | Logs bounds checks dashboard |
➖ | tcp_syslog_to_blackhole | ingress throughput | -0.86 | [-0.95, -0.77] | 1 | Logs |
➖ | otel_to_otel_logs | ingress throughput | -1.06 | [-1.86, -0.26] | 1 | Logs |
Bounds Checks
perf | experiment | bounds_check_name | replicates_passed |
---|---|---|---|
❌ | idle | memory_usage | 7/10 |
✅ | file_to_blackhole_0ms_latency | memory_usage | 10/10 |
✅ | file_to_blackhole_1000ms_latency | memory_usage | 10/10 |
✅ | file_to_blackhole_100ms_latency | memory_usage | 10/10 |
✅ | file_to_blackhole_300ms_latency | memory_usage | 10/10 |
✅ | file_to_blackhole_500ms_latency | memory_usage | 10/10 |
✅ | idle_all_features | memory_usage | 10/10 |
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:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
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.
-
Its configuration does not mark it "erratic".
52b4c2a
to
59b7898
Compare
Gitlab CI Configuration ChangesModified Jobsgenerate-flakes-finder-pipeline generate-flakes-finder-pipeline:
artifacts:
paths:
- $CI_PROJECT_DIR/flake-finder-gitlab-ci.yml
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
needs:
+ - compute_gitlab_ci_config
- deploy_deb_testing-a7_arm64
- deploy_deb_testing-a7_x64
- deploy_rpm_testing-a7_arm64
- deploy_rpm_testing-a7_x64
- deploy_suse_rpm_testing_arm64-a7
- deploy_suse_rpm_testing_x64-a7
- deploy_windows_testing-a7
- qa_installer_oci
- qa_agent_oci
- qa_cws_instrumentation
- qa_dca
- qa_dogstatsd
- qa_agent
- qa_agent_ot
rules:
- if: $RUN_E2E_TESTS == "off"
when: never
- if: $BUCKET_BRANCH != "nightly" && $BUCKET_BRANCH != "oldnightly" && $BUCKET_BRANCH
!= "dev"
when: never
- if: $DEPLOY_AGENT == "true" || $DDR_WORKFLOW_ID != null
- if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
when: never
- allow_failure: true
when: manual
script:
- - GITLAB_TOKEN=$($CI_PROJECT_DIR/tools/ci/fetch_secret.sh $GITLAB_FULL_API_TOKEN)
- || exit $?; export GITLAB_TOKEN
- inv -e testwasher.generate-flake-finder-pipeline
stage: e2e
tags:
- arch:amd64 Changes Summary
ℹ️ Diff available in the job log. |
59b7898
to
2f1cabd
Compare
/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable DEPLOY_AGENT=true --variable RUN_UNIT_TESTS=on --variable RUN_KMT_TESTS=on |
🚂 Gitlab pipeline started Started pipeline #46160737 |
[Fast Unit Tests Report] On pipeline 46704794 (CI Visibility). The following jobs did not run any unit tests: Jobs:
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-devx-help |
@@ -174,13 +175,21 @@ def get_tests_family(self, test_name_list): | |||
|
|||
|
|||
@task | |||
def generate_flake_finder_pipeline(ctx, n=3): | |||
def generate_flake_finder_pipeline(ctx, n=3, generate_config=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ question
Should we require all jobs calling the test washer to depend on the gitlab config generation artifact? Otherwise we should default to true
to keep the behavior as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should, so that we don't need to use a gitlab secret in the test washer related jobs. That's normally what I did there
899fcd7
to
6dcdc38
Compare
/merge |
🚂 MergeQueue: pull request added to the queue The median merge time in Use |
What does this PR do?
Prevent usage of Gitlab token when it's not necessary
Motivation
Less usage of secrets
Describe how to test/QA your changes
The compare the generated content. Some spurious
-
are removed with the new behaviour, and the execution of the testwasher generation is instantaneous.Possible Drawbacks / Trade-offs
I had to add the
- !reference [.on_deploy_nightly_repo_branch]
condition to generate thecompute_gitlab_ci_config
when it's necessary for thegenerate_testwasher
job.Additional Notes