File tree Expand file tree Collapse file tree
tests/docs-redirects/specs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ After=network.target
66Environment=LC_ALL=en_US.UTF-8
77Environment=LANG=en_US.UTF-8
88WorkingDirectory=/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
1010ExecReload=/bin/kill -HUP $MAINPID
1111ExecStop = /bin/kill -s TERM $MAINPID
1212Restart=on-failure
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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$ {
133133location ~ ^/([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.
138141location ~ ^/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}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -198,6 +198,21 @@ HTTP 301
198198[Asserts]
199199header "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+
201216GET {{host}}/sv/3/library/2to3.html
202217HTTP 301
203218[Asserts]
@@ -470,6 +485,21 @@ HTTP 301
470485[Asserts]
471486header "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+
473503GET {{host}}/sv/3/library/tkinter.tix.html
474504HTTP 301
475505[Asserts]
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ HTTP 302
6868[Asserts]
6969header "Location" == "http://localhost/ro/3/"
7070
71+ GET {{host}}/ru/
72+ HTTP 302
73+ [Asserts]
74+ header "Location" == "http://localhost/ru/3/"
75+
7176GET {{host}}/sv/
7277HTTP 302
7378[Asserts]
Original file line number Diff line number Diff line change @@ -655,6 +655,36 @@ HTTP 404
655655[Asserts]
656656header "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+
658688GET {{host}}/sv/3/
659689HTTP 404
660690[Asserts]
You can’t perform that action at this time.
0 commit comments