forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Packaging for ubuntu bionic #2
Open
craigds
wants to merge
75
commits into
kx-2.4
Choose a base branch
from
kx-2.4-bionic
base: kx-2.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
91f07b5
PDS: fix opening of datasets with BSQ organization (or single band), …
rouault e1e63ba
IRIS: make identification more restrictive to avoid false-positive id…
rouault 33bdc43
OGRLinearRing::isPointOnRingBoundary(): fix incomplete test that coul…
rouault fc29798
nasakeywordhandler: fixes to be able to read some labels with metadat…
rouault d8c9b28
Contour algorithm: fix (over) precision issue when comparing pixel va…
rouault c085030
tif_ojpeg.c: fix regression of https://gitlab.com/libtiff/libtiff/iss…
rouault 9af4aa1
/vsicurl (and derived filesystems): fix concurrency issue with multit…
rouault 4ee512d
Multithreaded warper: make sure a transformer object is used by the t…
rouault fec6c93
VRT warp: do not fail if a block has no corresponding source pixels (…
rouault 6e83a20
gdalwarpkernel.cpp: fix build broken by previous backport
rouault abe7fd5
Block cache: fix corruption on multithreaded write on datasets (fixes…
rouault fa6668f
VRT: fix requesting a downsampling version of the mask band of a sour…
rouault 71ce9ef
VRT: refactor previous commit to avoid code duplication. No functiona…
rouault f80e9b8
VRT: complementary fix for refs #2018
rouault eec2ce0
Update cache calculation in gdal2tiles.py
EvertEt 92e0a99
GRIB2: do not do erroneous K->C unit conversion for derived forecasts…
rouault 6c47d6a
GRIB: update GRIB tables to degrib 2.24
rouault fe53a77
metaname.cpp: fix typo
rouault 2fa4d39
degrib: add missing entries in MeteoAtmoChem table
rouault 7f57f48
GRIB: add more values from Table 4.5 in Surface type table
rouault 7c57de9
GRIB: add support for template 4.48 Optical Properties of Aerosol
rouault b3ad2df
ElasticSearch: translate constructs like CAST(field_name AS CHARACTER…
rouault 042ee2f
ElasticSearch: tranlate as well filters like CAST(field_name AS CHARA…
rouault 58be2f1
GRIB: degrib: avoid erroneous K->C conversion for Dew point depression
rouault b25599b
GRIB: fix out-of-buffer read on corrupted files added recently in 3ef…
rouault b5456b3
PDF: fix crash on corrupted file. Fixes https://bugs.chromium.org/p/o…
rouault 3b33e5b
SQLite dialect: fix issue when using JOIN on a layer without fast fil…
rouault d2e555e
GTF: remove tests and docs (refs #2050)
rouault ca9a77b
RPC transformer: test success code of GDALRPCTransform() in GDALCreat…
rouault 081bf71
PDF: fix use-after-free on some corrupted PDF files. Fixes https://bu…
rouault be32e42
XLSX: avoid Invalid-enum-value error. Fixes https://bugs.chromium.org…
rouault 8ac7e54
VRT: avoid Invalid-enum-value behaviour. Fixes https://bugs.chromium.…
rouault 0dca675
Fix compilation
rouault b233548
DXF: fix handling of SPLINE whose first knot is at a very very close …
rouault 8ae9e1e
Commit forgotten file
rouault ed3ac13
OGRGeometryFactory::ForceTo(): fix crash when forcing a MultiPolygon …
rouault 888775c
GDALUnrolledCopy<GByte,2,1>: fix SSE2-only implementation
rouault a271dab
COASP: fix crash on invalid filename. Fixes https://bugs.chromium.org…
rouault 9a7fc8e
GeoJSONSeq & TopoJSON: avoid false positive detection and errors on u…
rouault a73afe3
CAD: Fix read ellipse and arc (fix #1886).
BishopGIS 2bd7c6a
CAD && SQLite: Removed unnecessary header include and changed strnlen…
BishopGIS df645e2
WFS: skip silently GeoServer EPSG:404000 dummy CRS
rouault 5204c9e
HFA: fix writing of compressed file when a RLE run count is in the [0…
rouault cc27493
gdal_fillnodata.py/GDALFillNodata: fix crash when smooth_iterations i…
rouault 9b3d44b
Fix gdal2tiles max cache setting
EvertEt b9cab5b
Internal libtiff: tif_ojpeg.c: complementary fix for libtiff 4.1.0 re…
rouault b513e30
PDF: fix build against Poppler 0.82.0dev
rouault 9df7a1c
PDF: fix build against Poppler 0.82.0dev
rouault a8eb15f
PDF: fix build against Poppler 0.83.0dev
rouault fbb9a62
PDF: fix to build against latest Poppler master (0.83dev)
rouault 9fe5e1e
Prepare for GDAL 2.4.4
rouault fe5e0f4
Expand KMLSuperOverlay tile size to 512 < side < 1024px rather than 2…
rcoup 054b244
Don't pass resolution information from TIFFTAG into Kakadu if it's no…
rcoup 585b0fd
gdal_calc: convert data types earlier so output numbers don't get wra…
rcoup 5f770d7
Fix ubuntugis PPA in vagrantfile
craigds 0ae47cc
Debian build and CI config
rcoup ea42cff
vsicurl: ignore proxy CONNECT response headers
rcoup 37c46fe
Add thread-local config option methods to Python API.
rcoup 6eb20b8
wip run tests with pytest in buildkite
craigds f17bd8d
Skip known test failures
craigds a3a3205
Add capability to define VSI plugins from C API (#1289)
tbonfort 83d976b
Don't require agent access token
craigds 53f72df
Initial build of GDAL 2.4.x for bionic
craigds f2272ce
Use libkakadu 7.10.6 in bionic
craigds 81df67c
Build without libkea for now
craigds 9fb6f39
Attempt to reconcile deb packaging with ubuntugis
craigds 7c82708
Add libssl-dev to build-depends
craigds c8e2825
Use the right filegdb built for bionic GCC
craigds 183c6cf
Put the rpath back the way it was
craigds ef408d3
Remove rpath hacks for binary deps
craigds 93aeb7b
Add libkea back in; we now have a bionic package for it
craigds f079582
GDALMDReaderPleiades: remove noise debug message (fixes #1921)
rouault 81f61ac
data: add Panama PA27-UTM-17N coordinate system
rcoup 045a888
Force libcurl to use openSSL, not gnutls
craigds 194e54c
Build for python 3.7
craigds File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
if [ -n "${KX_BUILD_DEBUG-}" ]; then | ||
echo "Enabling script debugging..." | ||
set -x | ||
fi | ||
|
||
export TIMEFORMAT='🕑 %1lR' | ||
export DEBEMAIL=support@koordinates.com | ||
export DEBFULLNAME="Koordinates CI Builder" | ||
|
||
echo "Updating changelog..." | ||
|
||
DEB_BASE_VERSION=$(cat gdal/VERSION) | ||
DEB_VERSION="${DEB_BASE_VERSION}+ci${BUILDKITE_BUILD_NUMBER}-$(git show -s --date=format:%Y%m%d --format=git%cd.%h)" | ||
echo "Debian Package Version: ${DEB_VERSION}" | ||
|
||
if [ -n "${BUILDKITE_AGENT_ACCESS_TOKEN-}" ] ; then | ||
buildkite-agent meta-data set deb-base-version "$DEB_BASE_VERSION" | ||
buildkite-agent meta-data set deb-version "$DEB_VERSION" | ||
|
||
echo -e ":debian: Package Version: \`${DEB_VERSION}\`" \ | ||
| buildkite-agent annotate --style info --context deb-version | ||
fi | ||
|
||
time docker run \ | ||
-v "$(pwd):/src" \ | ||
-w "/src/gdal" \ | ||
-e DEBEMAIL \ | ||
-e DEBFULLNAME \ | ||
"${ECR}/ci-tools:latest" \ | ||
dch --distribution bionic --newversion "${DEB_VERSION}" "Koordinates CI build of ${BUILDKITE_COMMIT}: branch=${BUILDKITE_BRANCH} tag=${BUILDKITE_TAG-}" | ||
|
||
BUILD_CONTAINER="build-${BUILDKITE_JOB_ID}" | ||
|
||
echo "--- Building debian package ..." | ||
# Uses a docker volume for ccache | ||
time docker run \ | ||
--name "${BUILD_CONTAINER}" \ | ||
-v "$(pwd):/kx/source" \ | ||
-v "ccache:/ccache" \ | ||
-e CCACHE_DIR=/ccache \ | ||
-w "/kx/source/gdal" \ | ||
"${ECR}/bionicbuild:latest" \ | ||
/kx/buildscripts/build_binary_package.sh -uc -us | ||
|
||
echo "--- Signing debian archives ..." | ||
time docker run \ | ||
-v "$(pwd):/src" \ | ||
-e "GPG_KEY=${APT_GPG_KEY}" \ | ||
-w "/src" \ | ||
"${ECR}/ci-tools:latest" \ | ||
sign-debs "/src/build-bionic/*.deb" | ||
|
||
echo "--- Running tests ..." | ||
TEST_IMAGE="test-${BUILDKITE_JOB_ID}" | ||
docker commit "${BUILD_CONTAINER}" "${TEST_IMAGE}" | ||
docker rm "${BUILD_CONTAINER}" | ||
R=0 | ||
time docker run --rm -i \ | ||
-v "$(pwd):/src" \ | ||
-w "/src/autotest" \ | ||
"${TEST_IMAGE}" \ | ||
/bin/bash -exs << EOF || R=$? | ||
DEBIAN_FRONTEND=noninteractive apt-get update -q | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y curl | ||
curl --silent https://bootstrap.pypa.io/get-pip.py 'pip<19' | python - | ||
pip install 'pytest<5' | ||
|
||
DEBIAN_FRONTEND=noninteractive dpkg -i ../build-bionic/{gdal-bin,gdal-data,libgdal20,python-gdal,python3-gdal}*.deb | ||
|
||
# skip known failures | ||
rm gcore/rfc30.py | ||
TRAVIS=YES TRAVIS_BRANCH=ubuntu_1804 pytest -v -k 'not (test_ogr_fgdb_13 or test_vsisync or test_vsis3_init or test_vsis3_1 or test_vsis3_cleanup or test_eedai_GOOGLE_APPLICATION_CREDENTIALS)' | ||
EOF | ||
|
||
if [ $R -ne 0 ]; then | ||
echo "^^^ +++" | ||
echo "⚠️ Errors running GDAL tests ($R). But may be kinda expected. Check them and edit build.sh to skip?" | ||
else | ||
echo "--- ✅ GDAL tests passed!" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
steps: | ||
- label: ':debian: Build & Package & Test' | ||
command: ".buildkite/build.sh" | ||
artifact_paths: | ||
- "build-bionic/*" | ||
|
||
- block: "Release?" | ||
prompt: "Tag & Release to archive? Check the test results first!" | ||
|
||
- label: ':git: Add git tag' | ||
command: .buildkite/tag.sh | ||
plugins: | ||
docker#v1.4.0: | ||
image: "${ECR}/ci-tools" | ||
always-pull: true | ||
workdir: /src | ||
environment: | ||
- GITHUB_TOKEN | ||
- BUILDKITE_COMMIT | ||
- BUILDKITE_BUILD_NUMBER | ||
- BUILDKITE_BRANCH | ||
|
||
- label: ':debian: Publish deb' | ||
command: | ||
- > | ||
aptly-upload | ||
--aptly-url https://apt-repo.kx.gd | ||
--retries 3 | ||
--repo kx-builds-bionic | ||
--series bionic | ||
build-bionic/*.deb | ||
retry: | ||
automatic: true | ||
plugins: | ||
artifacts#v1.2.0: | ||
download: "build-bionic/*.deb" | ||
docker#v1.4.0: | ||
image: "${ECR}/ci-tools" | ||
always-pull: true | ||
workdir: /src | ||
environment: | ||
- APTLY_UNAME | ||
- APTLY_PASSWD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
if [ -n "${KX_BUILD_DEBUG-}" ]; then | ||
echo "Enabling script debugging..." | ||
set -x | ||
fi | ||
|
||
DEB_BASE_VERSION="$(buildkite-agent meta-data get deb-base-version)" | ||
if [ -z "${DEB_BASE_VERSION}" ]; then | ||
echo "Missing deb-base-version: ${DEB_BASE_VERSION}" | ||
exit 2 | ||
elif [ "${BUILDKITE_COMMIT}" = "HEAD" ]; then | ||
echo "Invalid BUILDKITE_COMMIT: ${BUILDKITE_COMMIT}" | ||
exit 2 | ||
fi | ||
|
||
TAG="kx-release-${DEB_BASE_VERSION}+ci${BUILDKITE_BUILD_NUMBER}" | ||
echo "Creating tag: ${TAG} for ${BUILDKITE_COMMIT} ..." | ||
|
||
hub release create \ | ||
-t "${BUILDKITE_COMMIT}" \ | ||
-m "CI: ${BUILDKITE_BRANCH}.${BUILDKITE_BUILD_NUMBER}" \ | ||
"${TAG}" | ||
|
||
echo -e ":git: Git Tag: \`${TAG}\`" \ | ||
| buildkite-agent annotate --style info --context git-tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,7 @@ | |
__pycache__/ | ||
.env*/ | ||
.venv*/ | ||
|
||
# koordinates | ||
/build-trusty/ | ||
/build-bionic/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we review the
not
list here based on what actually fails under bionic?