Skip to content

Commit

Permalink
Merge branch 'release-v60.1.0' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed May 6, 2024
2 parents d9fbe9b + 3048432 commit b36db16
Show file tree
Hide file tree
Showing 28 changed files with 628 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .buildconfig.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libraryVersion: 60.0.0
libraryVersion: 60.1.0
groupId: org.mozilla.telemetry
projects:
glean:
Expand Down
52 changes: 31 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ commands:
name: Get ghr release tool
command: |
GHR_VERSION=v0.16.2
GHR=ghr_${GHR_VERSION}_darwin_amd64
GHR_SHA256=da2e6592a50c725660684d5ff19cd3751a28cc3948dc69dab9ec98940b5e33ac
GHR=ghr_${GHR_VERSION}_darwin_arm64
GHR_SHA256=f762742b3a1a6a10c87ca1bfcc043e9e535ce4d1defa02e4e9d5a4875c1116ba
curl -sfSL --retry 5 -O "https://github.com/tcnksm/ghr/releases/download/${GHR_VERSION}/${GHR}.zip"
echo "${GHR_SHA256} *${GHR}.zip" | shasum -a 256 -c -
unzip "${GHR}.zip"
Expand Down Expand Up @@ -476,19 +476,15 @@ jobs:
Check Swift formatting:
macos:
xcode: "15.1"
resource_class: "macos.x86.medium.gen2"
resource_class: "macos.m1.medium.gen1"
steps:
- checkout
- run:
name: Install lint tools
command: |
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
# swiftlint 0.53.0
SWIFTLINT_SHA256="6e7ca377eb3bbfe43e09825f91ca238382e68d6d1c79f947b0b6eeed79c13650"
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/0e4a16c4875adafd3ef2cb39c587d0cbb19c618c/Formula/s/swiftlint.rb > swiftlint.rb
echo "${SWIFTLINT_SHA256} *swiftlint.rb" | shasum -a 256 -c -
brew install ./swiftlint.rb
brew install swiftlint
- run:
name: Run swiftlint
command: |
Expand All @@ -498,7 +494,7 @@ jobs:
iOS build and test:
macos:
xcode: "15.1"
resource_class: "macos.x86.medium.gen2"
resource_class: "macos.m1.medium.gen1"
steps:
- checkout
- run:
Expand All @@ -510,14 +506,14 @@ jobs:
- setup-rust-toolchain
- restore_cache:
name: Restore rubygems cache
key: swift-docs-gems-v19
key: swift-docs-gems-v20
- run:
name: Install jazzy
command: gem install jazzy
command: gem install --no-document jazzy
- save_cache:
name: Save rubygems cache
# NEEDS TO CHANGE WHEN JAZZY OR RUBY IS UPDATED
key: swift-docs-gems-v19
key: swift-docs-gems-v20
paths:
- ~/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0
- run:
Expand All @@ -528,8 +524,8 @@ jobs:
# For some reason everything works fine if we use the host clang,
# not the Xcode-bundled clang.
echo '[target.x86_64-apple-darwin]' >> ~/.cargo/config
echo 'linker = "/usr/bin/clang"' >> ~/.cargo/config
echo '[target.aarch64-apple-darwin]' >> ~/.cargo/config
echo 'linker = "/usr/bin/cc"' >> ~/.cargo/config
# List available devices -- allows us to see what's there
DEVICES=$(xcrun xctrace list devices 2>&1)
Expand Down Expand Up @@ -598,7 +594,7 @@ jobs:
iOS integration test:
macos:
xcode: "15.1"
resource_class: "macos.x86.medium.gen2"
resource_class: "macos.m1.medium.gen1"
steps:
- checkout
- skip-if-doc-only
Expand All @@ -612,8 +608,8 @@ jobs:
# For some reason everything works fine if we use the host clang,
# not the Xcode-bundled clang.
echo '[target.x86_64-apple-darwin]' >> ~/.cargo/config
echo 'linker = "/usr/bin/clang"' >> ~/.cargo/config
echo '[target.aarch64-apple-darwin]' >> ~/.cargo/config
echo 'linker = "/usr/bin/cc"' >> ~/.cargo/config
# List available devices -- allows us to see what's there
DEVICES=$(xcrun xctrace list devices 2>&1)
Expand Down Expand Up @@ -643,7 +639,7 @@ jobs:
iOS Framework release:
macos:
xcode: "15.1"
resource_class: "macos.x86.medium.gen2"
resource_class: "macos.m1.medium.gen1"
steps:
- checkout
- attach_workspace:
Expand Down Expand Up @@ -753,8 +749,15 @@ jobs:
wget https://www.python.org/ftp/python/3.8.2/python-3.8.2-embed-amd64.zip
mkdir winpython
unzip python-3.8.2-embed-amd64.zip -d winpython
echo "export WINPYTHON=\"wine64 winpython/python.exe\"" >> $BASH_ENV
echo "export WINPYTHON=\"wine64-stable winpython/python.exe\"" >> $BASH_ENV
- install-python-windows-deps
- run:
name: Build bcryptprimitives.dll shim
command: |
rustc tools/patches/bcryptprimitives.rs -Copt-level=3 -Clto=fat --out-dir wine_shims --target x86_64-pc-windows-gnu
# This preloads our bcryptprimitives shim.
shimpath='Z:\\\\home\\\\circleci\\\\project\\\\wine_shims\\\\bcryptprimitives.dll'
echo "import ctypes; ctypes.cdll.LoadLibrary('$shimpath')" >> winpython/sitecustomize.py
- run:
name: Run tests
command: |
Expand All @@ -781,6 +784,13 @@ jobs:
unzip python-3.8.2-embed-win32.zip -d winpython
echo "export WINPYTHON=\"wine winpython/python.exe\"" >> $BASH_ENV
- install-python-windows-deps
- run:
name: Build bcryptprimitives.dll shim
command: |
rustc tools/patches/bcryptprimitives.rs -Copt-level=3 -Clto=fat --out-dir wine_shims --target i686-pc-windows-gnu
# This preloads our bcryptprimitives shim.
shimpath='Z:\\\\home\\\\circleci\\\\project\\\\wine_shims\\\\bcryptprimitives.dll'
echo "import ctypes; ctypes.cdll.LoadLibrary('$shimpath')" >> winpython/sitecustomize.py
- run:
name: Run tests
command: |
Expand Down Expand Up @@ -869,15 +879,15 @@ jobs:
pypi-macos-release:
macos:
xcode: "15.1"
resource_class: "macos.x86.medium.gen2"
resource_class: "macos.m1.medium.gen1"
steps:
- install-rustup
- setup-rust-toolchain
- checkout
- run:
name: Install Python development tools for host
command: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
make setup-python
- run:
name: Build macOS x86_64 wheel
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Unreleased changes

[Full changelog](https://github.com/mozilla/glean/compare/v60.0.0...main)
[Full changelog](https://github.com/mozilla/glean/compare/v60.1.0...main)

# v60.1.0 (2024-05-06)

[Full changelog](https://github.com/mozilla/glean/compare/v60.0.0...v60.1.0)

* Rust
* New `TimingDistribution` API for no-allocation single-duration accumulation. ([bug 1892097](https://bugzilla.mozilla.org/show_bug.cgi?id=1892097))
* Python
* Replace use of deprecated functionality (and make installs work on Python 3.12) ([#2820](https://github.com/mozilla/glean/pull/2820))

# v60.0.0 (2024-04-22)

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b36db16

Please sign in to comment.