Skip to content

Commit

Permalink
Setup direct tests.
Browse files Browse the repository at this point in the history
Cleanup configuration for direct tests. Use latest and greatest
configuration. Removed secrets to make it easy to try locally,
lets add that in a smarter way later so we can make it easy to
run the configuration locally.

There's one upstream bug in Browsertime that needs to be fixed:
sitespeedio/browsertime#2180

Bug: T374590
Change-Id: I2e074d23a01c94c691f5a884186d067d745843e2
  • Loading branch information
soulgalore committed Sep 16, 2024
1 parent e67eba8 commit ef06286
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
17 changes: 9 additions & 8 deletions config/direct.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../secrets.json",
"utc": true,
"gzipHAR": true,
"html": {
Expand All @@ -15,10 +14,6 @@
"coach"
]
},
"graphite": {
"messages": ["pageSummary", "run"]
},
"copyLatestFilesToBaseGraphiteNamespace": true,
"android": true,
"browsertime": {
"cpu": true,
Expand All @@ -31,9 +26,15 @@
"cacheClearRaw": true,
"video": true,
"visualMetrics": true,
"visualMetricsPortable": true,
"androidRooted": true,
"androidVerifyNetwork": true,
"android": {
"gnirehtet": true,
"rooted": true
},
"connectivity": {
"engine": "throttle",
"profile": "4g"
},
"pageCompleteCheckNetworkIdle": true,
"chrome": {
"traceCategory": ["disabled-by-default-v8.cpu_profiler"],
"collectConsoleLog": true,
Expand Down
4 changes: 0 additions & 4 deletions direct.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash

# Python3 is installed in two locations in the container
# make sure we use the correct one in Visual Metrics
export PYTHON=/usr/local/bin/python3

# Run tests directly against Wikipedia
FILE=$1
BROWSER=$2
Expand Down
5 changes: 5 additions & 0 deletions tests/direct/enwiki.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
https://en.m.wikipedia.org/wiki/Facebook
https://en.m.wikipedia.org/wiki/Barack_Obama
https://en.m.wikipedia.org/wiki/Sweden
https://en.m.wikipedia.org/wiki/Main_Page
https://www.wikipedia.org
6 changes: 0 additions & 6 deletions tests/direct/firstView.txt

This file was deleted.

3 changes: 3 additions & 0 deletions tests/direct/group0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://m.mediawiki.org/wiki/MediaWiki
https://m.mediawiki.org/wiki/Download
https://m.mediawiki.org/wiki/How_to_contribute
5 changes: 5 additions & 0 deletions tests/direct/group1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
https://it.m.wikipedia.org/wiki/Jannik_Sinner
https://it.m.wikipedia.org/wiki/Juventus_Football_Club
https://it.m.wikipedia.org/wiki/Rai
https://it.m.wikipedia.org/wiki/Facebook
https://it.m.wikipedia.org/wiki/Italia

0 comments on commit ef06286

Please sign in to comment.