File tree Expand file tree Collapse file tree 3 files changed +46
-4
lines changed
Expand file tree Collapse file tree 3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change 1515 - try
1616 - try-perf
1717 - automation/bors/try
18+ - automation/bors/auto
1819 pull_request :
1920 branches :
2021 - " **"
5657 - name : Test citool
5758 # Only test citool on the auto branch, to reduce latency of the calculate matrix job
5859 # on PR/try builds.
59- if : ${{ github.ref == 'refs/heads/auto' }}
60+ if : ${{ github.ref == 'refs/heads/auto' || github.ref == 'refs/heads/automation/bors/auto' }}
6061 run : |
6162 cd src/ci/citool
6263 CARGO_INCREMENTAL=0 cargo test
7980 # access the environment.
8081 #
8182 # We only enable the environment for the rust-lang/rust repository, so that CI works on forks.
82- environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
83+ environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto' || github.ref == 'refs/heads/automation/bors/auto' )) && 'bors') || '' }}
8384 env :
8485 CI_JOB_NAME : ${{ matrix.name }}
8586 CI_JOB_DOC_URL : ${{ matrix.doc_url }}
@@ -313,7 +314,7 @@ jobs:
313314 needs : [ calculate_matrix, job ]
314315 # !cancelled() executes the job regardless of whether the previous jobs passed or failed
315316 if : ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
316- environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
317+ environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf' || github.ref == 'refs/heads/automation/bors/try' || github.ref == 'refs/heads/auto' || github.ref == 'refs/heads/automation/bors/auto' )) && 'bors') || '' }}
317318 steps :
318319 - name : checkout the source code
319320 uses : actions/checkout@v5
Original file line number Diff line number Diff line change @@ -25,3 +25,42 @@ labels_blocking_approval = [
2525 " S-waiting-on-t-rustdoc-frontend" ,
2626 " S-waiting-on-t-clippy"
2727]
28+
29+ # If CI runs quicker than this duration, consider it to be a failure
30+ min_ci_time = 600
31+
32+ [labels ]
33+ approved = [
34+ " +S-waiting-on-bors" ,
35+ " -S-blocked" ,
36+ " -S-waiting-on-author" ,
37+ " -S-waiting-on-crater" ,
38+ " -S-waiting-on-review" ,
39+ " -S-waiting-on-team"
40+ ]
41+ unapproved = [
42+ " +S-waiting-on-author" ,
43+ " -S-blocked" ,
44+ " -S-waiting-on-bors" ,
45+ " -S-waiting-on-crater" ,
46+ " -S-waiting-on-review" ,
47+ " -S-waiting-on-team"
48+ ]
49+ try_failed = [
50+ " +S-waiting-on-author" ,
51+ " -S-waiting-on-review" ,
52+ " -S-waiting-on-crater"
53+ ]
54+ auto_build_succeeded = [" +merged-by-bors" ]
55+ auto_build_failed = [
56+ " +S-waiting-on-review" ,
57+ " -S-blocked" ,
58+ " -S-waiting-on-bors" ,
59+ " -S-waiting-on-author" ,
60+ " -S-waiting-on-crater" ,
61+ " -S-waiting-on-team"
62+ ]
63+
64+ # Flip this two once new bors is used for actual merges on this repository
65+ merge_queue_enabled = false
66+ report_merge_conflicts = true
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ impl GitHubContext {
4646 let patterns = if !patterns. is_empty ( ) { Some ( patterns) } else { None } ;
4747 Some ( RunType :: TryJob { job_patterns : patterns } )
4848 }
49- ( "push" , "refs/heads/auto" ) => Some ( RunType :: AutoJob ) ,
49+ ( "push" , "refs/heads/auto" | "refs/heads/automation/bors/auto" ) => {
50+ Some ( RunType :: AutoJob )
51+ }
5052 ( "push" , "refs/heads/main" ) => Some ( RunType :: MainJob ) ,
5153 _ => None ,
5254 }
You can’t perform that action at this time.
0 commit comments