Skip to content

fix(ci): Prevent workflow from triggering unless previous workflow succeeds #21579

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

Merged
merged 7 commits into from
Oct 22, 2024

Conversation

devindford
Copy link
Contributor

@devindford devindford commented Oct 22, 2024

  • Adds conditional to the deploy jobs to only run if the trigger workflow has a status of success

Context:
https://github.com/orgs/community/discussions/26238
https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run

@devindford devindford requested a review from a team as a code owner October 22, 2024 13:54
@bits-bot
Copy link

bits-bot commented Oct 22, 2024

CLA assistant check
All committers have signed the CLA.

@jszwedko jszwedko added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Oct 22, 2024
Copy link
Member

@pront pront left a comment

Choose a reason for hiding this comment

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

Thank you for the fix @devindford.

@pront pront enabled auto-merge October 22, 2024 14:23
@pront pront added this pull request to the merge queue Oct 22, 2024
@datadog-vectordotdev
Copy link

Datadog Report

Branch report: devin.ford/WEB-5465
Commit report: 1b5a21f
Test service: vector

✅ 0 Failed, 7 Passed, 0 Skipped, 25.43s Total Time

@pront pront changed the title fix(gh_action): Prevent workflow from triggering unless previous workflow succeeds fix(ci): Prevent workflow from triggering unless previous workflow succeeds Oct 22, 2024
Copy link

Regression Detector Results

Run ID: e198a1a2-723d-40ca-a1e8-46ab189b0497 Metrics dashboard

Baseline: 75d59e9
Comparison: 29b2d00

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 links
file_to_blackhole egress throughput -3.76 [-7.92, +0.40]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
splunk_hec_route_s3 ingress throughput +3.49 [+3.17, +3.82]
datadog_agent_remap_blackhole ingress throughput +2.12 [+2.03, +2.21]
syslog_log2metric_humio_metrics ingress throughput +2.00 [+1.84, +2.16]
datadog_agent_remap_datadog_logs_acks ingress throughput +1.89 [+1.74, +2.05]
otlp_grpc_to_blackhole ingress throughput +1.17 [+0.98, +1.36]
http_to_s3 ingress throughput +1.12 [+0.95, +1.29]
syslog_regex_logs2metric_ddmetrics ingress throughput +0.81 [+0.65, +0.97]
datadog_agent_remap_datadog_logs ingress throughput +0.61 [+0.41, +0.81]
http_to_http_acks ingress throughput +0.05 [-0.44, +0.54]
http_to_http_noack ingress throughput +0.01 [-0.05, +0.06]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.02, +0.03]
splunk_hec_indexer_ack_blackhole ingress throughput -0.00 [-0.02, +0.02]
splunk_hec_to_splunk_hec_logs_noack ingress throughput -0.00 [-0.02, +0.02]
http_to_http_json ingress throughput -0.00 [-0.05, +0.05]
syslog_loki ingress throughput -0.06 [-0.14, +0.03]
socket_to_socket_blackhole ingress throughput -0.14 [-0.22, -0.05]
otlp_http_to_blackhole ingress throughput -0.27 [-0.35, -0.19]
fluent_elasticsearch ingress throughput -0.53 [-1.06, +0.01]
syslog_log2metric_splunk_hec_metrics ingress throughput -0.77 [-0.89, -0.65]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput -0.99 [-1.08, -0.90]
http_text_to_http_json ingress throughput -1.10 [-1.24, -0.95]
http_elasticsearch ingress throughput -1.35 [-1.50, -1.21]
syslog_splunk_hec_logs ingress throughput -1.43 [-1.56, -1.30]
datadog_agent_remap_blackhole_acks ingress throughput -2.09 [-2.19, -1.99]
syslog_humio_logs ingress throughput -3.38 [-3.57, -3.20]
file_to_blackhole egress throughput -3.76 [-7.92, +0.40]

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".

Copy link

Regression Detector Results

Run ID: 2722cddd-19f2-46ec-af3d-d4298c8ea3cb Metrics dashboard

Baseline: 5d8736f
Comparison: 4a44e41

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 links
file_to_blackhole egress throughput -0.96 [-5.10, +3.18]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
syslog_humio_logs ingress throughput +2.46 [+2.30, +2.63]
otlp_grpc_to_blackhole ingress throughput +2.26 [+2.06, +2.45]
syslog_loki ingress throughput +1.84 [+1.76, +1.91]
datadog_agent_remap_datadog_logs_acks ingress throughput +0.99 [+0.84, +1.13]
splunk_hec_route_s3 ingress throughput +0.92 [+0.59, +1.25]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput +0.75 [+0.64, +0.86]
http_elasticsearch ingress throughput +0.70 [+0.56, +0.84]
datadog_agent_remap_datadog_logs ingress throughput +0.68 [+0.52, +0.83]
socket_to_socket_blackhole ingress throughput +0.47 [+0.41, +0.52]
syslog_splunk_hec_logs ingress throughput +0.45 [+0.33, +0.57]
http_to_s3 ingress throughput +0.42 [+0.24, +0.59]
syslog_log2metric_humio_metrics ingress throughput +0.15 [+0.00, +0.30]
http_to_http_json ingress throughput +0.02 [-0.04, +0.08]
splunk_hec_indexer_ack_blackhole ingress throughput +0.00 [-0.02, +0.02]
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.00 [-0.02, +0.02]
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.03, +0.03]
http_to_http_noack ingress throughput -0.00 [-0.06, +0.06]
http_to_http_acks ingress throughput -0.02 [-0.51, +0.47]
datadog_agent_remap_blackhole_acks ingress throughput -0.05 [-0.16, +0.07]
http_text_to_http_json ingress throughput -0.80 [-1.01, -0.58]
datadog_agent_remap_blackhole ingress throughput -0.84 [-0.98, -0.71]
otlp_http_to_blackhole ingress throughput -0.85 [-0.93, -0.77]
file_to_blackhole egress throughput -0.96 [-5.10, +3.18]
syslog_log2metric_splunk_hec_metrics ingress throughput -1.38 [-1.50, -1.26]
fluent_elasticsearch ingress throughput -1.46 [-1.99, -0.93]
syslog_regex_logs2metric_ddmetrics ingress throughput -2.10 [-2.26, -1.95]

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".

Merged via the queue into master with commit 4a44e41 Oct 22, 2024
52 checks passed
@pront pront deleted the devin.ford/WEB-5465 branch October 22, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Changes in this PR do not need user-facing explanations in the release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants