Skip to content

ci(e2e): build functions one at a time - #39

Merged
ytsarev merged 1 commit into
mainfrom
ci-e2e-build-concurrency
Sep 29, 2026
Merged

ytsarev merged 1 commit into
mainfrom
ci-e2e-build-concurrency

Conversation

@ytsarev

@ytsarev ytsarev commented Sep 29, 2026

Copy link
Copy Markdown
Member

Unblocks the e2e for #38.

e2e.yaml runs on pull_request_target, so a pull request is always tested with main's copy of this workflow, never its own. #38 moves the composition functions to Python, and Python function builds share one pip-cache Docker volume; on a fresh runner, concurrent builds fail with mkdir ...: file exists. #38's e2e hit that on 6 of 6 attempts, and it can't pick up the fix from its own branch.

This adds only UP_MAX_CONCURRENCY: "1" to e2e.yaml. It has no effect on the current KCL functions. #38 carries the same change for ci.yaml and composition-tests.yaml, which do run from the PR branch.

Root cause is in up's Python builder (internal/xpkg/functions/python_sdk.go), which mounts the shared volume without NoCopy over a 38 MB pre-seeded pip cache in the build image. This line can go once that's fixed upstream.

e2e.yaml runs on pull_request_target, so a pull request is tested with
main's copy of this workflow, not its own. #38 moves the composition
functions to Python and needs UP_MAX_CONCURRENCY=1 here: every Python
function build mounts the same pip-cache Docker volume, and on a fresh
runner concurrent builds fail creating it with "mkdir ...: file exists".
Its e2e hit that on 6 of 6 attempts. It cannot pick the fix up from its
own branch, so it has to land here first.

No effect on the current KCL functions, which have no such build step.
@ytsarev
ytsarev enabled auto-merge (squash) September 29, 2026 12:00
@ytsarev
ytsarev disabled auto-merge September 29, 2026 12:08
@ytsarev
ytsarev merged commit 4bdfb81 into main Sep 29, 2026
3 checks passed
@ytsarev
ytsarev deleted the ci-e2e-build-concurrency branch September 29, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants