Skip to content

Commit

Permalink
[ci] Separate mac wheels & trigger wheel build from ui (#1499)
Browse files Browse the repository at this point in the history
* remove need for build wheel tags, use ui trigger instead

* No more universal wheels for mac


Co-authored-by: Jeremy Leibs <[email protected]>
  • Loading branch information
Wumpf and jleibs authored Mar 3, 2023
1 parent 79046e6 commit c8a931c
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ name: CI (Python)

on:
pull_request:
types: [labeled, synchronize, opened]
push:
branches:
- "main"
tags:
- "v*.*.*" # on release tag
workflow_dispatch:
inputs:
force_build_wheel:
description: 'Build python wheels'
required: true
default: false
type: boolean

env:
PYTHON_VERSION: "3.8"
PRE_RELEASE_INSTRUCTIONS: |
## Installing the pre-release Python SDK
1. Download the correct `.whl`. For Mac M1/M2, grab the "universal2" `.whl`
1. Download the correct `.whl`.
2. Run `pip install rerun_sdk<...>.whl` (replace `<...>` with the actual filename)
3. Test it: `rerun --version`
UBUNTU_REQUIRED_PKGS: libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libfontconfig1-dev libatk-bridge2.0 libfreetype6-dev libglib2.0-dev
Expand Down Expand Up @@ -59,8 +65,8 @@ jobs:

matrix-setup:
# Building all the wheels is expensive, so we only run this job when we push (to main or release tags),
# or if the PR has the 'build wheels' label for explicit testing of wheels.
if: github.event_name == 'push' || contains( github.event.pull_request.labels.*.name, '🛞 build wheels')
# or if the job was manually triggered with `force_build_wheel` set to true.
if: github.event_name == 'push' || github.event.inputs.force_build_wheel
runs-on: ubuntu-latest

outputs:
Expand All @@ -75,22 +81,15 @@ jobs:
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
# Sets TAGGED_OR_MAIN if this workflow is running on a tag or the main branch.
- name: Set TAGGED_OR_MAIN
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'
run: echo "TAGGED_OR_MAIN=1" >> $GITHUB_ENV

- id: set-matrix
shell: bash
run: |
matrix=()
if [[ $TAGGED_OR_MAIN ]]; then
# MacOS build is really slow (>30 mins); uses up a lot of CI minutes
matrix+=('{"platform": "macos", "runs_on": "macos-latest"},')
fi
matrix+=('{"platform": "windows", "runs_on": "windows-latest-8-cores"},')
matrix+=('{"platform": "linux", "runs_on": "ubuntu-latest-16-cores", container: {"image": "rerunio/ci_docker:0.5"}}')
matrix+=('{"platform": "macos", "target": "x86_64-apple-darwin", "runs_on": "macos-latest"},')
matrix+=('{"platform": "macos", "target": "aarch64-apple-darwin", "runs_on": "macos-latest"},')
matrix+=('{"platform": "windows", "target": "x86_64-pc-windows-msvc", "runs_on": "windows-latest-8-cores"},')
matrix+=('{"platform": "linux", "target": "x86_64-unknown-linux-gnu", "runs_on": "ubuntu-latest-16-cores", container: {"image": "rerunio/ci_docker:0.5"}}')
echo "Matrix values: ${matrix[@]}"
Expand Down Expand Up @@ -204,9 +203,9 @@ jobs:
args: |
--manifest-path rerun_py/Cargo.toml
--release
--target ${{ matrix.target }}
--no-default-features
--features pypi
--universal2
--out pre-dist
- name: Install built wheel
Expand Down

1 comment on commit c8a931c

@github-actions
Copy link

Choose a reason for hiding this comment

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

Rust Benchmark

Benchmark suite Current: c8a931c Previous: 79046e6 Ratio
datastore/insert/batch/rects/insert 565529 ns/iter (± 2189) 556287 ns/iter (± 10867) 1.02
datastore/latest_at/batch/rects/query 1833 ns/iter (± 5) 1783 ns/iter (± 27) 1.03
datastore/latest_at/missing_components/primary 356 ns/iter (± 0) 345 ns/iter (± 5) 1.03
datastore/latest_at/missing_components/secondaries 424 ns/iter (± 0) 408 ns/iter (± 5) 1.04
datastore/range/batch/rects/query 152656 ns/iter (± 627) 145590 ns/iter (± 2083) 1.05
mono_points_arrow/generate_message_bundles 48058250 ns/iter (± 411671) 44638055 ns/iter (± 1881915) 1.08
mono_points_arrow/generate_messages 125769998 ns/iter (± 1205643) 133480920 ns/iter (± 1636856) 0.94
mono_points_arrow/encode_log_msg 157362480 ns/iter (± 1417848) 161181270 ns/iter (± 1501628) 0.98
mono_points_arrow/encode_total 331361125 ns/iter (± 1332894) 340715793 ns/iter (± 2982374) 0.97
mono_points_arrow/decode_log_msg 178985967 ns/iter (± 865391) 179919016 ns/iter (± 2891073) 0.99
mono_points_arrow/decode_message_bundles 65595472 ns/iter (± 671586) 70316262 ns/iter (± 1609214) 0.93
mono_points_arrow/decode_total 241102945 ns/iter (± 1554763) 247424458 ns/iter (± 3074678) 0.97
batch_points_arrow/generate_message_bundles 333078 ns/iter (± 1433) 316527 ns/iter (± 4570) 1.05
batch_points_arrow/generate_messages 6181 ns/iter (± 23) 5889 ns/iter (± 65) 1.05
batch_points_arrow/encode_log_msg 360606 ns/iter (± 1086) 345723 ns/iter (± 2991) 1.04
batch_points_arrow/encode_total 714040 ns/iter (± 2067) 681417 ns/iter (± 7186) 1.05
batch_points_arrow/decode_log_msg 353200 ns/iter (± 2681) 341532 ns/iter (± 2782) 1.03
batch_points_arrow/decode_message_bundles 2067 ns/iter (± 11) 2005 ns/iter (± 37) 1.03
batch_points_arrow/decode_total 355475 ns/iter (± 1187) 346013 ns/iter (± 2933) 1.03
arrow_mono_points/insert 6061292926 ns/iter (± 21327264) 6947340465 ns/iter (± 28054229) 0.87
arrow_mono_points/query 1710435 ns/iter (± 15387) 1707084 ns/iter (± 31660) 1.00
arrow_batch_points/insert 2722927 ns/iter (± 21584) 2628468 ns/iter (± 26568) 1.04
arrow_batch_points/query 16004 ns/iter (± 29) 15347 ns/iter (± 241) 1.04
arrow_batch_vecs/insert 41956 ns/iter (± 624) 41183 ns/iter (± 428) 1.02
arrow_batch_vecs/query 505852 ns/iter (± 492) 482054 ns/iter (± 5900) 1.05
tuid/Tuid::random 34 ns/iter (± 0) 33 ns/iter (± 0) 1.03

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.