@@ -8913,27 +8913,61 @@ fn missing_subdirectory_url() -> Result<()> {
89138913// This wheel was uploaded with a bad crc32 and we weren't detecting that
89148914// (Could be replaced with a checked-in hand-crafted corrupt wheel?)
89158915#[ test]
8916- fn bad_crc32 ( ) -> Result < ( ) > {
8917- let context = TestContext :: new ( "3.11" ) ;
8918- let requirements_txt = context. temp_dir . child ( "requirements.txt" ) ;
8919- requirements_txt. touch ( ) ?;
8916+ fn bad_crc32 ( ) {
8917+ let context = TestContext :: new ( "3.11" ) . with_filtered_counts ( ) ;
89208918
8921- uv_snapshot ! ( context. pip_install( )
8919+ uv_snapshot ! ( context. filters( ) , context. pip_install( )
8920+ . env( EnvVars :: UV_CRC_MODE , "enforce" )
89228921 . arg( "--python-platform" ) . arg( "linux" )
8923- . arg( "osqp @ https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" ) , @r"
8922+ . arg( "osqp @ https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" ) , @r### "
89248923 success: false
89258924 exit_code: 1
89268925 ----- stdout -----
89278926
89288927 ----- stderr -----
8929- Resolved 7 packages in [TIME]
8928+ Resolved [N] packages in [TIME]
89308929 × Failed to download `osqp @ https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl`
89318930 ├─▶ Failed to extract archive: osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
89328931 ╰─▶ Bad CRC (got ca5f1131, expected d5c95dfa) for file: osqp/ext_builtin.cpython-311-x86_64-linux-gnu.so
8933- "
8932+ "###
89348933 ) ;
89358934
8936- Ok ( ( ) )
8935+ // When using --verbose, we should see
8936+ // WARN Bad CRC (got ca5f1131, expected d5c95dfa) for file: osqp/ext_builtin.cpython-311-x86_64-linux-gnu.so
8937+ uv_snapshot ! ( context. filters( ) , context. pip_install( )
8938+ . env( EnvVars :: UV_CRC_MODE , "lax" )
8939+ . arg( "--python-platform" ) . arg( "linux" )
8940+ . arg( "osqp @ https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" ) , @r###"
8941+ success: true
8942+ exit_code: 0
8943+ ----- stdout -----
8944+
8945+ ----- stderr -----
8946+ Resolved [N] packages in [TIME]
8947+ Prepared [N] packages in [TIME]
8948+ Installed [N] packages in [TIME]
8949+ + jinja2==3.1.3
8950+ + joblib==1.3.2
8951+ + markupsafe==2.1.5
8952+ + numpy==1.26.4
8953+ + osqp==1.0.2 (from https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl)
8954+ + scipy==1.12.0
8955+ + setuptools==69.2.0
8956+ "###
8957+ ) ;
8958+
8959+ uv_snapshot ! ( context. filters( ) , context. pip_install( )
8960+ . env( EnvVars :: UV_CRC_MODE , "none" )
8961+ . arg( "--python-platform" ) . arg( "linux" )
8962+ . arg( "osqp @ https://files.pythonhosted.org/packages/00/04/5959347582ab970e9b922f27585d34f7c794ed01125dac26fb4e7dd80205/osqp-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" ) , @r###"
8963+ success: true
8964+ exit_code: 0
8965+ ----- stdout -----
8966+
8967+ ----- stderr -----
8968+ Audited [N] packages in [TIME]
8969+ "###
8970+ ) ;
89378971}
89388972
89398973#[ test]
0 commit comments