paleolimbot commented on code in PR #398: URL: https://github.com/apache/arrow-nanoarrow/pull/398#discussion_r1525099141
########## dev/benchmarks/benchmark-report.qmd: ########## @@ -0,0 +1,227 @@ +--- +# 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. + +title: "Benchmark Report" +format: gfm +--- + +```{r setup, include=FALSE} +library(tidyverse) +library(xml2) +library(bench) + +# For linking benchmark sources with https://github.com/{repo}/blob/{ref}/file#Lxx +# This heuristic is not perfect but will generally result in correct links +# for PRs that update benchmarks and the general running of benchmarks on the +# main branch. +github_ref <- gert::git_branch() +if (github_ref == "main") { + github_repo <- "apache/arrow-nanoarrow" +} else { + remote <- gert::git_remote_info() Review Comment: I wrapped this in `try()` just in case. The source links aren't that useful if you're in a branch, anyway, but at least the report will run (and just give possibly inaccurate source links). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
