Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set up auto-labeling for Miri #219

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion cfg.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ secret = "${HOMU_WEBHOOK_SECRET_HASHBROWN}"
name = "bors build finished"

##########
# MIRI #
# Miri #
##########

[repo.miri]
Expand All @@ -326,6 +326,30 @@ secret = "${HOMU_WEBHOOK_SECRET_MIRI}"
[repo.miri.checks.actions]
name = "bors build finished"

[repo.miri.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.miri.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.miri.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.miri.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.miri.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.miri.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.miri.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']

###############
# MEASUREME #
###############
Expand Down
Loading