@@ -2,6 +2,10 @@ fn release_workflow() -> &'static str {
22 include_str ! ( "../.github/workflows/release.yml" )
33}
44
5+ fn ci_workflow ( ) -> & ' static str {
6+ include_str ! ( "../.github/workflows/ci.yml" )
7+ }
8+
59fn release_quality_policy_script ( ) -> & ' static str {
610 include_str ! ( "../.github/release-quality-policy.sh" )
711}
@@ -266,29 +270,20 @@ fn release_preflight_validates_the_private_workspace_build_before_mutating_relea
266270}
267271
268272#[ test]
269- fn release_blocks_preparation_and_publication_on_a_native_windows_workspace_build ( ) {
270- let windows_build = job_section ( release_workflow ( ) , "gate-windows-build" ) ;
271- let quality_policy = job_section ( release_workflow ( ) , "release-quality-policy" ) ;
272- let prepare = job_section ( release_workflow ( ) , "prepare" ) ;
273+ fn release_omits_unused_windows_artifacts_while_ci_checks_windows_source ( ) {
274+ let release = release_workflow ( ) ;
275+ let windows_compile = job_section ( ci_workflow ( ) , "windows-compile" ) ;
273276
274- assert ! ( windows_build. contains( "runs-on: windows-latest" ) ) ;
275- assert ! ( windows_build. contains( "run: cargo build --workspace --locked" ) ) ;
276- assert ! (
277- quality_policy. contains( "- gate-windows-build" ) ,
278- "the release quality policy must wait for the native Windows build"
279- ) ;
280- assert ! (
281- quality_policy. contains( "needs.gate-windows-build.result == 'success'" ) ,
282- "the release quality policy must fail closed when the native Windows build fails"
283- ) ;
284277 assert ! (
285- prepare . contains( "- gate-windows-build" ) ,
286- "release preparation must wait for the native Windows build "
278+ !release . contains( "gate-windows-build" ) ,
279+ "release must not restore the unused native Windows artifact gate "
287280 ) ;
288281 assert ! (
289- prepare . contains( "needs.gate- windows-build.result == 'success' " ) ,
290- "a failed native Windows build must prevent tag preparation and publication "
282+ !dist_workspace_manifest ( ) . contains( "x86_64-pc- windows-msvc " ) ,
283+ "release must not publish an unconsumed Windows artifact "
291284 ) ;
285+ assert ! ( windows_compile. contains( "runs-on: windows-latest" ) ) ;
286+ assert ! ( windows_compile. contains( "run: cargo check --workspace --locked" ) ) ;
292287}
293288
294289#[ test]
0 commit comments