Skip to content

Commit 1942aa2

Browse files
authored
Add FXIOS-14220 [perftest] Emit perfherder JSON artifact (#30812)
Bug 2001364 - Ensure perfherder data is output to a JSON file for Firefox iOS performance tests
1 parent b30b964 commit 1942aa2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bitrise.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,8 @@ workflows:
12831283
sed 's/.*=//;s/'\''/"/g' data.txt > test.json
12841284
cat test.json
12851285
python3 perfTestTransform.py
1286+
mkdir -p "$BITRISE_DEPLOY_DIR"
1287+
mv perfherder-data.json $BITRISE_DEPLOY_DIR
12861288
12871289
before_run:
12881290
- 1_git_clone_and_post_clone
@@ -1613,6 +1615,9 @@ workflows:
16131615
sed 's/.*=//;s/'\''/"/g' data.txt > test.json
16141616
cat test.json
16151617
python3 perfTestTransform.py
1618+
mkdir -p "$BITRISE_DEPLOY_DIR"
1619+
mv perfherder-data.json $BITRISE_DEPLOY_DIR
1620+
16161621
meta:
16171622
bitrise.io:
16181623
stack: osx-xcode-16.2.x

test-fixtures/perfTestTransform.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
PERFHERDER_DATA["suites"].append(suite)
2222

2323
print("PERFHERDER_DATA:", json.dumps(PERFHERDER_DATA))
24+
25+
with open("perfherder-data.json", "w") as f:
26+
f.write(json.dumps(PERFHERDER_DATA))

0 commit comments

Comments
 (0)