@@ -61,12 +61,6 @@ for (const releaseChannel of ["stable", "nightly"]) {
6161 ) ;
6262 assert . equal ( calls . length , 0 ) ;
6363 } ) ;
64-
65- test ( `allows a manual ${ releaseChannel } release from main` , async ( ) => {
66- const { options, calls } = releaseSourceFixture ( ) ;
67- await assertReleaseSource ( { ...options , releaseChannel } ) ;
68- assert . equal ( calls [ 0 ] . basehead , "candidate...main" ) ;
69- } ) ;
7064}
7165
7266for ( const comparisonStatus of [ "behind" , "diverged" ] ) {
@@ -79,13 +73,6 @@ for (const comparisonStatus of ["behind", "diverged"]) {
7973 } ) ;
8074}
8175
82- test ( "accepts a release commit already contained in main" , async ( ) => {
83- for ( const comparisonStatus of [ "ahead" , "identical" ] ) {
84- const { options } = releaseSourceFixture ( { comparisonStatus, eventName : "push" } ) ;
85- await assertCommitOnDefaultBranch ( { ...options , sha : "release-commit" } ) ;
86- }
87- } ) ;
88-
8976function fixture ( { releases = [ nightly ( 7 ) ] , comparisonStatus = "ahead" } = { } ) {
9077 const calls = [ ] ;
9178 return {
@@ -119,26 +106,6 @@ test("releases the first nightly when no nightly is published", async () => {
119106 assert . equal ( await shouldReleaseNightly ( options ) , true ) ;
120107} ) ;
121108
122- test ( "waits six hours after publication, including manual nightlies" , async ( ) => {
123- for ( const age of [ 0 , 3 , 6 - 1 / 3600 ] ) {
124- const { options, calls } = fixture ( { releases : [ nightly ( age ) ] } ) ;
125- assert . equal ( await shouldReleaseNightly ( options ) , false ) ;
126- assert . equal ( calls . length , 0 ) ;
127- }
128- } ) ;
129-
130- test ( "releases new commits at six hours and after an idle period" , async ( ) => {
131- for ( const age of [ 6 , 7 , 24 ] ) {
132- const { options } = fixture ( { releases : [ nightly ( age ) ] } ) ;
133- assert . equal ( await shouldReleaseNightly ( options ) , true ) ;
134- }
135- } ) ;
136-
137- test ( "skips unchanged commits after the gap" , async ( ) => {
138- const { options } = fixture ( { comparisonStatus : "identical" } ) ;
139- assert . equal ( await shouldReleaseNightly ( options ) , false ) ;
140- } ) ;
141-
142109test ( "uses publication time, not release order or the tagged commit date" , async ( ) => {
143110 const { options } = fixture ( {
144111 releases : [ nightly ( 10 ) , nightly ( 1 ) , nightly ( 20 , { tag_name : "nightly-v0.9.0" } ) ] ,
@@ -153,13 +120,6 @@ test("ignores stable releases and drafts when checking the gap", async () => {
153120 assert . equal ( await shouldReleaseNightly ( options ) , true ) ;
154121} ) ;
155122
156- test ( "compares against the published tag, including legacy nightly tags" , async ( ) => {
157- const tag = "nightly-v0.9.0" ;
158- const { options, calls } = fixture ( { releases : [ nightly ( 7 , { tag_name : tag } ) ] } ) ;
159- assert . equal ( await shouldReleaseNightly ( options ) , true ) ;
160- assert . equal ( calls [ 0 ] . basehead , `${ tag } ...new` ) ;
161- } ) ;
162-
163123test ( "fails instead of releasing when GitHub cannot supply release state" , async ( ) => {
164124 const { options } = fixture ( ) ;
165125 options . github . paginate = async ( ) => {
@@ -211,8 +171,3 @@ test("stable releases derive the version from legacy nightly tags", async () =>
211171 } ) ;
212172 assert . equal ( ( await resolveLatestNightlyCommit ( options ) ) . version , "0.9.0" ) ;
213173} ) ;
214-
215- test ( "stable releases fail without a published nightly" , async ( ) => {
216- const { options } = nightlyCommitFixture ( { releases : [ nightly ( 0 , { tag_name : "v1.0.0" } ) ] } ) ;
217- await assert . rejects ( resolveLatestNightlyCommit ( options ) , / N o p u b l i s h e d n i g h t l y / ) ;
218- } ) ;
0 commit comments