Adding terraform generation to openbench.#343
Open
kishorealliiita wants to merge 1 commit intogroq:mainfrom
Open
Adding terraform generation to openbench.#343kishorealliiita wants to merge 1 commit intogroq:mainfrom
kishorealliiita wants to merge 1 commit intogroq:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Terraform Generation benchmark to openbench: the model gets natural-language prompts and must produce Terraform (HCL) for two tasks (VPC + 3 subnets + 3 EC2, and S3 bucket + bucket policy). The scorer extracts .tf code blocks from the model output, runs terraform fmt, terraform init -backend=false, and terraform validate, and scores 1.0 only if init and validate succeed (no plan/apply or LocalStack). Includes dataset, eval, scorer, config entry, registry import, unit tests for extraction/dataset/scorer, and an integration test for bench eval terraform_generation.
What are you adding?
Changes Made
Integration (tests/integration/test_cli.py): test_basic_terraform_generation() runs bench eval terraform_generation --limit 1 with a Groq model.
Testing
pytest)pre-commit run --all-files)Checklist