ci: add backend unit tests to Tests workflow#339
Open
shivv23 wants to merge 11 commits intoc2siorg:mainfrom
Open
ci: add backend unit tests to Tests workflow#339shivv23 wants to merge 11 commits intoc2siorg:mainfrom
shivv23 wants to merge 11 commits intoc2siorg:mainfrom
Conversation
Supported augmentation techniques:
- flip_horizontal: Mirror along vertical axis
- flip_vertical: Mirror along horizontal axis
- rotate_90: Rotate by 90 degrees
- brightness: Adjust brightness by 20%
- zoom: Zoom to 90% and resize
- gaussian_noise: Add Gaussian noise
- random_crop: Crop to 85% and resize
Endpoint: POST /data/augment/image/{file_id}
Export trained Keras models to:
- SavedModel (TensorFlow native)
- TFLite (mobile/edge optimized)
- ONNX (cross-framework)
Endpoint: GET /model/export/{model_name}?format=savedmodel|tflite|onnx
…re importance
For classification models:
- Confusion matrix generation
- Per-class metrics (precision, recall, F1-score)
For regression models:
- Feature importance via permutation importance
Endpoint: GET /model/interpret/{model_name}?file_id=&project_id=
Compare metrics across multiple training runs: - Chronological view of runs with loss, accuracy, epochs - Automatic best run identification (lowest loss) - Pagination support with configurable limit Endpoint: GET /model/compare?project_id=&limit=
Grid search over:
- Learning rate (0.001, 0.01)
- Batch size (16, 32)
- Epochs (5, 10)
Returns top 5 configurations sorted by loss with best config highlighted.
Also includes run comparison for tracking training history.
Endpoints:
- GET /model/tune/{model_name}
- GET /model/compare
PR ReviewRebaseYour branch is 32 commit(s) behind Merge commits detected — please use rebase instead of merge: SquashYour PR has 11 commits. Please squash into a single commit. How to fixgit fetch origin
git rebase -i origin/main # mark all but first commit as "squash"
git push --force-with-leaseThis comment updates automatically on each push. |
c86b3c4 to
f27e40c
Compare
Contributor
Author
|
Hey @ivantha, apologies again for the earlier confusion with polluted commits. This PR now has the cleanest possible state — only 1 new file (integration-tests.yml) added. The 11 commits visible in the history are from main's merge chain, not file changes. The actual diff is just +56 lines in 1 new file. All 162 backend tests pass. Happy to address any review feedback here! |
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
The CI pipeline had no backend unit test coverage — the 162 tests in
tensormap-backend/tests/were never run on PRs. This PR adds aTestsworkflow with two parallel jobs:backend-unit-tests: runspytest tests/ -v --tb=shortintegration-tests: runspytest ../tests/integration/ -v --tb=shortChanges
.github/workflows/integration-tests.ymlfilepull_request_targetfor proper fork supportmainValidation
Files Changed
.github/workflows/integration-tests.yml