Merged
Conversation
- Add syncstorage package with HTTP client and process runner - Runner manages lifecycle: download, start, health check, worker registration - Integrate sync-storage into adapter: master worker sends in-progress results - Add on_running_started/on_block_completed lifecycle hooks in Test() - Add SyncStoragePort and ImportRealtime config options - Follows the same pattern as adapters-python PR #243
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.
Description
Добавлена интеграция с sync-storage по аналогии с adapters-python PR #243.
Что сделано
1. Пакет
syncstorageclient.go— простой HTTP-клиент для sync-storage API (register, health, set_worker_status, in_progress_test_result). Написан вручную, без автогенерации — чистый и читаемый.runner.go— управление lifecycle sync-storage процесса:2. Интеграция в адаптер
init.go— инициализация sync-storage runner при старте адаптераtestresult.go— master-воркер отправляет cut-результат в sync-storage и пишет в TMS со статусом InProgresstest.go— добавлены lifecycle-хукиonRunningStarted()/onBlockCompleted()syncstorage_integration.go— функции-обёртки для вызовов set_worker_status3. Конфигурация
SyncStoragePort(TMS_SYNC_STORAGE_PORT, default: 49152)ImportRealtime(TMS_IMPORT_REALTIME, default: false)Sync Storage API endpoints
/health/register/set_worker_status/in_progress_test_resultСовместимость