Add true end-to-end integration tests across all training pipelines - #187
Merged
Conversation
Agent-Logs-Url: https://github.com/ch55secake/hyperion/sessions/401f7553-0c16-4a4c-8ead-3310d3a705c7 Co-authored-by: ch55secake <87881861+ch55secake@users.noreply.github.com>
ch55secake
reviewed
Apr 20, 2026
ch55secake
reviewed
Apr 20, 2026
ch55secake
marked this pull request as ready for review
April 20, 2026 09:17
Agent-Logs-Url: https://github.com/ch55secake/hyperion/sessions/bc741db5-cf4e-4def-8cd3-9a1b2897de03 Co-authored-by: ch55secake <87881861+ch55secake@users.noreply.github.com>
…single-ticker constant) Agent-Logs-Url: https://github.com/ch55secake/hyperion/sessions/bc741db5-cf4e-4def-8cd3-9a1b2897de03 Co-authored-by: ch55secake <87881861+ch55secake@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add true end-to-end integration test across the full pipeline
Add true end-to-end integration tests across all training pipelines
Apr 20, 2026
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
Adds true end-to-end integration tests covering all three training pipeline classes and all registered trading strategies. Each pipeline is exercised through the complete sequence:
read_tickers → download_data → prepare_features → train → simulate, withStockDataDownloadermocked so no network calls are made. Two pre-existing bugs inSingleModelTrainingPipelinewere also fixed as a prerequisite for testing it.Changes in this pull request
tests/integration/__init__.pyandtests/integration/test_full_pipeline.pywith 24 end-to-end assertionsStackedModelTrainingPipeline: tested throughtrain → simulate → rank_and_allocate;simulate()runs all 13 registered strategiesSingleModelTrainingPipeline: addedTestSinglePipelineAlignmentandTestSinglePipelineSimulatetest classes; fixed two pre-existing bugs —_test_resultswas never stored afterevaluate(), andsimulate()was not implemented (leaving the class un-instantiable as an ABC)TimeSeriesStackedModelTrainingPipeline: addedTestTSStackedPipelineAlignmentandTestTSStackedPipelineSimulatetest classes; uses a single ticker becauseTimeSeriesStackersplits on the DataFrame index and duplicate timestamps from multiple tickers cause length mismatchesfast_cat_params()helper intests/helpers.pyfor minimal CatBoost parameters in testssimulate()calltraceback.print_exc()withlogger.error(..., exc_info=True)inSingleModelTrainingPipelineto comply with project logging guidelines