Skip to content

[Bugfix] Add .gitignore rules to exclude downloaded dataset data files in ais_bench/datasets/ - #386

Merged
yejj710 merged 2 commits into
AISBench:masterfrom
yejj710:update_gitignore
Jul 2, 2026
Merged

yejj710 merged 2 commits into
AISBench:masterfrom
yejj710:update_gitignore

Conversation

@yejj710

@yejj710 yejj710 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

PR Type / PR类型

  • Bugfix(Bug 修复)
  • Feature(功能新增)
  • Docs(文档更新)
  • CI/CD(持续集成/持续部署)
  • Refactor(代码重构)
  • Perf(性能优化)
  • Dependency(依赖项更新)
  • Test-Cases(测试用例更新)
  • Other(其他)

🔍 Motivation / 变更动机

数据集(如 GSM8K、GPQA、AIME2025 等)下载后默认存放在 ais_bench/datasets/ 目录下,产生大量 .jsonl、.csv、.zip 等数据文件。由于 .gitignore 未覆盖该目录,这些数据文件会作为 untracked files
出现在 git status 中,影响日常开发的代码审查和提交体验。

📝 Modification / 修改内容

在 .gitignore 中新增 32行规则:

  • ais_bench/datasets/** — 忽略 ais_bench/datasets/ 下所有文件及子目录
  • !ais_bench/datasets/**/*.py — 例外放行 .py 源码文件(如 init.py、synthetic_config.py),确保 Python 模块仍可被 git 正常跟踪

这样后续下载任何新数据集的数据文件都会被自动忽略,无需手动维护。

📐 Associated Test Results / 关联测试结果

仅为 .gitignore 变更,不涉及代码逻辑

⚠️ BC-breaking (Optional) / 向后不兼容变更(可选)

无。

⚠️ Performance degradation (Optional) / 性能下降(可选)

无。

@github-actions github-actions Bot added the bugfix label Jul 2, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .gitignore file to ignore downloaded dataset files under ais_bench/datasets/ while attempting to preserve Python source modules. The reviewer correctly pointed out that ignoring the entire directory structure prevents Git from traversing subdirectories, making the exclusion rule for .py files ineffective. A suggestion was provided to explicitly exclude subdirectories from being ignored so that Python source files can be tracked properly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread .gitignore Resolved
@yejj710
yejj710 merged commit 7a905c6 into AISBench:master Jul 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants