Skip to content

Run post-upload hook after local validation completes - #3218

Merged
bghira merged 1 commit into
mainfrom
fix/3199-manual-validation-upload-hook
Sep 7, 2026
Merged

bghira merged 1 commit into
mainfrom
fix/3199-manual-validation-upload-hook

Conversation

@bghira

@bghira bghira commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Completing built-in validation from the WebUI previously skipped post_upload_script when no publishing provider was configured. The validation completion path now invokes the existing shared hook for local runs, using output_dir as {local_checkpoint_path} and an empty remote path, without requiring a checkpoint.

This also covers scheduled validation and base-model benchmarks. Configured providers retain their existing per-upload paths and hook behavior; upload failures do not generate an extra local hook. Skipped, failed, aborted, non-main-rank validation and external-script launches do not trigger the hook. Updated option documentation in all six languages and WebUI field help.

Validation: reproduced the missing hook with a failing forced-validation regression before the fix, then passed 41 tests with .venv/bin/python -m unittest -v -f tests.test_validation_upload_hook tests.test_validation_external tests.test_validation_abort tests.test_validation_audio_mock tests.test_script_runner. Tests mock generation while exercising the real validation completion and script formatting paths. The available environment uses Python 3.14 rather than the documented 3.13. git diff --check passes.

Fixes #3199.

@bghira
bghira merged commit eb78ea8 into main Sep 7, 2026
4 checks passed
@bghira
bghira deleted the fix/3199-manual-validation-upload-hook branch September 7, 2026 01:44
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.

[enhancement] WebUI validation image generation trigger should call post_upload_script

1 participant