Repository navigation
Conversation
reference.sessions rejects every release but 5.4.0, and fresh installs now resolve 5.5.0, failing gate3, gate8 and the image calendar path.
pandas-market-calendars 5.4.0 serves XNYS from exchange-calendars, so the drift refusal now checks both releases and the pin is tested.
SQLAlchemy 2.1 retyped Result; capping the minor and pinning mypy to the backtest-engine release keeps the type gate from moving by itself.
runtime.txt pins what the image ships; dev.txt adds the dev extra. The development guide documents how to regenerate both.
Wheels only and hashes required, then the project with --no-deps and pip check, so a drifted lock fails the build instead of shipping.
gate2 now fails when pyproject.toml and requirements/ drift, extras included, and gate5 imports the app with the runtime lock alone.
4 tasks done
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.
What and why
Depends on #66 (this branch is based on
build/harden-dependency-ranges). Paired with Idea2Strategy/Idea2Strategy-backtest-engine#105, which locks backtest-engine the same way.pyproject.tomlkeeps the allowed ranges; the image and CI installed whatever resolved on the day. This adds hash-locked requirement sets and installs only from them.requirements/runtime.txt(41 packages) andrequirements/dev.txt(runtime plus thedevextra), produced byuv pip compile --python-version 3.12 --universal --generate-hashes. The universal resolution covers the linux amd64/arm64 image and keeps platform-only packages behind markers, so macOS and Windows dev machines can use the same files..gitignoreun-ignoresrequirements/*.txt.--require-hashes, then the project with--no-depsandpip checkbefore the perl purge. The container contract test pins both install lines.--no-deps. gate5 uses the runtime lock alone. gate2 runspip checkand fails when pyproject (extras included) andrequirements/drift, or when a runtime pin differs between the two files. The market loader keeps its ownuv.lock.docs/IDEA2STRATEGY_DEVELOPMENT.mddocuments how to regenerate the lock.Merge order note: #69 moves
pandas-stubsto 3.x. Whichever of the two lands second must regeneraterequirements/dev.txt. gate2's lock check reports the mismatch (pandas-stubs<4,>=3; extra == "dev": the lock pins 2.3.3.260113).Verified
DOCKER_BUILDKIT=0 docker build): hash-checked wheel install,pip checkclean. gate5b smoke against it: arm64, imports OK, no perl-base,/readyREADY, clean stop with exit 0.requirements/dev.txtplus--no-deps -e .:pip checkclean. gate2 lock step passed, and failed as expected on a pyproject bump that was not regenerated. mypy clean, ruff clean.Checklist