[ci] Build ruby CIPD packages with Xcode 17c52 (#5155)

Both ruby builders have been failing at `build package` because Homebrew requires Xcode >= 16.0 on macOS 15 and they request Xcode 15a240d:

```
Error: Your Xcode (15.0 => /opt/flutter/xcode/15a240d/XCode.app/Contents/Developer) at /Applications/Xcode.app is too outdated.
Please update to Xcode 26.3 (or delete it).
```

Move both to 17c52 (Xcode 26.2), the version every other Flutter builder uses, so mac-amd64 and mac-arm64 are built with the same toolchain. This also keeps them aligned with the Intel Xcode pin in https://flutter-review.googlesource.com/c/recipes/+/83760, which would otherwise change only the amd64 builder.

Examples: https://ci.chromium.org/b/8670377120581308353 (Mac ruby), https://ci.chromium.org/b/8670377021801718401 (Mac_arm64 ruby).

### What this does and does not fix

Homebrew's `fatal_build_from_source_checks` are fatal (exit 1) for `brew reinstall --build-from-source`, which `cipd_packages/ruby/tools/build.sh` uses; on Intel Homebrew no longer ships bottles at all, so even `brew install curl` builds from source. This PR clears one of those checks:

So these builders will stay red after this lands; this is a prerequisite, not the fix. Umbrella: https://github.com/flutter/flutter/issues/164665.

Note on `os: "Mac-15.5|Mac-15.7"`: 17c52 requires macOS 15.6, but there are currently 0 macOS 15.5 bots in `luci.flutter.prod` (150 Mac bots, all 15.7.x), so the dimension is left as is.

Consumers are unaffected either way: every `ruby` dependency in flutter/flutter (80) and flutter/packages (1) pins CIPD ref `ruby_3.1-pod_1.13` (registered 2023-10-23); these builders only re-register `latest`.
1 file changed
tree: 32a7cec69a588a3a6a02aab79ec49ac44cecbab3
  1. .github/
  2. .vscode/
  3. analyze/
  4. app_dart/
  5. auto_submit/
  6. cipd_packages/
  7. cloud_build/
  8. conductor/
  9. dashboard/
  10. dev/
  11. licenses/
  12. packages/
  13. test_utilities/
  14. tooling/
  15. .ci.yaml
  16. .gitattributes
  17. .gitignore
  18. analysis_options.yaml
  19. CI_YAML.md
  20. cloudbuild_cron.yaml
  21. cocoon.code-workspace
  22. CODEOWNERS
  23. CONTRIBUTING.md
  24. cron.yaml
  25. devtools_options.yaml
  26. Dockerfile.app_dart
  27. Dockerfile.auto_submit
  28. Dockerfile.flutter
  29. flutter_image_build.yaml
  30. LICENSE
  31. pubspec.yaml
  32. README.md
  33. tests.yaml
README.md

Flutter CI Status SLSA 3

Cocoon is a Dart App Engine custom runtime (backend) with a frontend of Flutter apps (build and repository dashboard). Cocoon coordinates and aggregates the results of flutter/flutter builds.

It is not designed to help developers build Flutter apps.

Cocoon is not a Google product.

Using Cocoon

Forcing a refresh from GitHub

The server is driven by commits made to https://github.com/flutter/flutter repo. It periodically syncs new commits. If you need to manually force a refresh, query https://flutter-dashboard.appspot.com/api/refresh-github-commits.

You will need to be authenticated with Cocoon to do this.

Developing Cocoon

Cocoon has several components:

  • A server, which coordinates everything. This is a Dart App Engine application. If you have never used that before, you may want to peruse the samples for Dart App Engine. The server is found in app_dart.

  • A Flutter app (generally used as a Web app) for the build dashboards. The dashboard is found in dashboard.

Cocoon creates a checklist for each Flutter commit. A checklist is made of multiple tasks. Tasks are performed by LUCI bots.

Getting started

First, set up a Flutter development environment. This will, as a side-effect, provide you with a Dart SDK. Your life will be easier if you add that (.../flutter/bin/cache/dart-sdk/bin/) to your path.

To update the production server, you will need the Google Cloud SDK. Since there is no Dart SDK, we just use the command line tools.

Developing the server

All the commands in this section assume that you are in the app_dart/ directory.

Running a local dev server

dart bin/local_server.dart

This will output Serving requests at 0.0.0.0:8080 indicating the server is working.

New requests will be logged to the console.

Deploying a test version on Google Cloud

To run live tests, build the app, and provide instructions for deploying to Google App Engine, run this command:

dart dev/deploy.dart --project {PROJECT} --version {VERSION}

You can test the new version by accessing {VERSION}-dot-flutter-dashboard.appspot.com in your browser. If the result is satisfactory, the new version can be activated by using the Cloud Console UI: https://console.cloud.google.com/appengine/versions?project=flutter-dashboard&serviceId=default

Optional flags

--profile: Deploy a profile mode of dashboard application for debugging purposes.

--ignore-version-check: Ignore the version of Flutter on path (expects to be relatively recent)

Developing the dashboard

The dashboard application will use dummy data when it is not connected to the server, so it can be developed locally without a dev server.

To run the dashboard locally, go into the dashboard directory and run flutter run -d chrome --dart-define=FAKE_AUTH=true. The dashboard will be served from localhost (the exact address will be given on the console); copy the URL into your browser to view the application. (The dashboard should also be able to run on non-Web platforms, but since the Web is our main target that is the one that should generally be used for development.)

You can run flutter packages upgrade to update the dependencies. This may be necessary if you see a failure in the dependencies.