Skip to content

Commit a3135e8

Browse files
committed
ci: optimized performance using tmpfs
1 parent ca60a25 commit a3135e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vars/runJenkinsPipeline.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def call(){
7070
filename 'ci/docker/python/linux/Dockerfile'
7171
label 'linux && docker && x86'
7272
additionalBuildArgs '--build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg PIP_CACHE_DIR=/.cache/pip'
73-
args '--mount source=python-jenkins-tmp-getmarcapi,target=/tmp'
73+
args '--mount source=python-jenkins-tmp-getmarcapi,target=/tmp --mount type=tmpfs,dst=/.config'
7474
}
7575
}
7676
environment{
@@ -406,11 +406,11 @@ def call(){
406406
image = docker.build(UUID.randomUUID().toString(), '-f ci/docker/python/linux/Dockerfile --build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg PIP_CACHE_DIR=/.cache/pip .')
407407
}
408408
try{
409-
image.inside('--mount source=python-jenkins-tmp-getmarcapi,target=/tmp'){
409+
image.inside('--mount source=python-jenkins-tmp-getmarcapi,target=/tmp --mount type=tmpfs,dst=/.local --tmpfs /tox_workdir:exec'){
410410
try{
411411
sh( label: 'Running Tox',
412412
script: """uv python install cpython-${version}
413-
uv run --frozen --only-group tox --with tox-uv tox run -e ${toxEnv} --runner uv-venv-lock-runner
413+
uv run --frozen --only-group tox --with tox-uv tox run -e ${toxEnv} --runner uv-venv-lock-runner --workdir /tox_workdir
414414
"""
415415
)
416416
} finally{

0 commit comments

Comments
 (0)