-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-2676: [Packaging] Deploy build artifacts to github releases
~Added a new task which trigger crossbow builds on master@crossbow.~ ~See travis output https://travis-ci.org/kszucs/crossbow/builds/388667590~ Here are the boxes we need to check: - [x] Create a separate tagged branch that contains a YAML file indicating the information about each task created as part of the run. So there should be one entry for each job that was created -- the git hash for the task, the CI service used to run the task, etc. It should also indicate if one or more artifacts are expected to be uploaded - [x] Write a status tool which can query the status of a particular run and determine if the run is complete (needs cleanup) - [x] Can we run each desired task in a particular CI service - [x] We can determine the list of created tasks associated with a particular run - [x] Tasks should be configured with the tag name, and artifacts should be uploaded to GitHub under the tag which should appear as a release on the repo - [x] Each task can upload its artifacts to a deterministic central location (e.g. GitHub), where the artifacts are not commingled with any other run -> only linux packages are failing, I suggest resolving it in a subsequent PR (issue https://issues.apache.org/jira/browse/ARROW-2713) - [x] ~~We can determine whether all the expected artifacts from a particular run have been successfully uploaded (i.e. to GitHub)~~ to be done in https://issues.apache.org/jira/browse/ARROW-2724 - [x] We can download all the artifacts from a successful run and GPG sign them for purposes of a release vote Example of artifacts available here https://github.com/kszucs/crossbow/releases Jobs and tasks here https://github.com/kszucs/crossbow/branches Job definition here https://github.com/kszucs/crossbow/blob/build-36/job.yml Author: Krisztián Szűcs <[email protected]> Author: Phillip Cloud <[email protected]> Closes #2109 from kszucs/nightly and squashes the following commits: 87860d0 <Krisztián Szűcs> batch correctly rename double extensions 83f333b <Krisztián Szűcs> don't use dirty flag in version number 0701d64 <Krisztián Szűcs> fixed conda-win deployments 062da7c <Krisztián Szűcs> conda win renames b892471 <Krisztián Szűcs> explicit task names instead of placeholder in readme; foxme note for linux-packages e4e971c <Krisztián Szűcs> don't depend on any previous commit 2e9fcf9 <Krisztián Szűcs> remove logging config f317a06 <Krisztián Szűcs> outdated readme section 337234d <Phillip Cloud> Validate submit tasks 12efaba <Phillip Cloud> Validate github token 1b3d5fb <Phillip Cloud> Code formatting cleanups 4c64db6 <Phillip Cloud> Add email property and use target repo user.email by default 9b22238 <Krisztián Szűcs> update tasks 0561e62 <Krisztián Szűcs> force update conda win assets 71b6943 <Krisztián Szűcs> postfix conda pkgs with arch bfb5eae <Krisztián Szűcs> fix osx wheel builkds 95bc3fa <Krisztián Szűcs> retrieve commit's combined status 0773f3a <Krisztián Szűcs> call rake version update af6dd48 <Krisztián Szűcs> remove flag 167a393 <Krisztián Szűcs> gry to remove osx wheel flag ccbc150 <Krisztián Szűcs> little more status context 14da2d5 <Krisztián Szűcs> build prefix fd6bd23 <Krisztián Szűcs> print build id 5c6e154 <Krisztián Szűcs> fix conda-win deployments 8c069c6 <Krisztián Szűcs> set autoincremented job_id outside of queue put 5374866 <Krisztián Szűcs> cleanup status check and artifact download 0b79d13 <Krisztián Szűcs> trying to remove python dependency from parquet-cpp's recipe 96e101a <Krisztián Szűcs> draft for downloading artifacts 55e7ccb <Krisztián Szűcs> query statuses API edeee71 <Krisztián Szűcs> refactooooor bd5ece4 <Krisztián Szűcs> rename trigger build; add license header a0a8127 <Krisztián Szűcs> tigger builds template 8a5fcb0 <Krisztián Szűcs> trigger build task; explicit task names during submission b65cb3f <Krisztián Szűcs> track remote branches 0ab0567 <Krisztián Szűcs> don't create tree based on master
- Loading branch information
Showing
13 changed files
with
513 additions
and
281 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
branches: | ||
# don't attempt to build branches intented for windows builds | ||
except: | ||
- /.*win.*/ | ||
|
||
os: linux | ||
dist: trusty | ||
language: generic | ||
|
||
before_install: | ||
# Install Miniconda. | ||
- echo `pwd` | ||
- | | ||
echo "" | ||
echo "Installing a fresh version of Miniconda." | ||
MINICONDA_URL="https://repo.continuum.io/miniconda" | ||
MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh" | ||
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" | ||
bash $MINICONDA_FILE -b | ||
# Configure conda. | ||
- | | ||
echo "" | ||
echo "Configuring conda." | ||
source /home/travis/miniconda3/bin/activate root | ||
conda config --remove channels defaults | ||
conda config --add channels defaults | ||
conda config --add channels conda-forge | ||
conda config --set show_channel_urls true | ||
install: | ||
- conda install -y -q jinja2 pygit2 click pyyaml setuptools_scm | ||
|
||
script: | ||
# fetch all branches of crossbow | ||
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | ||
|
||
# clone arrow with crossbow tool | ||
- pushd .. | ||
- git clone -b {{ ARROW_BRANCH }} {{ ARROW_REPO }} | ||
|
||
# submit packaging tasks | ||
- | | ||
python arrow/dev/tasks/crossbow.py \ | ||
conda-linux \ | ||
conda-win \ | ||
conda-osx \ | ||
wheel-linux \ | ||
wheel-win \ | ||
wheel-osx \ | ||
linux-packages |
Oops, something went wrong.