Skip to content

Commit d9ed287

Browse files
authored
Merge pull request #220 from rust-lang/pa-2024-12-20-redeploy
Redeploy homu
2 parents f652a9e + 512513b commit d9ed287

File tree

3 files changed

+23
-321
lines changed

3 files changed

+23
-321
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
88

99
COPY setup.py cfg.production.toml /src/
1010
COPY homu/ /src/homu/
11+
COPY requirements.txt /src/
12+
13+
# Pre-install dependencies from a lockfile
14+
RUN pip3 install -r /src/requirements.txt
1115

1216
# Homu needs to be installed in "editable mode" (-e): when pip installs an
1317
# application it resets the permissions of all source files to 644, but

cfg.production.toml

Lines changed: 1 addition & 321 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ remove_path_prefixes = ["homu"]
3131
[repo.rust]
3232
owner = "rust-lang"
3333
name = "rust"
34-
timeout = 15300
34+
timeout = 21600 # 6 hours
3535

3636
# Permissions managed through rust-lang/team
3737
rust_team = true
@@ -83,323 +83,3 @@ add = ['merged-by-bors']
8383

8484
[repo.rust.labels.rollup_made]
8585
add = ['rollup']
86-
87-
###########
88-
# Cargo #
89-
###########
90-
91-
[repo.cargo]
92-
owner = "rust-lang"
93-
name = "cargo"
94-
timeout = 7200
95-
96-
# Permissions managed through rust-lang/team
97-
rust_team = true
98-
reviewers = []
99-
try_users = []
100-
101-
[repo.cargo.branch]
102-
auto = "auto-cargo"
103-
[repo.cargo.github]
104-
secret = "${HOMU_WEBHOOK_SECRET_CARGO}"
105-
[repo.cargo.checks.actions]
106-
name = "bors build finished"
107-
[repo.cargo.labels.approved] # after homu received `r+`
108-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
109-
add = ['S-waiting-on-bors']
110-
[repo.cargo.labels.rejected] # after homu received `r-`
111-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
112-
add = ['S-waiting-on-author']
113-
[repo.cargo.labels.failed] # test failed (maybe spurious, so fall back to -on-review)
114-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
115-
add = ['S-waiting-on-review']
116-
[repo.cargo.labels.timed_out] # test timed out after 4 hours (almost always spurious, let reviewer retry)
117-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
118-
add = ['S-waiting-on-review']
119-
[repo.cargo.labels.try_failed] # try-build failed (almost always legit, tell author to fix the PR)
120-
remove = ['S-waiting-on-review']
121-
add = ['S-waiting-on-author']
122-
[repo.cargo.labels.pushed] # user pushed a commit after `r+`/`try`
123-
remove = ['S-waiting-on-bors', 'S-waiting-on-author']
124-
add = ['S-waiting-on-review']
125-
unless = ['S-blocked']
126-
[repo.cargo.labels.conflict] # a merge conflict is detected (tell author to rebase)
127-
remove = ['S-waiting-on-bors']
128-
add = ['S-waiting-on-author']
129-
unless = ['S-blocked', 'S-waiting-on-review']
130-
131-
##########
132-
# libc #
133-
##########
134-
135-
[repo.libc]
136-
owner = "rust-lang"
137-
name = "libc"
138-
timeout = 5400
139-
140-
# Permissions managed through rust-lang/team
141-
rust_team = true
142-
reviewers = []
143-
try_users = []
144-
145-
[repo.libc.branch]
146-
auto = "auto-libc"
147-
148-
[repo.libc.github]
149-
secret = "${HOMU_WEBHOOK_SECRET_LIBC}"
150-
151-
[repo.libc.checks.actions]
152-
name = "bors build finished"
153-
[repo.libc.checks.cirrus-freebsd-13]
154-
name = "nightly x86_64-unknown-freebsd-13"
155-
[repo.libc.checks.cirrus-freebsd-14]
156-
name = "nightly x86_64-unknown-freebsd-14"
157-
[repo.libc.labels.approved] # after homu received `r+`
158-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
159-
add = ['S-waiting-on-bors']
160-
[repo.libc.labels.failed] # test failed (maybe spurious, so fall back to -on-review)
161-
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
162-
add = ['S-waiting-on-review']
163-
164-
#############
165-
# stdarch #
166-
#############
167-
168-
[repo.stdarch]
169-
owner = "rust-lang"
170-
name = "stdarch"
171-
timeout = 9000
172-
173-
# Permissions managed through rust-lang/team
174-
rust_team = true
175-
reviewers = []
176-
try_users = []
177-
178-
[repo.stdarch.github]
179-
secret = "${HOMU_WEBHOOK_SECRET_STDARCH}"
180-
181-
[repo.stdarch.status.azure]
182-
context = "rust-lang.stdarch"
183-
[repo.stdarch.checks.cirrus-freebsd]
184-
name = "x86_64-unknown-freebsd"
185-
186-
############
187-
# Clippy #
188-
############
189-
190-
[repo.clippy]
191-
owner = "rust-lang"
192-
name = "rust-clippy"
193-
timeout = 5400
194-
195-
# Permissions managed through rust-lang/team
196-
rust_team = true
197-
reviewers = []
198-
try_users = []
199-
200-
[repo.clippy.branch]
201-
auto = "auto"
202-
[repo.clippy.github]
203-
secret = "${HOMU_WEBHOOK_SECRET_CLIPPY}"
204-
[repo.clippy.checks.action_test]
205-
name = "bors test finished"
206-
[repo.clippy.checks.action_dev_test]
207-
name = "bors dev test finished"
208-
[repo.clippy.checks.action_remark_test]
209-
name = "bors remark test finished"
210-
211-
#########
212-
# RLS #
213-
#########
214-
215-
[repo.rls]
216-
owner = "rust-lang"
217-
name = "rls"
218-
timeout = 5400
219-
220-
# Permissions managed through rust-lang/team
221-
rust_team = true
222-
reviewers = []
223-
try_users = []
224-
225-
[repo.rls.github]
226-
secret = "${HOMU_WEBHOOK_SECRET_RLS}"
227-
[repo.rls.checks.actions]
228-
name = "bors build finished"
229-
230-
################
231-
# vscode-rust #
232-
################
233-
234-
[repo.vscode-rust]
235-
owner = "rust-lang"
236-
name = "vscode-rust"
237-
timeout = 1800
238-
239-
# Permissions managed through rust-lang/team
240-
rust_team = true
241-
reviewers = []
242-
try_users = []
243-
244-
[repo.vscode-rust.github]
245-
secret = "${HOMU_WEBHOOK_SECRET_VSCODE_RUST}"
246-
[repo.vscode-rust.checks.actions]
247-
name = "bors build finished"
248-
249-
###############
250-
# crates.io #
251-
###############
252-
253-
[repo.crates-io]
254-
owner = "rust-lang"
255-
name = "crates.io"
256-
timeout = 1800
257-
258-
# Permissions managed through rust-lang/team
259-
rust_team = true
260-
reviewers = []
261-
try_users = []
262-
263-
[repo.crates-io.github]
264-
secret = "${HOMU_WEBHOOK_SECRET_CRATES_IO}"
265-
[repo.crates-io.checks.actions]
266-
name = "bors build finished"
267-
268-
###########
269-
# Chalk #
270-
###########
271-
272-
[repo.chalk]
273-
owner = "rust-lang"
274-
name = "chalk"
275-
timeout = 1800
276-
277-
# Permissions managed through rust-lang/team
278-
rust_team = true
279-
reviewers = []
280-
try_users = []
281-
282-
[repo.chalk.github]
283-
secret = "${HOMU_WEBHOOK_SECRET_CHALK}"
284-
[repo.chalk.checks.actions]
285-
name = "bors build finished"
286-
287-
###############
288-
# Hashbrown #
289-
###############
290-
291-
[repo.hashbrown]
292-
owner = "rust-lang"
293-
name = "hashbrown"
294-
timeout = 5400
295-
296-
# Permissions managed through rust-lang/team
297-
rust_team = true
298-
reviewers = []
299-
try_users = []
300-
301-
[repo.hashbrown.branch]
302-
auto = "auto"
303-
[repo.hashbrown.github]
304-
secret = "${HOMU_WEBHOOK_SECRET_HASHBROWN}"
305-
[repo.hashbrown.checks.actions]
306-
name = "bors build finished"
307-
308-
##########
309-
# MIRI #
310-
##########
311-
312-
[repo.miri]
313-
owner = "rust-lang"
314-
name = "miri"
315-
timeout = 7200
316-
317-
# Permissions managed through rust-lang/team
318-
rust_team = true
319-
reviewers = []
320-
try_users = []
321-
322-
[repo.miri.branch]
323-
auto = "auto"
324-
[repo.miri.github]
325-
secret = "${HOMU_WEBHOOK_SECRET_MIRI}"
326-
[repo.miri.checks.actions]
327-
name = "bors build finished"
328-
329-
###############
330-
# MEASUREME #
331-
###############
332-
333-
[repo.measureme]
334-
owner = "rust-lang"
335-
name = "measureme"
336-
timeout = 7200
337-
338-
# Permissions managed through rust-lang/team
339-
rust_team = true
340-
reviewers = []
341-
try_users = []
342-
343-
[repo.measureme.branch]
344-
auto = "auto"
345-
[repo.measureme.github]
346-
secret = "${HOMU_WEBHOOK_SECRET_MEASUREME}"
347-
[repo.measureme.checks.actions]
348-
name = "bors build finished"
349-
350-
############
351-
# Crater #
352-
############
353-
354-
[repo.crater]
355-
owner = "rust-lang"
356-
name = "crater"
357-
timeout = 5400
358-
359-
# Permissions managed through rust-lang/team
360-
rust_team = true
361-
reviewers = []
362-
try_users = []
363-
364-
[repo.crater.github]
365-
secret = "${HOMU_WEBHOOK_SECRET_CRATER}"
366-
[repo.crater.checks.actions]
367-
name = "bors build finished"
368-
369-
###############
370-
# Semverver #
371-
###############
372-
373-
[repo.semverver]
374-
owner = "rust-lang"
375-
name = "rust-semverver"
376-
timeout = 5400
377-
378-
# Permissions managed through rust-lang/team
379-
rust_team = true
380-
reviewers = []
381-
try_users = []
382-
383-
[repo.semverver.github]
384-
secret = "${HOMU_WEBHOOK_SECRET_SEMVERVER}"
385-
[repo.semverver.checks.actions]
386-
name = "bors build finished"
387-
388-
###################
389-
# rust-analyzer #
390-
###################
391-
392-
[repo.rust-analyzer]
393-
owner = "rust-lang"
394-
name = "rust-analyzer"
395-
timeout = 5400
396-
397-
# Permissions managed through rust-lang/team
398-
rust_team = true
399-
reviewers = []
400-
try_users = []
401-
402-
[repo.rust-analyzer.github]
403-
secret = "${HOMU_WEBHOOK_SECRET_RUST_ANALYZER}"
404-
[repo.rust-analyzer.checks.actions]
405-
name = "bors build finished"

requirements.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bottle==0.12.25
2+
certifi==2024.2.2
3+
charset-normalizer==3.3.2
4+
github3.py==0.9.6
5+
idna==3.6
6+
Jinja2==3.1.3
7+
MarkupSafe==2.1.5
8+
pip==20.0.2
9+
requests==2.31.0
10+
retrying==1.3.4
11+
setuptools==45.2.0
12+
six==1.16.0
13+
toml==0.10.2
14+
uritemplate==4.1.1
15+
uritemplate.py==3.0.2
16+
urllib3==2.2.1
17+
waitress==3.0.0
18+
wheel==0.34.2

0 commit comments

Comments
 (0)