Skip to content

Commit

Permalink
Merge pull request #220 from rust-lang/pa-2024-12-20-redeploy
Browse files Browse the repository at this point in the history
Redeploy homu
  • Loading branch information
pietroalbini authored Dec 20, 2024
2 parents f652a9e + 512513b commit d9ed287
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 321 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins

COPY setup.py cfg.production.toml /src/
COPY homu/ /src/homu/
COPY requirements.txt /src/

# Pre-install dependencies from a lockfile
RUN pip3 install -r /src/requirements.txt

# Homu needs to be installed in "editable mode" (-e): when pip installs an
# application it resets the permissions of all source files to 644, but
Expand Down
322 changes: 1 addition & 321 deletions cfg.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ remove_path_prefixes = ["homu"]
[repo.rust]
owner = "rust-lang"
name = "rust"
timeout = 15300
timeout = 21600 # 6 hours

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

[repo.rust.labels.rollup_made]
add = ['rollup']

###########
# Cargo #
###########

[repo.cargo]
owner = "rust-lang"
name = "cargo"
timeout = 7200

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.cargo.branch]
auto = "auto-cargo"
[repo.cargo.github]
secret = "${HOMU_WEBHOOK_SECRET_CARGO}"
[repo.cargo.checks.actions]
name = "bors build finished"
[repo.cargo.labels.approved] # after homu received `r+`
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-bors']
[repo.cargo.labels.rejected] # after homu received `r-`
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-author']
[repo.cargo.labels.failed] # test failed (maybe spurious, so fall back to -on-review)
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-review']
[repo.cargo.labels.timed_out] # test timed out after 4 hours (almost always spurious, let reviewer retry)
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-review']
[repo.cargo.labels.try_failed] # try-build failed (almost always legit, tell author to fix the PR)
remove = ['S-waiting-on-review']
add = ['S-waiting-on-author']
[repo.cargo.labels.pushed] # user pushed a commit after `r+`/`try`
remove = ['S-waiting-on-bors', 'S-waiting-on-author']
add = ['S-waiting-on-review']
unless = ['S-blocked']
[repo.cargo.labels.conflict] # a merge conflict is detected (tell author to rebase)
remove = ['S-waiting-on-bors']
add = ['S-waiting-on-author']
unless = ['S-blocked', 'S-waiting-on-review']

##########
# libc #
##########

[repo.libc]
owner = "rust-lang"
name = "libc"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.libc.branch]
auto = "auto-libc"

[repo.libc.github]
secret = "${HOMU_WEBHOOK_SECRET_LIBC}"

[repo.libc.checks.actions]
name = "bors build finished"
[repo.libc.checks.cirrus-freebsd-13]
name = "nightly x86_64-unknown-freebsd-13"
[repo.libc.checks.cirrus-freebsd-14]
name = "nightly x86_64-unknown-freebsd-14"
[repo.libc.labels.approved] # after homu received `r+`
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-bors']
[repo.libc.labels.failed] # test failed (maybe spurious, so fall back to -on-review)
remove = ['S-blocked', 'S-waiting-on-author', 'S-waiting-on-bors', 'S-waiting-on-review']
add = ['S-waiting-on-review']

#############
# stdarch #
#############

[repo.stdarch]
owner = "rust-lang"
name = "stdarch"
timeout = 9000

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.stdarch.github]
secret = "${HOMU_WEBHOOK_SECRET_STDARCH}"

[repo.stdarch.status.azure]
context = "rust-lang.stdarch"
[repo.stdarch.checks.cirrus-freebsd]
name = "x86_64-unknown-freebsd"

############
# Clippy #
############

[repo.clippy]
owner = "rust-lang"
name = "rust-clippy"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.clippy.branch]
auto = "auto"
[repo.clippy.github]
secret = "${HOMU_WEBHOOK_SECRET_CLIPPY}"
[repo.clippy.checks.action_test]
name = "bors test finished"
[repo.clippy.checks.action_dev_test]
name = "bors dev test finished"
[repo.clippy.checks.action_remark_test]
name = "bors remark test finished"

