opencompass icon indicating copy to clipboard operation
opencompass copied to clipboard

[Bug] 无法提交PR,因为pre-commit-config.yaml中的update-dataset-suffix和update-dataset-suffix-pacakge钩子不兼容windows环境

Open Amatilas opened this issue 5 months ago • 0 comments

Prerequisite

Type

I'm evaluating with the officially supported tasks/models/datasets.

Environment

{'CUDA available': False, 'GCC': 'n/a', 'MMEngine': '0.10.7', 'MUSA available': False, 'OpenCV': '4.11.0', 'PyTorch': '2.7.1+cpu', 'PyTorch compiling details': 'PyTorch built with:\n' ' - C++ Version: 201703\n' ' - MSVC 192930158\n' ' - Intel(R) oneAPI Math Kernel Library Version ' '2025.1-Product Build 20250306 for Intel(R) 64 ' 'architecture applications\n' ' - Intel(R) MKL-DNN v3.7.1 (Git Hash ' '8d263e693366ef8db40acc569cc7d8edf644556d)\n' ' - OpenMP 2019\n' ' - LAPACK is enabled (usually provided by ' 'MKL)\n' ' - CPU capability usage: AVX2\n' ' - Build settings: BLAS_INFO=mkl, ' 'BUILD_TYPE=Release, ' 'COMMIT_SHA=e2d141dbde55c2a4370fac5165b0561b6af4798b, ' 'CXX_COMPILER=C:/actions-runner/_work/pytorch/pytorch/pytorch/.ci/pytorch/windows/tmp_bin/sccache-cl.exe, ' 'CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc ' '/Zc:__cplusplus /bigobj /FS /utf-8 ' '-DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO ' '-DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER ' '-DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM ' '-DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE ' '/wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 ' '/wd4244 /wd4804 /wd4273, LAPACK_INFO=mkl, ' 'PERF_WITH_AVX=1, PERF_WITH_AVX2=1, ' 'TORCH_VERSION=2.7.1, USE_CUDA=0, USE_CUDNN=OFF, ' 'USE_CUSPARSELT=OFF, USE_GFLAGS=OFF, ' 'USE_GLOG=OFF, USE_GLOO=ON, USE_MKL=ON, ' 'USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, ' 'USE_NNPACK=OFF, USE_OPENMP=ON, USE_ROCM=OFF, ' 'USE_ROCM_KERNEL_ASSERT=OFF, \n', 'Python': '3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 ' '64 bit (AMD64)]', 'lmdeploy': "not installed:No module named 'lmdeploy'", 'numpy_random_seed': 2147483648, 'opencompass': '0.4.2+5d75dc2', 'sys.platform': 'win32', 'transformers': '4.52.4'}

Reproduces the problem - code/configuration sample

在windows环境下提交PR,自动触发pre-commit检测,就会报错

Reproduces the problem - command or script

git commit

Reproduces the problem - error message

dataset suffix updater...................................................Failed

  • hook id: update-dataset-suffix
  • exit code: 9009 dataset suffix updater(package)..........................................Failed
  • hook id: update-dataset-suffix-pacakge
  • exit code: 9009

Other information

问题在于.pre-commit-config.yaml文件中update-dataset-suffix和update-dataset-suffix-pacakge钩子函数的配置 没有兼容windows环境

Amatilas avatar Jun 24 '25 03:06 Amatilas