Repository navigation
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
BTW Later we can switch to plain git cli calls.
There was a problem hiding this comment.
Until that explicitly list the whitelist here?
There was a problem hiding this comment.
Since this dependency isn't necessary for the operation of the Arrow libraries for normal users, it is not an issue
There was a problem hiding this comment.
This will need to be templated or otherwise configurable. We hit this during the 0.9.0 release.
There was a problem hiding this comment.
Templating currently only works for the CI configurations, so we should do that in the rakefile itself.
There was a problem hiding this comment.
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.
|
@kszucs I didn't see it anywhere in the PR, but is there some documentation on how to use this? A README in the |
|
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) |
|
I will review in some detail when I can (this coming week). Is there a reason not to put all of this under the |
|
@kszucs great, I will take it for a spin next week and do some more review here. |
|
@wesm No particular reason, should I move under |
|
Currently this is just for building the packages, I haven't added the deployment steps yet - I'm trying to develop incrementally here. |
|
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. |
|
Ok, cleaning it! |
|
@xhochy pyarrow and arrow-cpp versions are the same, right? How should the generated version number look like? Currently I'm using |
|
Yes, |
wesm
left a comment
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
How should I call it? dev/dist, dev/packaging, dev/tasks ?
There was a problem hiding this comment.
Technically, we aren't shipping any binaries yet; we have only made source releases so far
There was a problem hiding this comment.
We are packaging Java also (separate from arrow-dist)
There was a problem hiding this comment.
Clarify here what is meant by "nightly builds"
There was a problem hiding this comment.
How is this matching performed, string containment on the job name?
There was a problem hiding this comment.
Mostly - it does re.search('conda', build_name)
There was a problem hiding this comment.
Maybe want to put word boundaries \b around the pattern.
There was a problem hiding this comment.
The matrix of Python versions here is hard-coded. May not need to be fixed now, but definitely worth noting as an inflexibility
There was a problem hiding this comment.
Perhaps in a subsequent PR?
There was a problem hiding this comment.
Sure, we should create TODO list for subsequent work in JIRA
There was a problem hiding this comment.
Perhaps unrelated to this patch, but do we want to use Appveyor's Boost or conda-forge's?
There was a problem hiding this comment.
I'm not that experienced with boost dependency issues, but I'd prefer conda.
There was a problem hiding this comment.
It's hard to tell which one would be easier. I would say let's use whatever we were using before this patch existed.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
I was thinking of it too, but wasn't sure.
There was a problem hiding this comment.
this shouldn't be hard-coded, we want all builds to be done on the same version of boost if possible, and definitely configurable.
|
@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
left a comment
There was a problem hiding this comment.
Looking good, thanks for doing this! I'm going to give it a spin today.
There was a problem hiding this comment.
Probably not necessary to say "historically error prone process of". How about "complex process of"?
There was a problem hiding this comment.
scheduling of jobs happens through ...
There was a problem hiding this comment.
What does "pushing the changes" here mean?
There was a problem hiding this comment.
template_directory should be renamed when moved to a subproject under dev.
There was a problem hiding this comment.
this shouldn't be hard-coded, we want all builds to be done on the same version of boost if possible, and definitely configurable.
There was a problem hiding this comment.
can you turn off the verbose here?
There was a problem hiding this comment.
Not sure why we have these no op build steps in here, you can get rid of them.
There was a problem hiding this comment.
should also add setuptools_scm here.
|
@kszucs can you address the travis failure? it looks like there are a bunch of files missing license headers |
|
@cpcloud sure |
|
@cpcloud I don't know how to handle the linux package files, should I blacklist them? |
xhochy
left a comment
There was a problem hiding this comment.
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
There was a problem hiding this comment.
This should be dev/tasks/crossbow.py
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 Report
@@ 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
Continue to review full report at Codecov.
|
|
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):
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. |
|
@xhochy Conda recipes miss |
| "vcs_url": "htttps://github.com/apache/arrow.git" | ||
| }, | ||
| "version": { | ||
| "name": "0.9.0" |
| }, | ||
| "files": [ | ||
| { | ||
| "includePattern": "cpp-linux/apt/repositories/([^/]+)/pool/stretch/main/a/apache-arrow/([^/]+\\.deb)\\z", |
There was a problem hiding this comment.
We may need to change the path. cpp-linux/apt/ is a path in the arrow-dist repository.
|
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 |
| }, | ||
| "files": [ | ||
| { | ||
| "includePattern": "cpp-linux/yum/repositories/(centos)/([^/]+)/([^/]+)/[^/]+/([^/]+\\.rpm)", |
There was a problem hiding this comment.
Sorry. I should have mentioned this path too.
|
@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 |
|
Hey @xhochy ! The conda builds are passing now, IMHO We should finalize this PR and do the remaining tasks in subsequent PRs, as well as start building nightlies. |
|
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 |
|
I've created a JIRA with follow-up tasks for packaging work: https://issues.apache.org/jira/browse/ARROW-2648. |
|
Great! Thanks! |
|
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 |
|
That'd be great, thanks! Linux packages are not passing, probably @kou should help with it. |
|
@kszucs Sure. I can help with it. |
|
@kou I suggest to create a separate ticket to not block the remaining tasks. |
|
@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
left a comment
There was a problem hiding this comment.
I think this can go in for now -- please create JIRAs for the issues I pointed out as you think prudent. Thanks @kscuzs!
| ### Scheduler | ||
|
|
||
| [Crossbow.py](crossbow.py) handles version generation, task rendering and | ||
| submission. The tasks are defined in `tasks.yml` |
There was a problem hiding this comment.
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
| arrow repository. | ||
|
|
||
| ```bash | ||
| git clone https://github.com/<user>/crossbow crossbow |
There was a problem hiding this comment.
If this repository name is configurable, can you mention here where to find the configuration for this?
| 6. Install the python dependencies for the script: | ||
|
|
||
| ```bash | ||
| conda install -y jinja2 pygit2 click pyyaml |
|
|
||
| ```bash | ||
| # pygit2 requires libgit2: http://www.pygit2.org/install.html | ||
| pip install -y jinja2 pygit2 click pyyaml |
There was a problem hiding this comment.
Does this require Python 3 or is Python 2 OK?
There was a problem hiding this comment.
I haven't tried with py2, but it's probably ok. Do we prefer compatibility?
| 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. |
There was a problem hiding this comment.
Does it use whatever is the origin repository? Some people may have apache/arrow as origin
There was a problem hiding this comment.
Uwe already had a request regarding to that. It uses the currently checked out branch's remote counterpart.
| version: {{ ARROW_VERSION }} | ||
|
|
||
| source: | ||
| path: ../../../../ |
There was a problem hiding this comment.
Do you think we can arrange these recipes in such a way to push updates to conda-forge?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
How much of this might be impacted by changes from conda-smithy?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: * |
There was a problem hiding this comment.
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: * |
| python34-numpy \ | ||
| rpm-build \ | ||
| rpmdevtools \ | ||
| tar && \ |
There was a problem hiding this comment.
Might consider if it's possible to generate some of these docker files rather than have to hand-maintain
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
|
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 |
|
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
So here's what I'm expecting: Here are the boxes we need to check:
Does this make sense to everyone? |
The produced git branches are here https://github.com/kszucs/crossbow/branches/yours