Skip to content

Commit a2a3e3f

Browse files
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 #1470
1 parent 5882615 commit a2a3e3f

4 files changed

Lines changed: 81 additions & 588 deletions

File tree

CREDITS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ License: MIT
4646
### [plugin-pagenotfound](https://www.npmjs.com/package/plugin-pagenotfound)
4747
License: MIT
4848

49+
### [plugin-standard-files](https://www.npmjs.com/package/plugin-standard-files)
50+
License: MIT
51+
4952
### [plugin-accessibility-statement](https://www.npmjs.com/package/plugin-accessibility-statement)
5053
License: MIT
5154

helpers/test_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def run_dummy_test(global_translation, url):
4848
TEST_ALL_FUNCS = {
4949
TEST_PAGE_NOT_FOUND: run_dummy_test,
5050
TEST_WEBBKOLL: run_test_privacy_webbkollen,
51-
TEST_STANDARD_FILES:run_test_standard_files,
51+
TEST_STANDARD_FILES: run_dummy_test,
5252
TEST_SITESPEED: run_test_performance_sitespeed_io,
5353
TEST_PA11Y: run_test_a11y_pa11y,
5454
TEST_HTTP: run_test_http_validator,
@@ -78,6 +78,7 @@ def run_dummy_test(global_translation, url):
7878

7979
TEST_USE_SITESPEED = {
8080
TEST_PAGE_NOT_FOUND: 'plugin-pagenotfound',
81+
TEST_STANDARD_FILES: 'plugin-standard-files',
8182
TEST_A11Y_STATEMENT: 'plugin-accessibility-statement',
8283
TEST_LINT_CSS: 'plugin-css',
8384
TEST_LINT_HTML: 'plugin-html',
@@ -86,7 +87,6 @@ def run_dummy_test(global_translation, url):
8687
}
8788

8889
TEST_USE_SITESPEED_TOMORROW = {
89-
TEST_STANDARD_FILES:run_test_standard_files,
9090
TEST_SITESPEED: run_test_performance_sitespeed_io,
9191
TEST_HTTP: run_test_http_validator,
9292
TEST_ENERGY_EFFICIENCY: run_test_energy_efficiency,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"plugin-html": "2026.6.0",
2424
"plugin-javascript": "2026.6.0",
2525
"plugin-pagenotfound": "2026.6.0",
26+
"plugin-standard-files": "2026.6.2",
2627
"plugin-accessibility-statement": "2026.6.0",
2728
"plugin-webperf-core": "2026.6.1"
2829
},

0 commit comments

Comments
 (0)