Skip to content

Fix mkdir hardcode in runners and partitioners - #2060

Merged
Myhs-phz merged 5 commits into
open-compass:mainfrom
BIGWangYuDong:wyd/tmp_api
Oct 13, 2026
Merged

Myhs-phz merged 5 commits into
open-compass:mainfrom
BIGWangYuDong:wyd/tmp_api

Conversation

@BIGWangYuDong

@BIGWangYuDong BIGWangYuDong commented Apr 28, 2025 •

Copy link
Copy Markdown
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

  1. The tmp file is hard-coded in the runners, add tmp_dir, which can setting in the config.
  2. In partitioners, is hardcoded to mkdir('.cache') which may get error if set other dataset_size_path

Modification

  1. add tmp_dir in the runner.
  2. update mkdir logic in partitioners

BC-breaking (Optional)

seems no BC-breaking.

@BIGWangYuDong BIGWangYuDong changed the title add tmp_dir in runners to avoid hard-code [WIP] add tmp_dir in runners to avoid hard-code Apr 28, 2025
@BIGWangYuDong BIGWangYuDong changed the title [WIP] add tmp_dir in runners to avoid hard-code Fix mkdir hardcode in runners and partitioners Apr 28, 2025

@MaiziXiao MaiziXiao 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.

LGTM

@tonysy

tonysy commented Jun 5, 2025

Copy link
Copy Markdown
Collaborator

Thanks for your contribution. Please fix the conflicts.

@BIGWangYuDong

Copy link
Copy Markdown
Contributor Author

Thanks for your contribution. Please fix the conflicts.

Fixed

@Myhs-phz
Myhs-phz merged commit 281d52c into open-compass:main Oct 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants