Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.18.29 dev #6

Closed
wants to merge 9 commits into from
Closed
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
34 changes: 0 additions & 34 deletions .buildkite/hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,3 @@ CI_BUILD_START=$(date +%s)
export CI_BUILD_START

source ci/env.sh

#
# Kill any running docker containers, which are potentially left over from the
# previous CI job
#
(
echo "+++ Killing stale docker containers"
while read -r line; do
read -r id image _ <<<"$line"

if [[ $image =~ "solanalabs/rust" ]]; then
if docker kill "$id" >/dev/null; then
echo "kill $id $image"
fi
continue
fi
done < <(docker ps | tail -n +2)
)

# Processes from previously aborted CI jobs seem to loiter, unclear why as one
# would expect the buildkite-agent to clean up all child processes of the
# aborted CI job.
# But as a workaround for now manually kill some known loiterers. These
# processes will all have the `init` process as their PPID:
(
victims=
for name in bash cargo docker solana; do
victims="$victims $(pgrep -u "$(id -u)" -P 1 -d \ $name)"
done
for victim in $victims; do
echo "Killing pid $victim"
kill -9 "$victim" || true
done
)
6 changes: 3 additions & 3 deletions .buildkite/scripts/build-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build_steps() {
{
"name": "$1",
"command": "$2",
"timeout_in_minutes": 30,
"timeout_in_minutes": 60,
"agent": "$agent",
"retry": 3
}
Expand All @@ -22,5 +22,5 @@ EOF

# shellcheck disable=SC2016
group "bench" \
"$(build_steps "bench-part-1" ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/bench/part1.sh")" \
"$(build_steps "bench-part-2" ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_nightly_docker_image ci/bench/part2.sh")"
"$(build_steps "bench-part-1" "ci/bench/part1.sh")" \
"$(build_steps "bench-part-2" "ci/bench/part2.sh")"
6 changes: 3 additions & 3 deletions .buildkite/scripts/build-stable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ partitions=$(
cat <<EOF
{
"name": "partitions",
"command": ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/stable/run-partition.sh",
"command": "ci/stable/run-partition.sh",
"timeout_in_minutes": 30,
"agent": "$agent",
"parallelism": 2,
Expand All @@ -25,7 +25,7 @@ local_cluster_partitions=$(
cat <<EOF
{
"name": "local-cluster",
"command": ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/stable/run-local-cluster-partially.sh",
"command": "ci/stable/run-local-cluster-partially.sh",
"timeout_in_minutes": 30,
"agent": "$agent",
"parallelism": 5,
Expand All @@ -38,7 +38,7 @@ localnet=$(
cat <<EOF
{
"name": "localnet",
"command": ". ci/rust-version.sh; ci/docker-run.sh \$\$rust_stable_docker_image ci/stable/run-localnet.sh",
"command": "ci/stable/run-localnet.sh",
"timeout_in_minutes": 30,
"agent": "$agent"
}
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export INDENT_LEVEL=2

. ci/rust-version.sh

indent() {
local indent=${1:-"$INDENT_LEVEL"}
sed "s/^/$(printf ' %.0s' $(seq 1 "$indent"))/"
Expand Down Expand Up @@ -69,6 +71,20 @@ EOF
cat <<EOF | indent | sed '/DELETE_THIS_LINE/d'
- name: "$name"
command: "$command"
plugins:
- docker#v5.12.0:
image: "$rust_nightly_docker_image"
workdir: /solana
propagate-environment: true
propagate-uid-gid: true
environment:
- "RUSTC_WRAPPER=/usr/local/cargo/bin/sccache"
- BUILDKITE_AGENT_ACCESS_TOKEN
- AWS_SECRET_ACCESS_KEY
- AWS_ACCESS_KEY_ID
- SCCACHE_BUCKET
- SCCACHE_REGION
- SCCACHE_S3_KEY_PREFIX
timeout_in_minutes: $timeout_in_minutes
agents:
queue: "$agent"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-artifacts-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:
release-artifacts:
if: github.repository == 'anza-xyz/agave'
if: github.repository == 'FairCrypto/agave-xolana'
uses: ./.github/workflows/release-artifacts.yml
with:
commit: ${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: "buildkite/trigger-pipeline-action@v2.0.0"
with:
buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }}
pipeline: "anza/agave-secondary"
pipeline: "x1-agave-secondary"
branch: "${{ github.ref_name }}"
build_env_vars: '{"TRIGGERED_BUILDKITE_TAG": "${{ github.ref_name }}"}'
commit: "HEAD"
Expand Down
Loading
Loading