Skip to content

ci(repo): run v2's token-free jobs on free standard runners - #1740

Merged
renefloor merged 4 commits into
v2from
ci/v2-free-runners
Nov 27, 2026
Merged

renefloor merged 4 commits into
v2from
ci/v2-free-runners

Conversation

@renefloor

@renefloor renefloor commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

v2's counterpart of #1739. Every Linux job on the static-IP github-public-amd64 group is billed per minute. The org IP allow list refuses only signed-in requests from standard runners, so jobs that make no GitHub call besides the checkout can run on free runners with an anonymous checkout. Jobs that need a token keep that part on the static-IP runners, in a job of its own.

Changes

Commit 1 cherry-picks #1739 (pana, legacy analyze, measure-android). Its stream_video_flutter_workflow.yml part didn't apply to v2's workflow and is redone in commit 2.

Commit 2

  • Move to standard runners with an anonymous checkout:
    • gate in the SDK and webrtc workflows. The path filters already run with token: '', so they fetch the base with git from an anonymous origin.
    • analyze and build.
    • webrtc analyze and the Android, Linux, Embedded Linux and web builds.
    • beta_version_analyze.
    • App Distribute's Android release build and its flutter.getstream.io deploy. Google Play and Google Cloud (OIDC) take no GitHub token.
  • analyze is pinned to ubuntu-24.04, not ubuntu-latest (now 26.04), because the committed goldens were rendered on the static-IP runners' 24.04 image.
  • update_goldens renders on ubuntu-24.04 and uploads the goldens. A commit job on the static-IP runners mints the bot token and commits them.
  • PR web build: build and deploy (and removal) run on a standard runner. Commenting the link is a separate job on the static-IP runners.
  • Revert the 2-core workarounds now that the jobs get 4 cores and 16 GB: melos analyze* back to -c 5 and test:flutter to -c 4, the analyze timeout back to 25 minutes, and no Gradle cap in measure.dart. ci(repo): run the test and analysis jobs on free standard runners #1739 showed measure-android passing on ubuntu-latest without one.

Commit 3 moves the token-free Mac jobs off Scaleway, with an anonymous checkout:

  • To xcode-27: ios-unit-tests, webrtc's iOS and macOS example builds, and the SPM build. The SPM workflow only triggers for main, so it takes effect there later.
  • To xcode-27 too: measure-ios, pinned to Xcode 27.1 instead of 26.3. The first push to v2 compares against the 26.3 benchmark, then stores a 27.1 one.

Unchanged

  • Static-IP runners:
    • Jobs that post or push: complexity and coverage (PR comments), the size report jobs, the gh-pages deploy, releases and labels.
    • The aggregate jobs, sdk-verified and webrtc-verified.
  • Scaleway Mac runners:
    • iOS and macOS distribution: fastlane match clones the private ios-certificates repo with a token.

Validation

This PR's own runs use the changed workflows. The first runs miss the Actions cache on the new runners. update_goldens and App Distribute only run on dispatch or push, so this PR doesn't exercise them. The PR web build ran with the build label: it downloaded the stream-core-flutter actions and deployed from a standard runner, and the comment job posted the link.

🤖 Generated with Claude Code

razkevich and others added 2 commits November 27, 2026 11:35
- analyze, build, both path filter gates, the webrtc analyze and Linux,
  Android and web builds, and the beta analysis move to standard runners
  with an anonymous checkout. The gates' filters fetch the base with git,
  without a token. analyze is pinned to ubuntu-24.04, the image its goldens
  are rendered on.
- update_goldens renders on ubuntu-24.04 and hands the goldens to a commit
  job on the static-IP runners, which mints the bot token.
- The Android release build, the flutter.getstream.io deploy and the PR web
  build run on standard runners; Google Play and Google Cloud take no GitHub
  token. Commenting a PR's web build link is a job of its own on the
  static-IP runners. The gh-pages deploy pushes to the repository and stays.
- With 4 cores and 16 GB again, melos runs analyze and the Flutter tests at
  their old concurrency, analyze gets its 25 minutes back, and the size
  measurement keeps the template's Gradle settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@renefloor
