ci: do not fail if pre-exit hook fails
Move the pre-exit cal before set -e so that if pre-exit fails it doesn't fail the pre-command step.
Also exclude the whole pre-command for performance pipeline (not public).
GitOrigin-RevId:
#!/bin/bash
-set -euo pipefail
+if [[ "$BUILDKITE_PIPELINE_SLUG" =~ "performance" ]]; then
+ exit 0
+fi
. .buildkite/hooks/pre-exit
+set -euo pipefail
+
echo "--- Pre-allocating hugepages"
sudo sysctl -w vm.nr_hugepages=100
