bkietz commented on a change in pull request #10667:
URL: https://github.com/apache/arrow/pull/10667#discussion_r679945382



##########
File path: dev/conbench_envs/README.md
##########
@@ -0,0 +1,209 @@
+<!---
+  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.
+-->
+# Benchmark Builds Env and Hooks
+This directory contains: 
+- [benchmarks.env](benchmarks.env) - list of env vars used for building Arrow 
C++/Python/R/Java/JavaScript and running benchmarks using 
[conbench](https://ursalabs.org/blog/announcing-conbench/).
+- [hooks.sh](hooks.sh) - hooks used by <b>@ursabot</b> benchmark builds that 
are triggered by `@ursabot please benchmark` PR comments. 
+
+## How to add or update Arrow build and run env vars used by `@ursabot` 
benchmark builds
+1. Create `apache/arrow` PR
+2. Update or add env var value in 
[benchmarks.env](../../dev/conbench_envs/benchmarks.env)
+3. Add `@ursabot please benchmark` comment to PR
+4. Once benchmark builds are done, benchmark results can be viewed via 
compare/runs links in the PR comment where
+- baseline = PR base HEAD commit with unaltered 
`/dev/conbench_envs/benchmarks.env`
+- contender = PR branch HEAD commit with overridden 
`/dev/conbench_envs/benchmarks.env`
+
+## Why do`@ursabot` benchmark builds need `hooks.sh`?
+`@ursabot` benchmark builds are maintained in Ursa's private repo.
+Benchmark builds use `hooks.sh` functions as hooks to create conda env with 
Arrow dependencies and build Arrow C++/Python/R/Java/JavaScript from source for 
a specific Arrow repo's commit.
+
+Defining hooks in Arrow repo allows benchmark builds for a specific Arrow 
commit to be always compatible with Arrow's files/scripts used for installing 
Arrow dependencies and building Arrow, assuming Arrow contributors will update 
`hooks.sh` when they make these changes to files/scripts used by functions in 
`hooks.sh`. 

Review comment:
       ```suggestion
   Defining hooks in Arrow repo allows benchmark builds for a specific commit 
to be
   compatible with the files/scripts *in that commit* which are used for 
installing Arrow
   dependencies and building Arrow. This allows Arrow contributors to asses the 
perfomance
   implications of different build options, dependency versions, etc by updating
   `hooks.sh`.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to