ci: overlap CUBRID boot with pip install and cache pip downloads - #39
Merged
Conversation
Start the CUBRID container before dependency install so its image pull and engine init run concurrently with pip instead of serially, and cache ~/.cache/pip with a rolling key to avoid re-downloading the large stable wheels (pandas, matplotlib, numpy, sqlalchemy) on every run.
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
Attacks the real smoke-test bottleneck. On the last run, container boot +
dependency install was ~80s while the actual example suite ran in ~14s. This PR
targets the 80s fixed cost:
before dependency install, so its image pull and engine initialization run
concurrently with pip. The readiness gate afterward usually finds the engine
already up instead of waiting on a cold start after install finishes.
~/.cache/pipis cached with a rolling key, so thelarge stable wheels (pandas, matplotlib, numpy, sqlalchemy) are not
re-downloaded every run. The key is intentionally not version-hashed — the
target packages (pycubrid, sqlalchemy-cubrid, cubrid-mcp-server) float to
their latest release, and pip still queries PyPI for newer versions.
What is unchanged
first;
VERIFY_PATHSlogic is identical).make verifyare thesame; only step ordering and a cache layer changed.
Validation
Install deps → Record versions → Wait readiness → external connect → verify.
csql SELECT 1succeeds, so starting the container earlier cannot race theexamples.