Skip to content

ARROW-2430: [Packaging] MVP for branch based packaging automation - #1869

Closed
kszucs wants to merge 60 commits into
apache:masterfrom
kszucs:cd
Closed

kszucs wants to merge 60 commits into
apache:masterfrom
kszucs:cd

Conversation

@kszucs

@kszucs kszucs commented Apr 9, 2018 •

Copy link
Copy Markdown
Member

The produced git branches are here https://github.com/kszucs/crossbow/branches/yours

@xhochy xhochy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good at a first pass. I will take these scripts for a spin next week.

The final review should be done by @cpcloud as he has a much clearer picture on how this should look like.

Comment thread cd/crossbow.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency is GPL (with linking exception) which is Category X for Apache projects. As this is a development only artifact, this should be no problem. We only need to take care that the script is not contained in the release (git archive) tarballs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW Later we can switch to plain git cli calls.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until that explicitly list the whitelist here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this dependency isn't necessary for the operation of the Arrow libraries for normal users, it is not an issue

Comment thread cd/linux-packages/yum/descriptor.json Outdated

@cpcloud cpcloud Apr 12, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need to be templated or otherwise configurable. We hit this during the 0.9.0 release.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Templating currently only works for the CI configurations, so we should do that in the rakefile itself.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a label for version. e.g.: https://bintray.com/kou/apache-arrow-yum/Yum/0.9.0
We can use "dev" or something statically for it.

@cpcloud

cpcloud commented Apr 12, 2018

Copy link
Copy Markdown
Contributor

@kszucs I didn't see it anywhere in the PR, but is there some documentation on how to use this? A README in the cd directory would be very useful I think.

@kszucs

kszucs commented Apr 12, 2018

Copy link
Copy Markdown
Member Author

I have a couple of todo notes in the jira ticket, I'd like to address some of those (including a short readme about the usage)

@kszucs

kszucs commented Apr 14, 2018

Copy link
Copy Markdown
Member Author

@cpcloud I've added a readme, rendered here

@wesm

wesm commented Apr 15, 2018

Copy link
Copy Markdown
Member

I will review in some detail when I can (this coming week). Is there a reason not to put all of this under the dev directory? On this note, the ci/ directory would arguably fit better under dev/ci/

@cpcloud

cpcloud commented Apr 15, 2018

Copy link
Copy Markdown
Contributor

@kszucs great, I will take it for a spin next week and do some more review here.

@kszucs

kszucs commented Apr 15, 2018

Copy link
Copy Markdown
Member Author

@wesm No particular reason, should I move under dev/cd or dev/packaging?

@kszucs

kszucs commented Apr 15, 2018

Copy link
Copy Markdown
Member Author

Currently this is just for building the packages, I haven't added the deployment steps yet - I'm trying to develop incrementally here.
There will be multiple issues in practice, which should come to light before the next release of arrow.

@wesm

wesm commented Apr 15, 2018

Copy link
Copy Markdown
Member

There's some library code in crossbow.py that's commingled with the CLI interface. It would be better to have a clean library (with logging callbacks) and put a CLI on top rather than having a CLI be the only way to use the system.

@kszucs

kszucs commented Apr 15, 2018 •

Copy link
Copy Markdown
Member Author

Ok, cleaning it!

@kszucs

kszucs commented Apr 16, 2018

Copy link
Copy Markdown
Member Author

@wesm Updated.

@kszucs

kszucs commented Apr 20, 2018 •

Copy link
Copy Markdown
Member Author

@xhochy pyarrow and arrow-cpp versions are the same, right?

How should the generated version number look like? Currently I'm using setuptools_scm resulting versions like 0.9.1.dev135+g7ffdd789, but I guess conda won't like it (testing, but the builds are kinda slow).

@xhochy

xhochy commented Apr 20, 2018

Copy link
Copy Markdown
Member

Yes, pyarrow and arrow-cpp need to be the same version. Not sure what is the best versioning but we currently use a derived verion from setuptools_scm in the conda nightlies: https://anaconda.org/twosigma/pyarrow/files

