Conversation
Contributor
|
Commit 9cb71b4
Test in progress |
Contributor
|
PR update: Test Executor Log Capture
Test Orphaned Executor Cleanup ✅
Test Bot Deployment (Controller Path Only)
Test Executor Search (Regression) ✅
Pending
Added test logs: 02232026.zip |
Contributor
Contributor
New Controllers Load
|
Contributor
|
Commit 9681033
Test archive and logs: 02242026.zip Preparing test summary |
rapcmia
approved these changes
Feb 23, 2026
Contributor
There was a problem hiding this comment.
- Setup on ubuntu24.04 on docker build
- Create local hummingbot-lib and successfully build docker image with this PR
- Use
make setup; make deploy - Successfully started hummingbot-api and focused on testing routes
- Executor log capture ✅
- Successfully started grid executor with low order size
- GET /executor//logs?level=ERROR and LIMIT=5
- Orphaned Executor Cleanup ✅
- Start a grid executor again then forced exit hummingbot-api using
docker kill <..> - Relaunch hummingbot-api and check executor status using routes and DB
- Executor tagged as TERMINATED by SYSTEM_CLEANUP
- Start a grid executor again then forced exit hummingbot-api using
- Bot Deployment (Controller Path Only) ✅
- Successfully created controllers for generic.{grid_strike, pmm_v1 and pmm_mister}
- Deploy and start bot:
- By default, headless is false
- If user wants headless mode, include
headless: truein:POST /bot-orchestration/deploy-v2-controllers
- Confirmed that SCRIPT_CONFIG is set, no CONFIG_FILE_NAME
- Successsfuly archived bots
- Executor Search (Regression) ✅
- Based on accumulated test logs
POST /executors/searchwith no filters okPOST /executors/searchwithstatus=RUNNINGokPOST /executors/searchwithconnector_namesfilter ok
- Issues reported to dev has been fixed
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.




PR: feat/update_hummingbot
Summary
This PR introduces executor log capture, orphaned executor cleanup on startup, consolidates bot deployment to the controller-based path (removing the legacy script deployment), and adds several new/updated controllers.
Changes
1. Executor Log Capture System (New)
utils/executor_log_capture.py- Per-executor log capture using Pythoncontextvarswith in-memory ring buffers (50 entries/executor, 200 global).GET /executors/{executor_id}/logs- Retrieve logs for a specific executor with optionallevelfilter andlimit.error_countandlast_erroradded toExecutorResponse.ExecutorLogEntryandExecutorLogsResponseinmodels/executors.py.hummingbot.strategy_v2.executorslogger and attributed to executors viaContextVarpropagation into spawned asyncio tasks.2. Orphaned Executor Cleanup on Startup
ExecutorRepository.cleanup_orphaned_executors()- Bulk-updates DB records stuck inRUNNINGstatus toTERMINATEDwithclose_type=SYSTEM_CLEANUP.ExecutorService.cleanup_orphaned_executors()- Called during app lifespan startup (inmain.py) afterexecutor_service.start()and before position recovery.3. Removal of V2 Script Deployment Path
V2ScriptDeploymentmodel frommodels/bot_orchestration.py.POST /deploy-v2-scriptendpoint fromrouters/bot_orchestration.py.V2ControllerDeploymentnow includesscript_config: Optional[str]field directly.DockerService.create_hummingbot_instance()now acceptsV2ControllerDeploymentinstead ofV2ScriptDeployment.HEADLESSrenamed toHEADLESS_MODE;CONFIG_FILE_NAMEno longer set (onlySCRIPT_CONFIG).4. New & Updated Controllers
New controllers:
directional_trading/ai_livestream.py- ML signal-driven directional trading via MQTTdirectional_trading/bollinger_v2.py- Enhanced Bollinger Bands strategygeneric/hedge_asset.py- Asset hedging controllergeneric/pmm_v1.py- Pure market making v1 (generic)generic/examples/- 8 example controllers (basic order, open/close, buy three times, candles data, full trading, liquidations monitor, market status, price monitor)Major updates:
generic/pmm_mister.py- Significantly expanded (~1274 lines added)generic/xemm_multiple_levels.py- Cross-exchange market making enhancementsgeneric/stat_arb.py- Statistical arbitrage updatesCleanup:
params_docs/controller_config_template_base.mdandparams_docs/generic_pmm.md5. Code Quality
main.py,models/__init__.pyDEBUGtoINFOltopartinmain.pyvalidation handlerQA Test Plan
Pre-requisites
python main.py)Test 1: Executor Log Capture
GET /executors/{id}while executor is runningerror_count: 0andlast_error: nullGET /executors/{id}/logsExecutorLogsResponsewithexecutor_id,logsarray, andtotal_countGET /executors/{id}/logs?level=ERRORGET /executors/{id}/logs?limit=5GET /executors/{id}/logsTest 2: Orphaned Executor Cleanup
status=RUNNINGRUNNINGin DBPOST /executors/searchwithstatus=TERMINATEDstatus=TERMINATED,close_type=SYSTEM_CLEANUPTest 3: Bot Deployment (Controller Path Only)
POST /deploy-v2-controllerswith valid controller configHEADLESS_MODEenv var is set (notHEADLESS);SCRIPT_CONFIGis set; noCONFIG_FILE_NAMEPOST /deploy-v2-script(removed endpoint)404 Not Foundor method not allowedTest 4: Executor Search (Regression)
POST /executors/searchwith no filtersPOST /executors/searchwithstatus=RUNNINGPOST /executors/searchwithconnector_namesfiltererror_countandlast_errorin active executor resultsTest 5: New Controllers Load
ai_livestream,bollinger_v2,hedge_asset,pmm_v1, all examplespmm_v1pmm_mister(updated)Test 6: API Startup Smoke Test
GET /docs(Swagger)deploy-v2-scriptis absent,executor/{id}/logsis present