Skip to content

Commit 3735024

Browse files
authored
chore: update test result/coverage filenames (#2113)
1 parent f2e6cf5 commit 3735024

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/postgres.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ jobs:
9595
working-directory: tools/postgres
9696
run: |
9797
poetry install --no-interaction --no-ansi
98-
poetry run pytest test_purge_ttl.py -v --junit-xml="../../workflow/test-results/${GITHUB_RUN_NUMBER}-${GITHUB_JOB}-utils_tests.xml"
98+
WORKFLOW=$(echo "${GITHUB_WORKFLOW}" | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
99+
poetry run pytest test_purge_ttl.py -v --junit-xml="../../workflow/test-results/${GITHUB_RUN_NUMBER}__$(date +%s)__$(basename ${GITHUB_REPOSITORY})__${WORKFLOW}__postgres_utils__results.xml"
99100
env:
100101
SYNC_SYNCSTORAGE__DATABASE_URL: postgresql://test:[email protected]/syncstorage
101102

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ SYNCSTORAGE_LOAD_TEST_DIR := $(TOOLS_DIR)/syncstorage-loadtest
2525
RUST_LOG ?= debug
2626

2727
# In order to be consumed by the ETE Test Metric Pipeline, files need to follow a strict naming
28-
# convention: {job_number}__{utc_epoch_datetime}__{workflow}__{test_suite}__results{-index}.xml
29-
# TODO: update workflow name appropriately
30-
WORKFLOW := build-deploy
28+
# convention: {job_number}__{utc_epoch_datetime}__{repository}__{workflow}__{test_suite}__results{-index}.xml
3129
EPOCH_TIME := $(shell date +"%s")
30+
WORKFLOW := $(shell echo "$(GITHUB_WORKFLOW)" | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
3231
TEST_RESULTS_DIR ?= workflow/test-results
3332
TEST_PROFILE := $(if $(or $(CIRCLECI),$(GITHUB_ACTIONS)),ci,default)
3433
TEST_FILE_PREFIX := $(if $(GITHUB_ACTIONS),$(GITHUB_RUN_NUMBER)__$(EPOCH_TIME)__$(notdir $(GITHUB_REPOSITORY))__$(WORKFLOW)__)

0 commit comments

Comments
 (0)