-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusage_scenario_staging_homepage.yml
More file actions
38 lines (34 loc) · 1.5 KB
/
usage_scenario_staging_homepage.yml
File metadata and controls
38 lines (34 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Branch Magazin Default Test
author: Arne Tarara <arne@green-coding.io>
description: Measures the rendering energy of branch magazine - default variant
compose-file: !include-gmt-helper gmt-playwright-with-cache-v1.0.0.yml
flow:
- name: Warmup and Caching
hidden: true
container: gmt-playwright-nodejs
commands:
- type: playwright
command: await gmtPlaywrightCache("https://branch-staging.climateaction.tech", 5);
- name: "Go to home page simple"
container: gmt-playwright-nodejs
commands:
- type: playwright
command: await page.goto("https://branch-staging.climateaction.tech")
- type: console
command: sleep 5
- name: Dump and validate Cache Log (Load and idle)
hidden: true
container: squid
commands:
- type: console
command: cat /apps/squid/var/logs/access.log
read-notes-stdout: true
log-stdout: true
log-stderr: true
- type: console
command: grep 'TCP_MEM_HIT/' /apps/squid/var/logs/access.log #validate that TCP_MEM_HITs present
# This is sadly too strict. Pages fingerprint you all the time and a new request might get a new fingerprint that will not be cached
# But if you have a page that does not fingerprint we recommend having this uncommented, as it will warn you if resources bypass the cache pre-loading
# - type: console
# command: awk '/TCP_MISS\// { found=1 } END { exit found }' /apps/squid/var/logs/access.log # ensure no TCP_MISSes present