@wesm wesm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good start. We need to think about deployment and how to collect all the "staged" wheels in one publicly-accessible place. Thinking about the problem from the perspective of a release manager -- suppose I want to obtain all packages and then GPG sign them for a release vote. What steps must be taken?

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we nest this subproject under "dev/". From the name "cd" it isn't obvious what this new tool does, and the scope of what it can do it broader than software delivery.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How should I call it? dev/dist, dev/packaging, dev/tasks ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev/tasks is fine with me

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we aren't shipping any binaries yet; we have only made source releases so far

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are packaging Java also (separate from arrow-dist)

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"automating"

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify here what is meant by "nightly builds"

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this matching performed, string containment on the job name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly - it does re.search('conda', build_name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe want to put word boundaries \b around the pattern.

Comment thread cd/appveyor-win-conda.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The matrix of Python versions here is hard-coded. May not need to be fixed now, but definitely worth noting as an inflexibility

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps in a subsequent PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we should create TODO list for subsequent work in JIRA

Comment thread cd/appveyor-win-wheel.yml Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps unrelated to this patch, but do we want to use Appveyor's Boost or conda-forge's?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not that experienced with boost dependency issues, but I'd prefer conda.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to tell which one would be easier. I would say let's use whatever we were using before this patch existed.

Comment thread cd/crossbow.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to try to generalize this a bit. Currently there's some hard-coded stuff

  • A job may not have artifacts, but currently this is a requirement for the template to have a filename containing the artifact in a particular place
  • The platform is contained in the template file name

I might suggest having a YAML file containing all of the job descriptions:

  • job name / id
  • platform
  • template file
  • any other metadata

This will likely be easier to extend to accommodate other kinds of jobs

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of it too, but wasn't sure.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a tasks.yml

Comment thread cd/python-wheels/osx-build.sh Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard-coded?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it is in arrow-dist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be hard-coded, we want all builds to be done on the same version of boost if possible, and definitely configurable.

@kszucs

kszucs commented May 4, 2018 •

Copy link
Copy Markdown
Member Author

@wesm Regarding to deployment we might upload to GitHub itself for better visibility.

https://developer.github.com/v3/repos/releases/#upload-a-release-asset

@cpcloud cpcloud left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks for doing this! I'm going to give it a spin today.

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not necessary to say "historically error prone process of". How about "complex process of"?

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev/tasks is fine with me

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scheduling of jobs happens through ...

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/CI/requested/

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "pushing the changes" here mean?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git push

Comment thread cd/crossbow.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template_directory should be renamed when moved to a subproject under dev.

Comment thread cd/python-wheels/osx-build.sh Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be hard-coded, we want all builds to be done on the same version of boost if possible, and definitely configurable.

Comment thread cd/python-wheels/osx-build.sh Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you turn off the verbose here?

Comment thread cd/travis-osx-wheel.yml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we have these no op build steps in here, you can get rid of them.

Comment thread cd/README.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should also add setuptools_scm here.

@cpcloud

cpcloud commented May 16, 2018

Copy link
Copy Markdown
Contributor

@kszucs can you address the travis failure? it looks like there are a bunch of files missing license headers

@kszucs

kszucs commented May 16, 2018

Copy link
Copy Markdown
Member Author

@cpcloud sure

@kszucs

kszucs commented May 17, 2018

Copy link
Copy Markdown
Member Author

@cpcloud I don't know how to handle the linux package files, should I blacklist them?

@xhochy xhochy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First simple round of comments from me. Got it working with the mentioned patches. Currently my build "fails" with not finding the correct script: https://travis-ci.org/xhochy/crossbow/jobs/381381905

Comment thread dev/tasks/README.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be dev/tasks/crossbow.py

Comment thread dev/tasks/crossbow.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this remote configurable? For me https://github.com/arrow/arrow.git is always origin but I have several other remotes added.

Actually the best thing for me would be to use the remote of the current checked-out branch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is failing for me as I use the git@github.com:<user>/arrow.git connections and not the HTTPS ones. We should either add a path that rewrites these URLs or setup SSH that it accepts all remote keys (there is some environment variable for that…).

@codecov-io

codecov-io commented May 24, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1869 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1869      +/-   ##
==========================================
+ Coverage   86.33%   86.35%   +0.01%     
==========================================
  Files         242      242              
  Lines       41103    41184      +81     
==========================================
+ Hits        35487    35564      +77     
- Misses       5616     5620       +4
Impacted Files Coverage Δ
python/pyarrow/util.py 72.22% <0%> (-11.12%) ⬇️
cpp/src/arrow/status.cc 44.64% <0%> (-1.79%) ⬇️
cpp/src/arrow/util/thread-pool-test.cc 98.91% <0%> (-0.52%) ⬇️
cpp/src/arrow/python/arrow_to_pandas.cc 88.55% <0%> (-0.03%) ⬇️
python/pyarrow/table.pxi 69.76% <0%> (-0.02%) ⬇️
cpp/src/arrow/python/arrow_to_pandas.h 100% <0%> (ø) ⬆️
cpp/src/arrow/util/parallel.h 100% <0%> (ø) ⬆️
cpp/src/arrow/status-test.cc 100% <0%> (ø) ⬆️
python/pyarrow/lib.pyx 100% <0%> (ø) ⬆️
python/pyarrow/tests/test_misc.py 100% <0%> (ø) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c5e95a...a8f26de. Read the comment docs.

@xhochy

xhochy commented May 24, 2018

Copy link
Copy Markdown
Member

Builds now pass for me, nice!

From my testing, I miss the following (some of them were already discussed somewhere else but I wanted to provide a complete list):

  • Artefact upload in Travis
  • Currently mails always go to @kszucs, we should provide an environment variables to set the target mail
  • If there is a branch that doesn't build anything on Travis or AppVeyor, it errors. It would be nice if those would simply no a no-opt print or have a [skip appveyor] in their commit mesaage.

Also, please rebase on master, this branch is quite behind and it would be nice to see a passing set of all tasks before we merge it.

@kszucs

kszucs commented May 24, 2018

Copy link
Copy Markdown
Member Author

@xhochy Conda recipes miss arrow/python/benchmark.h after rebase https://travis-ci.org/kszucs/crossbow/jobs/383288153#L1339

"vcs_url": "htttps://github.com/apache/arrow.git"
},
"version": {
"name": "0.9.0"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use "dev" here.

},
"files": [
{
"includePattern": "cpp-linux/apt/repositories/([^/]+)/pool/stretch/main/a/apache-arrow/([^/]+\\.deb)\\z",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to change the path. cpp-linux/apt/ is a path in the arrow-dist repository.

@kszucs

kszucs commented May 25, 2018

Copy link
Copy Markdown
Member Author

Conda build are not passing because arrow's version is pinned in parquet-cpp. How should we resolve that? Update parquet-cpp's recipe to support arrow>=0.9.0? Perhaps building parquet-cpp too?

},
"files": [
{
"includePattern": "cpp-linux/yum/repositories/(centos)/([^/]+)/([^/]+)/[^/]+/([^/]+\\.rpm)",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. I should have mentioned this path too.

@wesm

wesm commented May 25, 2018

Copy link
Copy Markdown
Member

@kszucs yes, I believe we'll need to have the parquet-cpp recipe here also so that we can templatize the pinned version to correspond to the version we are building here

@kszucs

kszucs commented May 26, 2018

Copy link
Copy Markdown
Member Author

Hey @xhochy ! The conda builds are passing now, linux-packages is the only one which fails.

IMHO We should finalize this PR and do the remaining tasks in subsequent PRs, as well as start building nightlies.

@wesm

wesm commented May 26, 2018

Copy link
Copy Markdown
Member

I will have a look through this today or tomorrow. Beyond nightlies, the biggest thing is making sure we are on track to being able to include signed binaries in the 0.10.0 release vote (hopefully this will be in June sometime). I don't think we should do any more releases without including the packages in the release

@cpcloud

cpcloud commented May 30, 2018

Copy link
Copy Markdown
Contributor

I've created a JIRA with follow-up tasks for packaging work: https://issues.apache.org/jira/browse/ARROW-2648.

@kszucs

kszucs commented May 30, 2018

Copy link
Copy Markdown
Member Author

Great! Thanks!

@wesm

wesm commented May 30, 2018

Copy link
Copy Markdown
Member

I'm at a conference today, but I'd like to give this a last look through to comment (any comments can go into follow up JIRAs) and then merge this so we can divide and conquer on the remaining items to be able to create a release candidate using these tools

@kszucs

kszucs commented May 30, 2018

Copy link
Copy Markdown
Member Author

That'd be great, thanks! Linux packages are not passing, probably @kou should help with it.

@kou

kou commented May 30, 2018

Copy link
Copy Markdown
Member

@kszucs Sure. I can help with it.

@kszucs

kszucs commented May 30, 2018

Copy link
Copy Markdown
Member Author

@kou I suggest to create a separate ticket to not block the remaining tasks.

@kou

kou commented May 30, 2018

Copy link
Copy Markdown
Member

@kszucs It makes sense. Can you create a JIRA ticket? I'm sorry but I don't know the current Linux packages status. For example, I don't know where we can show a failure log.

@wesm wesm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can go in for now -- please create JIRAs for the issues I pointed out as you think prudent. Thanks @kscuzs!

Comment thread dev/tasks/README.md
### Scheduler

[Crossbow.py](crossbow.py) handles version generation, task rendering and
submission. The tasks are defined in `tasks.yml`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we intend to obtain the status of a particular job run if this tool does not record any state? Branch names, commit hashes, etc.

Ideally, somewhere would be recorded:

  • A unique identifier for a particular run
  • The list of tasks executed and where to find them (repository, branch, commit hash or tag, CI service run)
  • The expected artifact(s) produced by each task
  • Any additional information necessary to query the status of the jobs

Since the complete run could take a while to execute, and it does to asychonously, we would want to have some tool to poll the jobs for completeness, and if complete, to download all of the artifacts locally so that they can be signed.

This doesn't need to be done in this patch obviously! Perhaps this part can go into a JIRA and we can decide on the solution to this issue

Comment thread dev/tasks/README.md
arrow repository.

```bash
git clone https://github.com/<user>/crossbow crossbow

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this repository name is configurable, can you mention here where to find the configuration for this?

Comment thread dev/tasks/README.md
6. Install the python dependencies for the script:

```bash
conda install -y jinja2 pygit2 click pyyaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does one install conda?

Comment thread dev/tasks/README.md

```bash
# pygit2 requires libgit2: http://www.pygit2.org/install.html
pip install -y jinja2 pygit2 click pyyaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require Python 3 or is Python 2 OK?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried with py2, but it's probably ok. Do we prefer compatibility?

Comment thread dev/tasks/README.md
The script does the following:

1. Detects the current repository, thus supports forks. The following snippet
will build kszucs's fork instead of the upstream apache/arrow repository.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it use whatever is the origin repository? Some people may have apache/arrow as origin

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uwe already had a request regarding to that. It uses the currently checked out branch's remote counterpart.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely!

version: {{ ARROW_VERSION }}

source:
path: ../../../../

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we can arrange these recipes in such a way to push updates to conda-forge?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need custom logic to rewrite them and create PRs to the feedstocks.

# specific language governing permissions and limitations
# under the License.

language: generic

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much of this might be impacted by changes from conda-smithy?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As conda-forge are doing a large infrastructure change currently (that will probably go on for weeks/months) I think we should either stick to the simplified recipe or find a way that only updates hashes and pulls the rest from the feedstocks themselves.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me, this would be ok for a follow-up JIRA, no need to do here.

Upstream-Contact: <dev@arrow.apache.org>
Source: https://dist.apache.org/repos/dist/release/arrow/

Files: *

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside: we might want to create a directory with all of the third party licenses in a YAML file of some kind so that these can be generated rather than updated manually (or risk slippage from the top-level LICENSE.txt)

Upstream-Contact: <dev@arrow.apache.org>
Source: https://dist.apache.org/repos/dist/release/arrow/

Files: *

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto here

python34-numpy \
rpm-build \
rpmdevtools \
tar && \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might consider if it's possible to generate some of these docker files rather than have to hand-maintain

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My experience is that I have not yet seen a good tooling to auto-generate Dockerfiles that does not involve adding much more complextity to the process (e.g. you could use ansible). Thus we can keep them in as they currently.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concerns about the packaging is how can we keep it fairly simple while tying multiple services together.
Driving CI services via git, querying and maintaining states, downloading uploading artifacts, signing packages, submitting PRs (conda-forge) and deploying seem to hold lot of complexity.

Without automatized testing the tool itself, we might end up more manual work at the critical moments (releasing).

@wesm

wesm commented May 31, 2018

Copy link
Copy Markdown
Member

Let's merge this and move on to the next stage of work? IMHO we are not close to being able to do smooth releases with signed artifacts per the comments above, so we need to get busy to do the remaining work so we can make a release sometime soon

@wesm

wesm commented May 31, 2018 •

Copy link
Copy Markdown
Member

Merging this. Here is my suggestion for how to deal with the state management and release artifact tracking:

For each run of the job creation tool

  • 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

  • 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

  • We write a status tool which can query the status of a particular run and determine if the run is complete

  • We write a tool to download all artifacts associated with a particular run and sign them with the release manager's GPG key

So here's what I'm expecting:

$ python crossbow.py ...
...
Job run tag: build-1234

$ python check-build-status.py build-1234
Task 1 on Travis CI completed
...
Task N on AppVeyor still running

$ python check-build-status.py build-1234
...
All tasks completed

$ python download-build-artifacts.py build-1234 --sign

Here are the boxes we need to check:

  • Can we run each desired task in a particular CI service
  • We can determine the list of created tasks associated with a particular run
  • Each task can upload its artifacts to a deterministic central location (e.g. GitHub), where the artifacts are not commingled with any other run
  • We can determine whether all the expected artifacts from a particular run have been successfully uploaded (i.e. to GitHub)
  • We can download all the artifacts from a successful run and GPG sign them for purposes of a release vote

Does this make sense to everyone?

@wesm wesm closed this in 79a2207 Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants