Skip to content

Commit 507a2fa

Browse files
feat(op-accentance-tests): authorship metrics transform. (#16116)
* feat(op-accentance-tests): authorship metrics transform. Transform them into folders by date, for easier ingestion into BigQuery. * Update .circleci/config.yml Co-authored-by: Raffaele <[email protected]> * Update .circleci/config.yml --------- Co-authored-by: Raffaele <[email protected]>
1 parent 862a7cd commit 507a2fa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,16 +1694,21 @@ jobs:
16941694
- utils/checkout-with-mise
16951695
- run:
16961696
name: Collect devnet metrics for op-acceptance-tests
1697-
command: ./devnet-sdk/scripts/metrics-collect-authorship.sh op-acceptance-tests/tests > .metrics--authorship--op-acceptance-tests
1697+
command: |
1698+
./devnet-sdk/scripts/metrics-collect-authorship.sh op-acceptance-tests/tests > .metrics--authorship--op-acceptance-tests
1699+
echo "Wrote file .metrics--authorship--op-acceptance-tests"
16981700
- gcp-cli/install
16991701
- gcp-oidc-authenticate:
17001702
gcp_cred_config_file_path: /tmp/gcp_cred_config.json
17011703
oidc_token_file_path: /tmp/oidc_token.json
17021704
- run:
17031705
name: Store artifact in Bucket
17041706
command: |
1705-
gsutil cp .metrics--authorship--op-acceptance-tests gs://oplabs-tools-data-public-metrics/metrics-authorship/metrics
1706-
gsutil cp .metrics--authorship--op-acceptance-tests gs://oplabs-tools-data-public-metrics/metrics-authorship/metrics-$CIRCLE_SHA1
1707+
CURRENT_DATE=$(date '+%Y-%m-%d')
1708+
FOLDER_NAME="dt=$CURRENT_DATE"
1709+
1710+
# Upload to the date-partitioned folder structure
1711+
gsutil cp .metrics--authorship--op-acceptance-tests gs://oplabs-tools-data-public-metrics/metrics-authorship/$FOLDER_NAME/metrics-$CIRCLE_SHA1.csv
17071712
17081713
17091714
workflows:

0 commit comments

Comments
 (0)