Skip to content

Commit 83860ae

Browse files
authored
ci: set required memory request/limit for build_docs job (#13363)
With VPA now disabled, the default memory request/limit of 2Gi is not enough for this job. ## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
1 parent b973b3a commit 83860ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/gen_gitlab_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,19 @@ def gen_build_docs() -> None:
120120
print(" extends: .testrunner", file=f)
121121
print(" stage: hatch", file=f)
122122
print(" needs: []", file=f)
123+
print(" variables:", file=f)
124+
print(" PIP_CACHE_DIR: '${CI_PROJECT_DIR}/.cache/pip'", file=f)
125+
print(" KUBERNETES_MEMORY_REQUEST: 4Gi", file=f)
126+
print(" KUBERNETES_MEMORY_LIMIT: 4Gi", file=f)
123127
print(" script:", file=f)
124128
print(" - |", file=f)
125129
print(" hatch run docs:build", file=f)
126130
print(" mkdir -p /tmp/docs", file=f)
127131
print(" cp -r docs/_build/html/* /tmp/docs", file=f)
132+
print(" cache:", file=f)
133+
print(" key: v0-2.21-build_docs-pip-cache", file=f)
134+
print(" paths:", file=f)
135+
print(" - .cache", file=f)
128136
print(" artifacts:", file=f)
129137
print(" paths:", file=f)
130138
print(" - '/tmp/docs'", file=f)

0 commit comments

Comments
 (0)