renefloor requested a review from a team as a code owner November 27, 2026 10:42
@github-actions github-actions Bot added ready Pull request ready to be reviewed v2 labels Nov 27, 2026
@renefloor renefloor added the build Deploy this pull request's web build to flutter.getstream.io/video/pr/<number>/ label Nov 27, 2026
@github-actions github-actions Bot added approved Approved by a reviewer and removed ready Pull request ready to be reviewed labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Web build (video): removed.

The iOS unit tests, the webrtc iOS and macOS example builds and the SPM
build move from Scaleway to the xcode-27 image, and the iOS size
measurement, which pins Xcode 26.3, to macos-26, all with an anonymous
checkout. The iOS and macOS distribution jobs read the certificates with a
token and stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the xcode-27 image, pinned to 27.1. The first push to v2 stores a new
iOS benchmark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@renefloor
renefloor enabled auto-merge (squash) November 27, 2026 10:55
@renefloor renefloor removed the build Deploy this pull request's web build to flutter.getstream.io/video/pr/<number>/ label Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

SDK Size

title v2 branch diff status
android_stream_video 2.39 MB 2.39 MB 0 KB 🟢
android_stream_video_flutter 17.61 MB 17.61 MB 0 KB 🟢
pub_stream_video 1.0 MB 1.0 MB 0 KB 🟢
pub_stream_video_filters 0.04 MB 0.04 MB -1 KB 🚀
pub_stream_video_flutter 2.0 MB 2.0 MB 0 KB 🟢
pub_stream_video_noise_cancellation 0.05 MB 0.05 MB -1 KB 🚀
pub_stream_video_push_notification 0.49 MB 0.49 MB -2 KB 🚀
pub_stream_video_screen_sharing 0.01 MB 0.01 MB 0 KB 🟢

Measured on e6e9e4f.

@github-actions

Copy link
Copy Markdown

Size Breakdown

What each SDK adds to an empty release app, per Dart package and native library. Dart sizes are uncompressed symbol sizes. Open the sdk-size-analysis artifacts of this run in the DevTools App Size tool to drill down further.

This run does not measure ios.

Measured on e6e9e4f.

android · stream_video: 2.3 MB (0)
Component Size Δ vs v2
package:stream_video 865.7 KB 0
dart:@unknown 214.0 KB 0
dart:_http 151.5 KB 0
package:protobuf 143.1 KB 0
dart:mixin_deduplication 141.6 KB 0
dart:io 92.6 KB 0
dart:async 70.3 KB 0
package:stream_core 69.0 KB 0
package:dio 52.2 KB 0
package:rxdart 51.7 KB 0
dart:core 46.2 KB 0
package:source_span 42.4 KB 0
dart:@shared 40.0 KB 0
dart:convert 37.6 KB 0
dart:collection 26.5 KB 0
other (62) 307.8 KB 0
android · stream_video_flutter: 17.5 MB (0)
Component Size Δ vs v2
native:libjingle_peerconnection_so.so 11.96 MB 0
package:stream_video 1.21 MB 0
package:flutter 697.8 KB 0
classes.dex 456.0 KB 0
dart:@unknown 445.7 KB 0
dart:mixin_deduplication 369.5 KB 0
package:stream_video_flutter 212.9 KB 0
dart:_http 154.1 KB 0
package:protobuf 144.9 KB 0
dart:io 136.4 KB 0
package:stream_core_flutter 128.6 KB 0
native:libdartjni.so 121.7 KB 0
assets 119.8 KB 0
package:hive_ce 99.1 KB 0
dart:@shared 87.1 KB 0
other (101) 1.24 MB 0

@github-actions

Copy link
Copy Markdown

Coverage

Coverage
Changed lines n/a (0/0 lines)
This branch 69.38% (-0.01%)
v2 69.39% (23a4b9b, from cache)

None of the changed lines is in the coverage report.

@renefloor
renefloor merged commit 39cd748 into v2 Nov 27, 2026
45 of 46 checks passed
@renefloor
renefloor deleted the ci/v2-free-runners branch November 27, 2026 11:14

This branch was previously deployed

1 inactive deployment
flutter-web-pr — e6e9e4f9 Deployed Nov 27, 2026 by renefloor via Remove Build #574
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Approved by a reviewer v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants