open-compass / open-compass/opencompass
[Bug] 无法提交PR,因为pre-commit-config.yaml中的update-dataset-suffix和update-dataset-suffix-pacakge钩子不兼容windows环境
@zhulinJulia24 is already working on this.
Since Jul 1, 2025.
- Dominant language
- Python
- Stars
- 7.5k
- Forks
- 869
- Avg merge
- 17h 52m
- Merged PRs (30d)
- 13
Description
Prerequisite
- I have searched Issues and Discussions but cannot get the expected help.
- The bug has not been fixed in the latest version.
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环境
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.