Skip to content

Commit

Permalink
Try to workaround gdal-data corruption issue
Browse files Browse the repository at this point in the history
  • Loading branch information
craigds committed Jul 1, 2024
1 parent bab2b07 commit 3a77eb9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .buildkite/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ time docker run \
-w "/src" \
"${ECR}/ci-tools:latest" \
sign-debs "/src/build-jammy/*.deb"

mv build-jammy "build-${BUILDKITE_JOB_ID}"
15 changes: 4 additions & 11 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,26 @@ steps:
- label: "build package (amd64)"
command: ".buildkite/build.sh"
artifact_paths:
- "build-jammy/*"
- "build-*/*"
agents:
queue: default
- label: "build package (arm64)"
command: ".buildkite/build.sh"
artifact_paths:
- "build-jammy/*"
- "build-*/*"
agents:
queue: default_arm64

- block: "Release?"
prompt: "Release to archive?"

- label: ":debian: Publish deb"
command:
- >
aptly-upload
--aptly-url https://apt-repo.kx.gd
--retries 3
--repo kx-builds-jammy
--series jammy
build-jammy/*.deb
command: ".buildkite/publish-deb.sh"
retry:
automatic: true
plugins:
artifacts#v1.2.0:
download: "build-jammy/*.deb"
download: "build-*/*.deb"
docker#v1.4.0:
image: "${ECR}/ci-tools"
always-pull: true
Expand Down
17 changes: 17 additions & 0 deletions .buildkite/publish-deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# attempt to work around gdal-data deb getting corrupted when we download
# two of them from the two arch builds at the same time.
# This is a likely bug in buildkite agent
# TODO: ticket it
mkdir collated
for dir in build-*; do
echo "$dir"
mv "$dir"/*.deb collated/
done

aptly-upload \
--aptly-url https://apt-repo.kx.gd \
--retries 3 \
--repo kx-builds-jammy \
--series jammy \
collated/*.deb
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,6 @@ gdal/share
/build
CMakeSettings.json
out/

# kx
build-jammy

0 comments on commit 3a77eb9

Please sign in to comment.