Skip to content

Commit 9776399

Browse files
committed
Merge branch 'main' of github.com:HTTPArchive/almanac.httparchive.org into production
2 parents 32e013b + 082e857 commit 9776399

File tree

900 files changed

+37023
-1406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

900 files changed

+37023
-1406
lines changed

.github/linters/.python-lint

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ persistent=yes
3131
# Specify a configuration file.
3232
#rcfile=
3333

34-
# When enabled, pylint would attempt to guess common misconfiguration and emit
35-
# user-friendly hints instead of false-positive error messages
36-
suggestion-mode=yes
37-
3834
# Allow loading of arbitrary C extensions. Extensions are imported into the
3935
# active Python interpreter and may run arbitrary code.
4036
unsafe-load-any-extension=no
@@ -470,5 +466,6 @@ valid-metaclass-classmethod-first-arg=mcs
470466
[EXCEPTIONS]
471467

472468
# Exceptions that will emit a warning when being caught. Defaults to
473-
# "Exception"
474-
overgeneral-exceptions=Exception
469+
# ["builtins.BaseException", "builtins.Exception"]
470+
overgeneral-exceptions = builtins.BaseException,
471+
builtins.Exception

.github/workflows/compress-images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ jobs:
5353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5454
compressOnly: ${{ github.event_name != 'pull_request' }}
5555
jpegProgressive: true
56+
minPctChange: '10.0'
5657
- name: Create Pull Request
5758
# If it's not a pull request then commit any changes as a new PR
5859
if: |
5960
github.event_name != 'pull_request' &&
6061
steps.calibre.outputs.markdown != ''
6162
id: cpr
62-
uses: peter-evans/create-pull-request@v7
63+
uses: peter-evans/create-pull-request@v8
6364
with:
6465
title: Auto Compress Images
6566
branch-suffix: timestamp

.github/workflows/predeploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
npm run ebooks
6868
- name: Upload PDF artifact
6969
if: ${{ github.event.inputs.ebooks == 'true' }}
70-
uses: actions/upload-artifact@v5
70+
uses: actions/upload-artifact@v6
7171
with:
7272
name: pdfs
7373
path: ./src/static/pdfs/*.pdf
@@ -79,7 +79,7 @@ jobs:
7979
npm run timestamps
8080
- name: Create Pull Request
8181
id: cpr
82-
uses: peter-evans/create-pull-request@v7
82+
uses: peter-evans/create-pull-request@v8
8383
with:
8484
title: Pre-deploy Updates
8585
branch-suffix: timestamp

sql/.sqlfluff

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exclude_rules = AL01,AL04,AL07,AL09,AM03,AM05,AM08,CP02,CP03,CV02,CV12,LT05,LT09
2828
# ST08 - Sometimes clearer to include brackets for complex COUNT(DISTINCT) cases
2929
# ST11 - Doesn't consider wildcards in SELECT. Issue: https://github.com/sqlfluff/sqlfluff/issues/6511
3030

31-
large_file_skip_byte_limit = 40000
31+
large_file_skip_byte_limit = 1120000
3232
# CPU processes to use while linting.
3333
# If positive, just implies number of processes.
3434
# If negative or zero, implies number_of_cpus - specifed_number.
@@ -52,14 +52,13 @@ extended_capitalisation_policy = upper
5252

5353
[sqlfluff:rules:convention.blocked_words]
5454
# Regex of blocked SQL that should not be used.
55-
# Can be overridden with `-- noqa: CV09` for those chapters using secondary pages
55+
# Can be overridden with `-- noqa: CV09` for those chapters using other dates
5656
# TABLESAMPLE - sometimes used for testing. Shouldn't be used in production as not random.
5757
# sample_data - sometimes used for testing. Shouldn't be used in production.
58-
# Block 2022_05_12 (contains secondary pages)
59-
# Block 2022_06_09 (contains secondary pages)
60-
# Block 2022_07_01 (probably forgot to update month to June for 2022)
61-
# Block 2021_06_01 (probably forgot to update month to July for 2021)
62-
blocked_regex = (TABLESAMPLE|sample_data|2022_?05_?12|2022_?06_?09|2022_?07_?01|2021_?06_?01)
58+
# The Web Almanac has run in different months due to timing or delays. This
59+
# means it's easy to use the wrong month by copying a previous query and only
60+
# updating the year and not the month. Block those months to warn about this.
61+
blocked_regex = (TABLESAMPLE|sample_data|2025-?08-?01|2025-?06-?01|2024-?08-?01|2024-?07-?01|2022-?08-?01|2022-?07-?01|2021-?06-?01|2021-?08-?01|2020-?07-?01)
6362

6463
[sqlfluff:rules:convention.count_rows]
6564
prefer_count_0 = True

sql/2020/cms/core_web_vitals_distribution.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ON
3636
IF(device = 'desktop', 'desktop', 'mobile') = client
3737
WHERE
3838
# The CrUX 202008 dataset is not available until September 8.
39-
date = '2020-07-01'
39+
date = '2020-07-01' -- noqa: CV09
4040
GROUP BY
4141
client,
4242
cms

sql/2020/cms/core_web_vitals_passing.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ON
6161
IF(device = 'desktop', 'desktop', 'mobile') = client
6262
WHERE
6363
# The CrUX 202008 dataset is not available until September 8.
64-
date = '2020-07-01'
64+
date = '2020-07-01' -- noqa: CV09
6565
GROUP BY
6666
client,
6767
cms

sql/2021/media/video_source_types.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ FROM
1111
UNNEST(REGEXP_EXTRACT_ALL(body, '(?i)(<video.*?</video>)')) AS video,
1212
UNNEST(REGEXP_EXTRACT_ALL(video, r'(?i)type\s*=\s*["\'](video/[^\'";?]*)')) AS video_type
1313
WHERE
14-
date = '2021-08-01' AND
14+
date = '2021-08-01' AND -- noqa: CV09
1515
firstHtml
1616
GROUP BY
1717
client,

sql/2021/media/video_tag_and_js_player.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FROM (
4343
FROM
4444
`httparchive.almanac.requests`
4545
WHERE
46-
date = '2021-08-01' AND
46+
date = '2021-08-01' AND -- noqa: CV09
4747
type = 'script'
4848
GROUP BY
4949
client,

sql/2022/accessibility/focus_outline_0.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ FROM (
5959
`httparchive.almanac.parsed_css`,
6060
UNNEST(getFocusStylesOutline0(css)) AS sets_outline_0
6161
WHERE
62-
date = '2022-07-01'
62+
date = '2022-07-01' -- noqa: CV09
6363
GROUP BY
6464
client,
6565
page

sql/2022/accessibility/focus_visible.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ FROM (
7373
LEFT JOIN
7474
UNNEST(getSelectorParts(css).pseudo_class) AS pseudo_class
7575
WHERE
76-
date = '2022-07-01' AND
76+
date = '2022-07-01' AND -- noqa: CV09
7777
# Limit the size of the CSS to avoid OOM crashes.
7878
LENGTH(css) < 0.1 * 1024 * 1024
7979
GROUP BY

0 commit comments

Comments
 (0)