Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions config/docker/base/host-tools.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,22 @@ RUN CFLAGS="-DPyString_FromString=PyUnicode_FromString \
-DPyInt_AsLong=PyLong_AsLong" \
pip3 install dtschema --break-system-packages

# Download and build pahole v1.29
# Download and build pahole v1.31
#
# Build in Release mode: pahole's CMakeLists defaults to Debug, which adds
# -Werror (and -O0). glibc 2.43 in forky makes strchr()/bsearch() and
# friends preserve the constness of their argument, so pahole's assignments
# of their results to non-const pointers now trip -Wdiscarded-qualifiers and
# fail the build. Release drops -Werror and builds with -O2.
RUN wget -c https://storage.kernelci.org/pahole-1.29.tar.gz && \
tar -xzf pahole-1.29.tar.gz && \
cd pahole-1.29 && \
RUN wget -c https://storage.kernelci.org/pahole-1.31.tar.gz && \
tar -xzf pahole-1.31.tar.gz && \
cd pahole-1.31 && \
mkdir build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF && \
make && \
make install && \
echo "/usr/local/lib" > /etc/ld.so.conf.d/dwarves.conf && \
ldconfig && \
cd ../.. && rm -rf pahole-1.29
cd ../.. && rm -rf pahole-1.31

{% endblock %}
10 changes: 9 additions & 1 deletion config/runtime/base/kubernetes.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ metadata:

spec:
completions: 1
# backoffLimit is a Job-level field. This used to sit under
# spec.template.spec, where the API server drops it silently, so jobs
# ran with the default of 6 retries and every failure was retried
# seven times over.
backoffLimit: 1
# Cap the wall-clock runtime of a job. Without it a wedged build keeps
# its pod Running indefinitely and holds a whole node: the node timeout
# tracked by the API is advisory and is not enforced against the Job.
activeDeadlineSeconds: {{ k8s_active_deadline_seconds | default(21600) }}
# During development we keep logs a bit longer
# TODO: Reduce on production
ttlSecondsAfterFinished: 1800
template:
spec:
backoffLimit: 1
restartPolicy: Never
terminationGracePeriodSeconds: 10

Expand Down