Commit a2a3e3f
committed
feat: run standard-files test via browser-based plugin
Route test id 9 (standard files: robots.txt, sitemap.xml, RSS/Atom feed,
security.txt) through the sitespeed.io plugin plugin-standard-files instead
of the requests-based Python implementation:
- test_helper: move TEST_STANDARD_FILES into TEST_USE_SITESPEED (run via the
shared sitespeed pass + plugin-webperf-core aggregation), dummy in
TEST_ALL_FUNCS, drop from the TOMORROW roadmap.
- standard_files.py: replace the 600-line requests-based checks with a thin
shim that runs sitespeed with the plugin and reads the standard-files
issues out of webperf-core.json (kept as a standalone, requests-free
fallback for test id 9).
- package.json: add plugin-standard-files 2026.6.2 (plugin-webperf-core is
already 2026.6.1 on main, which aggregates the plugin's summary).
- CREDITS: attribute plugin-standard-files.
Fetching these files via real headless Chrome uses a genuine browser TLS
fingerprint, so enterprise WAFs (Akamai, Imperva, F5) no longer drop the
connection the way they blocked python-requests. This is what made the old
test return empty results on sites like bolagsverket.se.
Closes #14701 parent 5882615 commit a2a3e3f
4 files changed
Lines changed: 81 additions & 588 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments