@@ -422,9 +422,9 @@ mod tests {
422
422
tester. get_comment( ) . await ?,
423
423
@r#"
424
424
:sunny: Try build successful ([Workflow1](https://github.com/workflows/Workflow1/1))
425
- Build commit: merge-main-sha1-pr-1-sha-0 (`merge-main-sha1-pr-1-sha-0 `, parent: `main-sha1`)
425
+ Build commit: merge-0-1 (`merge-0-1 `, parent: `main-sha1`)
426
426
427
- <!-- homu: {"type":"TryBuildCompleted","merge_sha":"merge-main-sha1-pr-1-sha-0 "} -->
427
+ <!-- homu: {"type":"TryBuildCompleted","merge_sha":"merge-0-1 "} -->
428
428
"#
429
429
) ;
430
430
Ok ( ( ) )
@@ -507,7 +507,7 @@ mod tests {
507
507
insta:: assert_snapshot!(
508
508
tester. get_comment( ) . await ?,
509
509
@r"
510
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
510
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
511
511
512
512
To cancel the try build, run the command `@bors try cancel`.
513
513
"
@@ -524,7 +524,7 @@ mod tests {
524
524
insta:: assert_snapshot!(
525
525
tester. get_comment( ) . await ?,
526
526
@r"
527
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
527
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
528
528
529
529
To cancel the try build, run the command `@bors try cancel`.
530
530
"
@@ -631,13 +631,9 @@ try-job: Bar
631
631
gh. check_sha_history (
632
632
default_repo_name ( ) ,
633
633
TRY_MERGE_BRANCH_NAME ,
634
- & [ "main-sha1" , "merge-main-sha1-pr-1-sha-0" ] ,
635
- ) ;
636
- gh. check_sha_history (
637
- default_repo_name ( ) ,
638
- TRY_BRANCH_NAME ,
639
- & [ "merge-main-sha1-pr-1-sha-0" ] ,
634
+ & [ "main-sha1" , "merge-0-1" ] ,
640
635
) ;
636
+ gh. check_sha_history ( default_repo_name ( ) , TRY_BRANCH_NAME , & [ "merge-0-1" ] ) ;
641
637
}
642
638
643
639
#[ sqlx:: test]
@@ -653,10 +649,7 @@ try-job: Bar
653
649
gh. check_sha_history (
654
650
default_repo_name ( ) ,
655
651
TRY_MERGE_BRANCH_NAME ,
656
- & [
657
- "ea9c1b050cc8b420c2c211d2177811e564a4dc60" ,
658
- "merge-ea9c1b050cc8b420c2c211d2177811e564a4dc60-pr-1-sha-0" ,
659
- ] ,
652
+ & [ "ea9c1b050cc8b420c2c211d2177811e564a4dc60" , "merge-0-1" ] ,
660
653
) ;
661
654
}
662
655
@@ -671,7 +664,7 @@ try-job: Bar
671
664
tester. expect_comments ( 1 ) . await ;
672
665
tester. post_comment ( "@bors try parent=last" ) . await ?;
673
666
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
674
- :hourglass: Trying commit pr-1-sha with merge merge-ea9c1b050cc8b420c2c211d2177811e564a4dc60-pr-1-sha -1…
667
+ :hourglass: Trying commit pr-1-sha with merge merge-1 -1…
675
668
676
669
To cancel the try build, run the command `@bors try cancel`.
677
670
" ) ;
@@ -683,9 +676,9 @@ try-job: Bar
683
676
TRY_MERGE_BRANCH_NAME ,
684
677
& [
685
678
"ea9c1b050cc8b420c2c211d2177811e564a4dc60" ,
686
- "merge-ea9c1b050cc8b420c2c211d2177811e564a4dc60-pr-1-sha-0 " ,
679
+ "merge-0-1 " ,
687
680
"ea9c1b050cc8b420c2c211d2177811e564a4dc60" ,
688
- "merge-ea9c1b050cc8b420c2c211d2177811e564a4dc60-pr-1-sha -1" ,
681
+ "merge-1 -1" ,
689
682
] ,
690
683
) ;
691
684
}
@@ -773,7 +766,7 @@ try-job: Bar
773
766
tester. expect_comments ( 1 ) . await ;
774
767
tester. post_comment ( "@bors try" ) . await ?;
775
768
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
776
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha -1…
769
+ :hourglass: Trying commit pr-1-sha with merge merge-1 -1…
777
770
778
771
To cancel the try build, run the command `@bors try cancel`.
779
772
" ) ;
@@ -795,7 +788,7 @@ try-job: Bar
795
788
)
796
789
. await ?;
797
790
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
798
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
791
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
799
792
800
793
To cancel the try build, run the command `@bors try cancel`.
801
794
" ) ;
@@ -816,7 +809,7 @@ try-job: Bar
816
809
817
810
tester. post_comment ( "@bors try" ) . await ?;
818
811
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
819
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha -1…
812
+ :hourglass: Trying commit pr-1-sha with merge merge-1 -1…
820
813
821
814
(The previously running try build was automatically cancelled.)
822
815
@@ -840,18 +833,22 @@ try-job: Bar
840
833
841
834
tester. post_comment ( "@bors try" ) . await ?;
842
835
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
843
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha -1…
836
+ :hourglass: Trying commit pr-1-sha with merge merge-1 -1…
844
837
845
838
To cancel the try build, run the command `@bors try cancel`.
846
839
" ) ;
847
840
tester
848
- . workflow_full_success ( WorkflowRunData :: from ( tester. try_branch ( ) ) . with_run_id ( 2 ) . with_check_suite_id ( 2 ) )
841
+ . workflow_full_success (
842
+ WorkflowRunData :: from ( tester. try_branch ( ) )
843
+ . with_run_id ( 2 )
844
+ . with_check_suite_id ( 2 ) ,
845
+ )
849
846
. await ?;
850
847
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r#"
851
848
:sunny: Try build successful ([Workflow1](https://github.com/workflows/Workflow1/2))
852
- Build commit: merge-main-sha1-pr-1-sha- 1 (`merge-main-sha1-pr-1-sha -1`, parent: `main-sha1`)
849
+ Build commit: merge-1- 1 (`merge-1 -1`, parent: `main-sha1`)
853
850
854
- <!-- homu: {"type":"TryBuildCompleted","merge_sha":"merge-main-sha1-pr-1-sha -1"} -->
851
+ <!-- homu: {"type":"TryBuildCompleted","merge_sha":"merge-1 -1"} -->
855
852
"# ) ;
856
853
Ok ( ( ) )
857
854
} )
@@ -988,7 +985,7 @@ try = ["+foo", "+bar", "-baz"]
988
985
. run_test ( async |tester| {
989
986
tester. post_comment ( "@bors try" ) . await ?;
990
987
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
991
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
988
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
992
989
993
990
To cancel the try build, run the command `@bors try cancel`.
994
991
" ) ;
@@ -1013,7 +1010,7 @@ try_succeed = ["+foo", "+bar", "-baz"]
1013
1010
. run_test ( async |tester| {
1014
1011
tester. post_comment ( "@bors try" ) . await ?;
1015
1012
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
1016
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
1013
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
1017
1014
1018
1015
To cancel the try build, run the command `@bors try cancel`.
1019
1016
" ) ;
@@ -1043,7 +1040,7 @@ try_failed = ["+foo", "+bar", "-baz"]
1043
1040
. run_test ( async |tester| {
1044
1041
tester. post_comment ( "@bors try" ) . await ?;
1045
1042
insta:: assert_snapshot!( tester. get_comment( ) . await ?, @r"
1046
- :hourglass: Trying commit pr-1-sha with merge merge-main-sha1-pr-1-sha-0 …
1043
+ :hourglass: Trying commit pr-1-sha with merge merge-0-1 …
1047
1044
1048
1045
To cancel the try build, run the command `@bors try cancel`.
1049
1046
" ) ;
0 commit comments