Add release-backed concurrent backtest server#4
Merged
Conversation
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
pineforge-release:0.1.12multi-arch imagepineforge-releasewith bounded concurrency, bounded queueing, execution timeouts, structured phase errors, health/readiness endpoints, request IDs, and optional bearer authentication.soartifacts by generated C++ hash plus release/engine/toolchain identity--server-urlharness routing while retaining direct local release-container executionpineforge-release:latestchannel while keeping the default pinned by semver and OCI digestWhy
pineforge-releasealready owns the combined engine and codegen runtime. Vendoring both repositories inpineforge-datamade installation depend on a source checkout and forced local image builds. The API server provides a reusable runtime for concurrent harness clients, while the compile cache removes repeatedg++work without keying artifacts directly from Pine source.Cache behavior
Every request is transpiled first. The server hashes the generated C++ and combines it with the release image, engine/codegen versions, architecture, and parity-critical compiler flags. A cache hit skips compilation and runs the cached strategy library against that request's OHLCV and parameters. Concurrent misses for one key compile exactly once.
Compatibility notes
--imageremains an alias for--runtime-image.--exchangeremains an alias for--venue.backtestplus a versioned runtime envelope.0.1.12does not expose trace collection;--tracenow fails explicitly.Validation
ruff format --check src testsruff check .mypy srcpytest(62 passed, 2 Docker-gated)pineforge-releaseintegration2 passed)