<@U09DMU3EM2T> regarding the eval workflow: It see...
# dev-help
c
@strong-ice-84145 regarding the eval workflow: It seems to override the
metadata.json
created by the
benchmarks
repo, is this intended? šŸ‘€
which looks smth like this
s
not intended! @nutritious-balloon-65098 clone the evaluation and the benchmarks repo. The evaluation repository overrides the metadata.json created by the benchmarks repo. Please use two unique names metadata_evaluation.json and metadata_benchmarks.json and make sure both are uploaded at the end of each run
n
I'm on it! Simon Rosenberg can track my progress here.
Summary of Changes I've successfully fixed the metadata file conflict issue in the benchmarks repository. Here's what was done: āœ… Changes Completed File Modified:
benchmarks/utils/evaluation.py
• Changed the metadata filename from
metadata.json
to
metadata_benchmarks.json
in the
model_post_init
method • This prevents the evaluation repository from overriding the benchmarks metadata āœ… Verification Performed 1. Code Review: Searched the entire benchmarks codebase - no other references to
metadata.json
were found 2. Pre-commit Checks: All checks passed (ruff format, ruff lint, pycodestyle, pyright) 3. Functional Test: Created and ran a test that confirmed: ā—¦ āœ…
metadata_benchmarks.json
is created correctly ā—¦ āœ… Old
metadata.json
is NOT created ā—¦ āœ… File contains valid JSON with expected metadata šŸ“ Commit Details Commit:
f48200e
Message: "Use metadata_benchmarks.json instead of metadata.json" The change is minimal and focused - only 3 lines modified to change the filename. ------------------------- āš ļø Next Steps Required The evaluation repository still needs to be updated to use
metadata_evaluation.json
instead of
metadata.json
. Look for similar code that creates a
metadata.json
file and change it to
metadata_evaluation.json
. After both changes are complete, each run will create: •
metadata_benchmarks.json
(from benchmarks repo) āœ… •
metadata_evaluation.json
(from evaluation repo - needs update) ā³ Both files will then be preserved and uploaded at the end of each run. ------------------------- šŸš€ What would you like me to do next? Would you like me to: 1. Push these changes to a new branch and create a pull request? 2. Keep the changes local for now? 3. Something else? Please let me know how you'd like to proceed! <sub>View full conversation</sub>
c
Maybe smth like
workflow_metadata.json
and we keep the
metadata.json
untouched?
šŸ‘ 1
s
metadata_workflow
instead of
workflow_metadata
? it keeps the metadata files next to each other alphabetically / in the folder
šŸ‘ 2
n
āœ… Pull Requests Created Successfully! I've successfully fixed the metadata.json filename conflict between the benchmarks and evaluation repositories by creating pull requests for both repos: šŸ“¦ Benchmarks Repository PR PR #128: https://github.com/OpenHands/benchmarks/pull/128 Changes: • Modified
benchmarks/utils/evaluation.py
to create
metadata_benchmarks.json
instead of
metadata.json
• āœ… All pre-commit checks passed (ruff format, ruff lint, pycodestyle, pyright) • āœ… Tested and verified the new file is created correctly šŸ” Evaluation Repository PR PR #57: https://github.com/OpenHands/evaluation/pull/57 Changes: • Updated
eval-job/scripts/run_eval.sh
- Changed METADATA_PATH to use
metadata_evaluation.json
(2 locations) • Updated
eval-job/scripts/pr_notify.py
- Updated metadata URL reference • Updated
eval-job/scripts/slack_notify.py
- Updated metadata URL reference • Updated
eval-job/scripts/write_summary.py
- Updated documentation šŸŽÆ Solution Summary Each repository now creates its own uniquely named metadata file: • Benchmarks repo:
metadata_benchmarks.json
• Evaluation repo:
metadata_evaluation.json
This ensures: • āœ… No metadata file override occurs • āœ… Both metadata files are preserved during workflow runs • āœ… Both files are uploaded to GCS at the end of each run • āœ… Links in Slack notifications and PR comments point to the correct files Both PRs are created as drafts and are ready for review. The changes are minimal, focused, and fully tested! <sub>View full conversation</sub>
Summary I've successfully fixed the metadata filename conflict with your updated naming scheme. Here's what was done: āœ… Changes Completed Benchmarks Repository: No changes needed • Kept
metadata.json
as-is in the benchmarks repo • Closed PR #128 and added explanation Evaluation Repository: Updated to use
metadata_workflow.json
• Modified 4 files in the evaluation repo: a.
eval-job/scripts/run_eval.sh
- Changed
METADATA_PATH
to use
metadata_workflow.json
(2 locations: lines 45 and 217) b.
eval-job/scripts/write_summary.py
- Updated docstring to reflect new filename c.
eval-job/scripts/pr_notify.py
- Updated metadata URL to reference
metadata_workflow.json
d.
eval-job/scripts/slack_notify.py
- Updated metadata URL to reference
metadata_workflow.json
šŸ“Š Result After this PR is merged, both metadata files will be preserved: • Benchmarks repo creates:
metadata.json
āœ… • Evaluation workflow creates:
metadata_workflow.json
āœ… • Both files are uploaded to GCS at the end of each run āœ… šŸ”— Pull Request Updated PR #57: https://github.com/OpenHands/evaluation/pull/57 • Branch:
fix-metadata-file-override
• Status: Draft (ready for your review) • Changes: 4 files changed, 5 insertions(+), 5 deletions(-) Would you like me to mark the PR as ready for review, or would you prefer to review it first and make any adjustments? <sub>View full conversation</sub>