#########
# RLS #
#########

[repo.rls]
owner = "rust-lang"
name = "rls"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.rls.github]
secret = "${HOMU_WEBHOOK_SECRET_RLS}"
[repo.rls.checks.actions]
name = "bors build finished"

################
# vscode-rust #
################

[repo.vscode-rust]
owner = "rust-lang"
name = "vscode-rust"
timeout = 1800

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.vscode-rust.github]
secret = "${HOMU_WEBHOOK_SECRET_VSCODE_RUST}"
[repo.vscode-rust.checks.actions]
name = "bors build finished"

###############
# crates.io #
###############

[repo.crates-io]
owner = "rust-lang"
name = "crates.io"
timeout = 1800

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.crates-io.github]
secret = "${HOMU_WEBHOOK_SECRET_CRATES_IO}"
[repo.crates-io.checks.actions]
name = "bors build finished"

###########
# Chalk #
###########

[repo.chalk]
owner = "rust-lang"
name = "chalk"
timeout = 1800

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.chalk.github]
secret = "${HOMU_WEBHOOK_SECRET_CHALK}"
[repo.chalk.checks.actions]
name = "bors build finished"

###############
# Hashbrown #
###############

[repo.hashbrown]
owner = "rust-lang"
name = "hashbrown"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.hashbrown.branch]
auto = "auto"
[repo.hashbrown.github]
secret = "${HOMU_WEBHOOK_SECRET_HASHBROWN}"
[repo.hashbrown.checks.actions]
name = "bors build finished"

##########
# MIRI #
##########

[repo.miri]
owner = "rust-lang"
name = "miri"
timeout = 7200

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.miri.branch]
auto = "auto"
[repo.miri.github]
secret = "${HOMU_WEBHOOK_SECRET_MIRI}"
[repo.miri.checks.actions]
name = "bors build finished"

###############
# MEASUREME #
###############

[repo.measureme]
owner = "rust-lang"
name = "measureme"
timeout = 7200

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.measureme.branch]
auto = "auto"
[repo.measureme.github]
secret = "${HOMU_WEBHOOK_SECRET_MEASUREME}"
[repo.measureme.checks.actions]
name = "bors build finished"

############
# Crater #
############

[repo.crater]
owner = "rust-lang"
name = "crater"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.crater.github]
secret = "${HOMU_WEBHOOK_SECRET_CRATER}"
[repo.crater.checks.actions]
name = "bors build finished"

###############
# Semverver #
###############

[repo.semverver]
owner = "rust-lang"
name = "rust-semverver"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.semverver.github]
secret = "${HOMU_WEBHOOK_SECRET_SEMVERVER}"
[repo.semverver.checks.actions]
name = "bors build finished"

###################
# rust-analyzer #
###################

[repo.rust-analyzer]
owner = "rust-lang"
name = "rust-analyzer"
timeout = 5400

# Permissions managed through rust-lang/team
rust_team = true
reviewers = []
try_users = []

[repo.rust-analyzer.github]
secret = "${HOMU_WEBHOOK_SECRET_RUST_ANALYZER}"
[repo.rust-analyzer.checks.actions]
name = "bors build finished"
18 changes: 18 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
bottle==0.12.25
certifi==2024.2.2
charset-normalizer==3.3.2
github3.py==0.9.6
idna==3.6
Jinja2==3.1.3
MarkupSafe==2.1.5
pip==20.0.2
requests==2.31.0
retrying==1.3.4
setuptools==45.2.0
six==1.16.0
toml==0.10.2
uritemplate==4.1.1
uritemplate.py==3.0.2
urllib3==2.2.1
waitress==3.0.0
wheel==0.34.2

0 comments on commit d9ed287

Please sign in to comment.