|
| 1 | +env: |
| 2 | + ELASTIC_PR_COMMENTS_ENABLED: 'true' |
| 3 | + ELASTIC_GITHUB_BUILD_COMMIT_STATUS_ENABLED: 'true' |
| 4 | + GITHUB_BUILD_COMMIT_STATUS_CONTEXT: kibana-entity-store-performance-from-pr |
| 5 | + |
| 6 | +steps: |
| 7 | + - group: 'Notify if missing labels' |
| 8 | + if: "build.env('GITHUB_PR_LABELS') !~ /ci:entity-store-performance/" |
| 9 | + |
| 10 | + steps: |
| 11 | + - command: | |
| 12 | + ts-node .buildkite/scripts/lifecycle/comment_on_pr.ts \ |
| 13 | + --message "Entity store performance tests require the \`ci:entity-store-performance\` label. Please add the label and trigger the job through the checkbox again." \ |
| 14 | + --context "entity-store-performance-job" \ |
| 15 | + --clear-previous |
| 16 | + label: Comment missing labels |
| 17 | + agents: |
| 18 | + provider: gcp |
| 19 | + image: family/kibana-ubuntu-2404 |
| 20 | + imageProject: elastic-images-prod |
| 21 | + machineType: n2-standard-2 |
| 22 | + timeout_in_minutes: 5 |
| 23 | +
|
| 24 | + - group: 'Entity Store Performance Tests' |
| 25 | + if: "build.env('GITHUB_PR_LABELS') =~ /ci:entity-store-performance/" |
| 26 | + |
| 27 | + steps: |
| 28 | + - command: .buildkite/scripts/lifecycle/pre_build.sh |
| 29 | + label: Pre-Build |
| 30 | + timeout_in_minutes: 10 |
| 31 | + agents: |
| 32 | + provider: gcp |
| 33 | + image: family/kibana-ubuntu-2404 |
| 34 | + imageProject: elastic-images-prod |
| 35 | + machineType: n2-standard-2 |
| 36 | + retry: |
| 37 | + automatic: |
| 38 | + - exit_status: '*' |
| 39 | + limit: 1 |
| 40 | + |
| 41 | + - command: | |
| 42 | + ts-node .buildkite/scripts/lifecycle/comment_on_pr.ts \ |
| 43 | + --message "Entity store performance tests started at: $BUILDKITE_BUILD_URL" \ |
| 44 | + --context "entity-store-performance-job" \ |
| 45 | + --clear-previous |
| 46 | + label: Comment with job URL |
| 47 | + agents: |
| 48 | + provider: gcp |
| 49 | + image: family/kibana-ubuntu-2404 |
| 50 | + imageProject: elastic-images-prod |
| 51 | + machineType: n2-standard-2 |
| 52 | + timeout_in_minutes: 5 |
| 53 | +
|
| 54 | + - wait: ~ |
| 55 | + |
| 56 | + - command: .buildkite/scripts/steps/build_kibana.sh |
| 57 | + label: Build Kibana Distribution |
| 58 | + agents: |
| 59 | + provider: gcp |
| 60 | + image: family/kibana-ubuntu-2404 |
| 61 | + imageProject: elastic-images-prod |
| 62 | + machineType: n2-standard-8 |
| 63 | + preemptible: true |
| 64 | + diskSizeGb: 125 |
| 65 | + if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''" |
| 66 | + timeout_in_minutes: 90 |
| 67 | + key: build |
| 68 | + retry: |
| 69 | + automatic: |
| 70 | + - exit_status: '-1' |
| 71 | + limit: 3 |
| 72 | + |
| 73 | + - command: .buildkite/scripts/steps/cloud/build_and_deploy.sh |
| 74 | + env: |
| 75 | + ES_ZONE_COUNT: 2 |
| 76 | + ES_HOT_TIER_MEMORY_SIZE: 8192 |
| 77 | + label: 'Build and Deploy to Cloud' |
| 78 | + agents: |
| 79 | + provider: gcp |
| 80 | + image: family/kibana-ubuntu-2404 |
| 81 | + imageProject: elastic-images-prod |
| 82 | + machineType: n2-standard-2 |
| 83 | + preemptible: true |
| 84 | + timeout_in_minutes: 30 |
| 85 | + depends_on: build |
| 86 | + retry: |
| 87 | + automatic: |
| 88 | + - exit_status: '-1' |
| 89 | + limit: 3 |
| 90 | + |
| 91 | + - wait: ~ |
| 92 | + |
| 93 | + - command: .buildkite/scripts/steps/entity_store_performance/run_performance_tests_orchestrator.sh |
| 94 | + label: 'Run Entity Store Performance Tests' |
| 95 | + env: |
| 96 | + # SECURITY_DOCS_GEN_BRANCH: branch-name # Optional: checkout a specific branch from security-documents-generator repo (default: main branch) |
| 97 | + # SECURITY_DOCS_GEN_PR: 123 # Optional: checkout a specific PR from security-documents-generator repo (alternative to SECURITY_DOCS_GEN_BRANCH) |
| 98 | + PERF_INTERVAL: 100 |
| 99 | + PERF_COUNT: 1 |
| 100 | + PERF_SAMPLING_INTERVAL: 1 |
| 101 | + PERF_DATA_FILE: standard |
| 102 | + # PERF_NO_TRANSFORMS: true # Optional: set to "true" to disable transforms (default: false) |
| 103 | + # Optional: Baseline comparison configuration |
| 104 | + PERF_BASELINE_FILE: baselines/baseline-v1_0 # Optional: specific baseline file to use |
| 105 | + PERF_DEGRADATION_THRESHOLD: 35 # Optional: degradation threshold % (default: 25) |
| 106 | + PERF_WARNING_THRESHOLD: 25 # Optional: warning threshold % (default: 15) |
| 107 | + PERF_IMPROVEMENT_THRESHOLD: 30 # Optional: improvement threshold % (default: 15) |
| 108 | + agents: |
| 109 | + provider: gcp |
| 110 | + image: family/kibana-ubuntu-2404 |
| 111 | + imageProject: elastic-images-prod |
| 112 | + machineType: n2-standard-2 |
| 113 | + timeout_in_minutes: 60 |
| 114 | + retry: |
| 115 | + automatic: |
| 116 | + - exit_status: '-1' |
| 117 | + limit: 1 |
| 118 | + |
| 119 | + - wait: ~ |
| 120 | + |
| 121 | + - command: .buildkite/scripts/lifecycle/post_build.sh |
| 122 | + label: Post-Build |
| 123 | + agents: |
| 124 | + provider: gcp |
| 125 | + image: family/kibana-ubuntu-2404 |
| 126 | + imageProject: elastic-images-prod |
| 127 | + machineType: n2-standard-2 |
0 commit comments