|
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 |
| 29 | + |
24 | 30 | permissions: |
25 | 31 | contents: read |
| 32 | + id-token: write |
26 | 33 |
|
27 | 34 | env: |
28 | 35 | # Workflow configuration |
|
40 | 47 | OMES_REF: main |
41 | 48 | RUN_ID: ${{ github.run_id }}-throughput-stress |
42 | 49 |
|
| 50 | + # Prometheus version |
| 51 | + PROM_VERSION: "3.8.0" |
| 52 | + |
| 53 | + # Language |
| 54 | + SDK_LANG: "dotnet" |
| 55 | + |
43 | 56 | jobs: |
44 | 57 | throughput-stress: |
45 | 58 | runs-on: ubuntu-latest-4-cores |
@@ -100,7 +113,6 @@ jobs: |
100 | 113 |
|
101 | 114 | - name: Install Prometheus |
102 | 115 | run: | |
103 | | - PROM_VERSION="3.8.0" |
104 | 116 | wget -q https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-amd64.tar.gz |
105 | 117 | tar xzf prometheus-${PROM_VERSION}.linux-amd64.tar.gz |
106 | 118 | sudo mv prometheus-${PROM_VERSION}.linux-amd64/prometheus /usr/local/bin/ |
@@ -132,7 +144,7 @@ jobs: |
132 | 144 | # to give CI a bit more time for visibility consistency |
133 | 145 | ImportDirectoryBuildProps=false go run ./cmd run-scenario-with-worker \ |
134 | 146 | --scenario throughput_stress \ |
135 | | - --language dotnet \ |
| 147 | + --language $SDK_LANG \ |
136 | 148 | --version $(pwd)/.. \ |
137 | 149 | --run-id $RUN_ID \ |
138 | 150 | --duration $TEST_DURATION \ |
@@ -161,13 +173,14 @@ jobs: |
161 | 173 | if: always() |
162 | 174 | run: | |
163 | 175 | DATE=$(date +%Y-%m-%d) |
164 | | - # Use test/ prefix on non-main branches |
165 | | - PREFIX="language=dotnet/date=$DATE" |
166 | | - if [[ "${{ github.ref }}" != "refs/heads/main" ]]; then |
167 | | - PREFIX="test/$PREFIX" |
| 176 | + IS_EXPERIMENT="false" |
| 177 | + # Set as an experiment if we are not on the main branch or input as an experiment |
| 178 | + if [[ "$GH_REF" != "refs/heads/main" || "$IS_EXPERIMENT_INPUT" == "true" ]]; then |
| 179 | + IS_EXPERIMENT="true" |
168 | 180 | fi |
| 181 | + echo "Uploading metrics: is_experiment=$IS_EXPERIMENT, language=$SDK_LANG, date=$DATE" |
169 | 182 | aws s3 cp omes/$RUN_ID.parquet \ |
170 | | - "s3://cloud-data-ingest-prod/github/sdk_load_test/$PREFIX/$RUN_ID.parquet" |
| 183 | + "s3://cloud-data-ingest-prod/github/sdk_load_test/is_experiment=$IS_EXPERIMENT/language=$SDK_LANG/date=$DATE/$RUN_ID.parquet" |
171 | 184 |
|
172 | 185 | - name: Upload logs on failure |
173 | 186 | if: failure() || cancelled() |
|
0 commit comments