Skip to content

chore(tests): move accuracy_tests to functional tests as test_inference#620

Open
tybulewicz wants to merge 2 commits into
masterfrom
ttybulew/combine_tests
Open

chore(tests): move accuracy_tests to functional tests as test_inference#620
tybulewicz wants to merge 2 commits into
masterfrom
ttybulew/combine_tests

Conversation

@tybulewicz

@tybulewicz tybulewicz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR relocates inference/accuracy-style coverage by replacing the previous tests/accuracy suite with functional inference test setup, plus updated model-download tooling and CI/docs wiring.

Fixes #597

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@github-actions github-actions Bot added tests Related to tests docs Related to documentation build Related to build scripts samples labels Jul 1, 2026
@tybulewicz tybulewicz requested a review from Copilot July 2, 2026 07:39

Copilot AI 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.

Pull request overview

This PR relocates and expands inference/accuracy-style coverage by replacing the previous tests/accuracy suite with a new parameterized functional inference test setup, plus updated model-download tooling and CI/docs wiring.

Changes:

  • Added tests/functional/test_inference.py and new functional scope JSONs to drive broad model inference validation.
  • Added tests/functional/download_models.py and supporting JSON lists for downloading example models/images.
  • Removed legacy tests/accuracy/* and updated GitHub Actions + example READMEs/CONTRIBUTING to point at the new functional tooling.

Reviewed changes

Copilot reviewed 15 out of 22 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
model_api/tests/precommit/public_scope.json Removed precommit model list (now absent).
model_api/tests/precommit/init.py Removed precommit tests package marker.
model_api/tests/functional/test_inference.py New parameterized functional inference test and result-comparison helpers.
model_api/tests/functional/serving_scope.json New minimal scope JSON for serving-related downloads/tests.
model_api/tests/functional/public_scope.json New full functional test scope with reference outputs.
model_api/tests/functional/images.json New image manifest for downloads/examples.
model_api/tests/functional/examples.json New example model manifest for downloads/examples.
model_api/tests/functional/download_models.py New async downloader for models + datasets used by functional/tests/examples.
model_api/tests/functional/conftest.py Adds CLI options + dump hook for functional inference runs.
model_api/tests/accuracy/test_YOLOv8.py Removed legacy accuracy test.
model_api/tests/accuracy/conftest.py Removed legacy accuracy conftest/options.
model_api/tests/accuracy/init.py Removed legacy accuracy package marker.
model_api/examples/zsl_visual_prompting/README.md Updated download instructions to functional downloader/manifests.
model_api/examples/visualization/README.md Updated download instructions to functional downloader/manifests.
model_api/examples/visual_prompting/README.md Updated download instructions to functional downloader/manifests.
model_api/examples/serving_api/README.md Updated download instructions to functional downloader/manifests.
model_api/examples/metrics/README.md Updated download instructions to functional downloader/manifests.
model_api/examples/asynchronous_api/README.md Updated download instructions to functional downloader/manifests.
CONTRIBUTING.md Updated contributor commands for new functional downloader/tests.
.github/workflows/pre_commit.yml Reworked CI to run unit+functional + serving tests without legacy accuracy job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CONTRIBUTING.md Outdated
@tybulewicz tybulewicz marked this pull request as ready for review July 2, 2026 07:57
@tybulewicz tybulewicz requested review from a team as code owners July 2, 2026 07:57
@tybulewicz tybulewicz enabled auto-merge July 2, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Related to build scripts docs Related to documentation samples tests Related to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combine accuracy_tests with functional_tests

2 participants