Skip to content

Move: recipe parsing test from e2e/ to main test suite#1360

Merged
rahul-tuli merged 2 commits intomainfrom
move-recipe-parsing-regression-test
Apr 17, 2025
Merged

Move: recipe parsing test from e2e/ to main test suite#1360
rahul-tuli merged 2 commits intomainfrom
move-recipe-parsing-regression-test

Conversation

@rahul-tuli
Copy link
Copy Markdown
Collaborator

This PR relocates the test_recipe_parsing test from the tests/e2e/ directory to the main test suite to ensure it is executed as part of the regular CI workflow.

Rationale

  • The test was originally placed in e2e/, and is currently excluded from automated test runs.

Changes

  • Moved the test file out of tests/e2e/ and deleted the original.
  • Renamed test function and fixture for clarity.
  • Updated the test to use tmp_path for safe and isolated output handling.
  • Added a minimal assertion to verify output artifacts are created by the oneshot() pipeline.

Coverage

The test validates that the oneshot() function accepts:

  • Modifier objects
  • A YAML recipe string
  • A YAML recipe file

… been moved

to the main test suite to ensure it runs during CI.

Changes:
- Relocated the test to `tests/` since it doesn't require full end-to-end setup.
- Refactored to use `tmp_path` for clean output handling.
- Renamed test and fixtures for improved clarity and maintainability.
- Added minimal output assertion to ensure oneshot execution is verifiable.
- Removed the unused `e2e` version of the test.

Signed-off-by: Rahul Tuli <rahul@neuralmagic.com>
@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed.

Signed-off-by: Rahul Tuli <rahul@neuralmagic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

tests/llmcompressor/recipe/test_recipe_parsing.py:94

  • [nitpick] Consider enhancing this assertion to specifically verify that the expected output artifacts are produced, rather than just checking for any file in the output directory.
assert output_path.exists() and any(output_path.iterdir()), f"No output artifacts found in: {output_path}"

@rahul-tuli rahul-tuli marked this pull request as ready for review April 17, 2025 16:41
Copy link
Copy Markdown
Collaborator

@brian-dellabetta brian-dellabetta left a comment

Choose a reason for hiding this comment

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

good idea!

@rahul-tuli rahul-tuli merged commit 6dd58dd into main Apr 17, 2025
8 checks passed
@rahul-tuli rahul-tuli deleted the move-recipe-parsing-regression-test branch April 17, 2025 18:02
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.

4 participants