|
21 | 21 | required: false |
22 | 22 | default: 360 |
23 | 23 | type: number |
| 24 | + is_experiment: |
| 25 | + description: 'Mark this run as an experiment (excluded from nightly dashboards)' |
| 26 | + required: false |
| 27 | + default: false |
| 28 | + type: boolean |
24 | 29 |
|
25 | 30 | permissions: |
26 | 31 | contents: read |
| 32 | + id-token: write |
27 | 33 |
|
28 | 34 | env: |
29 | 35 | # Workflow configuration |
|
41 | 47 | OMES_REF: main |
42 | 48 | RUN_ID: ${{ github.run_id }}-throughput-stress |
43 | 49 |
|
| 50 | + # Prometheus version |
| 51 | + PROM_VERSION: "3.8.0" |
| 52 | + |
| 53 | + # Language |
| 54 | + SDK_LANG: "python" |
| 55 | + |
44 | 56 | jobs: |
45 | 57 | throughput-stress: |
46 | 58 | runs-on: ubuntu-latest-4-cores |
@@ -109,7 +121,6 @@ jobs: |
109 | 121 |
|
110 | 122 | - name: Install Prometheus |
111 | 123 | run: | |
112 | | - PROM_VERSION="3.8.0" |
113 | 124 | wget -q https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-amd64.tar.gz |
114 | 125 | tar xzf prometheus-${PROM_VERSION}.linux-amd64.tar.gz |
115 | 126 | sudo mv prometheus-${PROM_VERSION}.linux-amd64/prometheus /usr/local/bin/ |
@@ -141,7 +152,7 @@ jobs: |
141 | 152 | # to give CI a bit more time for visibility consistency |
142 | 153 | go run ./cmd run-scenario-with-worker \ |
143 | 154 | --scenario throughput_stress \ |
144 | | - --language python \ |
| 155 | + --language $SDK_LANG \ |
145 | 156 | --version $(pwd)/.. \ |
146 | 157 | --run-id $RUN_ID \ |
147 | 158 | --duration $TEST_DURATION \ |
@@ -170,13 +181,14 @@ jobs: |
170 | 181 | if: always() |
171 | 182 | run: | |
172 | 183 | DATE=$(date +%Y-%m-%d) |
173 | | - # Use test/ prefix on non-main branches |
174 | | - PREFIX="language=python/date=$DATE" |
175 | | - if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then |
176 | | - PREFIX="test/$PREFIX" |
| 184 | + IS_EXPERIMENT="false" |
| 185 | + # Set as an experiment if we are not on the main branch or input as an experiment |
| 186 | + if [[ "$GH_REF" != "refs/heads/main" || "$IS_EXPERIMENT_INPUT" == "true" ]]; then |
| 187 | + IS_EXPERIMENT="true" |
177 | 188 | fi |
| 189 | + echo "Uploading metrics: is_experiment=$IS_EXPERIMENT, language=$SDK_LANG, date=$DATE" |
178 | 190 | aws s3 cp omes/$RUN_ID.parquet \ |
179 | | - "s3://cloud-data-ingest-prod/github/sdk_load_test/$PREFIX/$RUN_ID.parquet" |
| 191 | + "s3://cloud-data-ingest-prod/github/sdk_load_test/is_experiment=$IS_EXPERIMENT/language=$SDK_LANG/date=$DATE/$RUN_ID.parquet" |
180 | 192 |
|
181 | 193 | - name: Upload logs on failure |
182 | 194 | if: failure() || cancelled() |
|
0 commit comments