Skip to content

Commit 1c687ad

Browse files
authored
Merge branch 'main' into add-fa
2 parents 6c9d0c7 + 59822f0 commit 1c687ad

8 files changed

Lines changed: 79 additions & 5 deletions

File tree

‎.github/CODEOWNERS‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
# Additionally, notify Stan for docs things
55
.github/workflows/docs-redirects.yml @StanFromIreland @JacobCoffee
6-
salt/docs/* @StanFromIreland @JacobCoffee
7-
tests/docs-redirects/* @StanFromIreland @JacobCoffee
6+
salt/docs/ @StanFromIreland @JacobCoffee
7+
tests/docs-redirects/ @StanFromIreland @JacobCoffee

‎salt/codespeed/config/codespeed.service.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=network.target
66
Environment=LC_ALL=en_US.UTF-8
77
Environment=LANG=en_US.UTF-8
88
WorkingDirectory=/srv/codespeed/{{ instance }}/src
9-
ExecStart=/srv/codespeed/{{ instance }}/env/bin/gunicorn {{ wsgi_app }} -w 4 --bind unix:///var/run/codespeed/{{ instance }}.sock
9+
ExecStart=/srv/codespeed/{{ instance }}/env/bin/gunicorn {{ wsgi_app }} -w 4 --timeout 300 --bind unix:///var/run/codespeed/{{ instance }}.sock
1010
ExecReload=/bin/kill -HUP $MAINPID
1111
ExecStop = /bin/kill -s TERM $MAINPID
1212
Restart=on-failure

‎salt/codespeed/config/nginx.conf.jinja‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ server {
3333
proxy_set_header Host $http_host;
3434
proxy_redirect off;
3535

36+
# Result uploads insert thousands of rows and run well past the 60s default
37+
proxy_read_timeout 300s;
38+
proxy_send_timeout 300s;
39+
3640
if (!-f $request_filename) {
3741
proxy_pass http://codespeed-{{ instance }};
3842
break;

‎salt/docs/config/nginx.docs-redirects.conf‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ location = / {
88
}
99

1010
# Python 3 docs are the default at the root of each translation.
11-
location ~ ^/(bn-in|el|es|fa|fr|id|it|ja|ko|pl|pt-br|ro|sv|tr|uk|zh-cn|zh-tw)/$ {
11+
location ~ ^/(bn-in|de|el|es|fa|fr|id|it|ja|ko|pl|pt-br|ro|ru|sv|tr|uk|zh-cn|zh-tw)/$ {
1212
return 302 $scheme://$host/$1/3/;
1313
}
1414

@@ -133,6 +133,9 @@ location ~ ^/([a-z-]*/)?(3|3.5|3.6|3.7|3.8|3.9|3.10)/library/_winreg.html$ {
133133
location ~ ^/([a-z-]*/)?(3|3.13|3.14)/library/(2to3|tkinter.tix).html$ {
134134
return 301 https://$host/$1$2/;
135135
}
136+
location ~ ^/([a-z-]*/)?(3|3.13|3.14|3.15)/library/(constants|exceptions|functions|stdtypes|threadsafety|time-complexity).html$ {
137+
return 301 https://$host/$1$2/builtins/$3.html;
138+
}
136139

137140
# Map /documenting to the devguide.
138141
location ~ ^/devguide/(.*)$ {
@@ -192,7 +195,7 @@ location ~ ^/((2|3)(\.[0-9]+)?|dev)/ {
192195
error_page 404 /$1/404.html;
193196
add_header Surrogate-Key en/$1 always;
194197
}
195-
location ~ ^/(bn-in|el|es|fa|fr|id|it|ja|ko|pl|pt-br|ro|tr|sv|uk|zh-cn|zh-tw)/((2|3)(\.[0-9]+)?|dev)/ {
198+
location ~ ^/(bn-in|de|el|es|fa|fr|id|it|ja|ko|pl|pt-br|ro|ru|tr|sv|uk|zh-cn|zh-tw)/((2|3)(\.[0-9]+)?|dev)/ {
196199
error_page 404 /$1/$2/404.html;
197200
add_header Surrogate-Key $1/$2 always;
198201
}

‎salt/docs/init.sls‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ docsbuild-no-html:
8787
/srv/docsbuild/venv/bin/python
8888
/srv/docsbuild/scripts/build_docs.py
8989
--select-output=no-html
90+
--include-security-branches
9091
- user: docsbuild
9192
- minute: 7
9293
- hour: 6
@@ -102,6 +103,7 @@ docsbuild-only-html:
102103
/srv/docsbuild/venv/bin/python
103104
/srv/docsbuild/scripts/build_docs.py
104105
--select-output=only-html
106+
--include-security-branches
105107
- user: docsbuild
106108
- minute: 42
107109
- hour: 4

‎tests/docs-redirects/specs/PEP-594.hurl‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,21 @@ HTTP 301
198198
[Asserts]
199199
header "Location" == "https://localhost/ro/3.14/"
200200

201+
GET {{host}}/ru/3/library/2to3.html
202+
HTTP 301
203+
[Asserts]
204+
header "Location" == "https://localhost/ru/3/"
205+
206+
GET {{host}}/ru/3.13/library/2to3.html
207+
HTTP 301
208+
[Asserts]
209+
header "Location" == "https://localhost/ru/3.13/"
210+
211+
GET {{host}}/ru/3.14/library/2to3.html
212+
HTTP 301
213+
[Asserts]
214+
header "Location" == "https://localhost/ru/3.14/"
215+
201216
GET {{host}}/sv/3/library/2to3.html
202217
HTTP 301
203218
[Asserts]
@@ -470,6 +485,21 @@ HTTP 301
470485
[Asserts]
471486
header "Location" == "https://localhost/ro/3.14/"
472487

488+
GET {{host}}/ru/3/library/tkinter.tix.html
489+
HTTP 301
490+
[Asserts]
491+
header "Location" == "https://localhost/ru/3/"
492+
493+
GET {{host}}/ru/3.13/library/tkinter.tix.html
494+
HTTP 301
495+
[Asserts]
496+
header "Location" == "https://localhost/ru/3.13/"
497+
498+
GET {{host}}/ru/3.14/library/tkinter.tix.html
499+
HTTP 301
500+
[Asserts]
501+
header "Location" == "https://localhost/ru/3.14/"
502+
473503
GET {{host}}/sv/3/library/tkinter.tix.html
474504
HTTP 301
475505
[Asserts]

‎tests/docs-redirects/specs/default-root.hurl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ HTTP 302
6868
[Asserts]
6969
header "Location" == "http://localhost/ro/3/"
7070

71+
GET {{host}}/ru/
72+
HTTP 302
73+
[Asserts]
74+
header "Location" == "http://localhost/ru/3/"
75+
7176
GET {{host}}/sv/
7277
HTTP 302
7378
[Asserts]

‎tests/docs-redirects/specs/surrogate-key.hurl‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,36 @@ HTTP 404
655655
[Asserts]
656656
header "Surrogate-Key" == "ro/dev"
657657

658+
GET {{host}}/ru/3/
659+
HTTP 404
660+
[Asserts]
661+
header "Surrogate-Key" == "ru/3"
662+
663+
GET {{host}}/ru/3/about.html
664+
HTTP 404
665+
[Asserts]
666+
header "Surrogate-Key" == "ru/3"
667+
668+
GET {{host}}/ru/3.14/
669+
HTTP 404
670+
[Asserts]
671+
header "Surrogate-Key" == "ru/3.14"
672+
673+
GET {{host}}/ru/3.14/about.html
674+
HTTP 404
675+
[Asserts]
676+
header "Surrogate-Key" == "ru/3.14"
677+
678+
GET {{host}}/ru/dev/
679+
HTTP 404
680+
[Asserts]
681+
header "Surrogate-Key" == "ru/dev"
682+
683+
GET {{host}}/ru/dev/about.html
684+
HTTP 404
685+
[Asserts]
686+
header "Surrogate-Key" == "ru/dev"
687+
658688
GET {{host}}/sv/3/
659689
HTTP 404
660690
[Asserts]

0 commit comments

Comments
 (0)