Skip to content

ci: run macOS jobs when a plugin's ios/ sources change - #19007

Open
Lyokone wants to merge 1 commit into
mainfrom
ci/macos-e2e-ios-sources
Open

Lyokone wants to merge 1 commit into
mainfrom
ci/macos-e2e-ios-sources

Conversation

@Lyokone

@Lyokone Lyokone commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Description

What was broken: a PR that only changes Swift or Objective-C under a plugin's ios/ folder skipped every macOS job: the per-plugin e2e macOS jobs, e2e-smoke macOS and swift-integration-macos. Each plugin's macos/<plugin>/Sources files are symlinks into ios/, so git reports the edit only under ios/, and the macos paths-filter did not match ios/**. #18878 hit this: its macOS jobs were skipped although macOS compiles the same files.

Fix: add ios/** to the macos filter in reusable_e2e_changes.yaml (per-plugin e2e workflows) and reusable_repo_changes.yaml (e2e-smoke and all_plugins).

Behaviour change: iOS-only files, such as the iOS podspec, now also run the macOS jobs. Running an extra job is safer than skipping one that is needed.

Tests: no unit tests cover CI path filters. I ran the old and new filters through picomatch with the options dorny/paths-filter uses. For #18878's two files, macos is false on main and true with the fix. An Android-only change still gives macos=false.

Related Issues

Follow-up to #18542 (per-package e2e path filters).

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Each plugin's macos/<plugin>/Sources files are symlinks into ios/, so an
edit to shared Swift or Objective-C code shows up in the diff only under
ios/. The macos paths-filter matched macos/** and darwin/** but not
ios/**, so those PRs skipped every macOS e2e job and
swift-integration-macos even though macOS compiles the same files
(seen on #18878).

Add ios/** to the macos filter in reusable_e2e_changes.yaml (per-plugin
e2e workflows) and reusable_repo_changes.yaml (e2e smoke and
all_plugins). iOS-only files such as the iOS podspec now run macOS too;
running an extra job is preferred over skipping a needed one.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@Lyokone
Lyokone marked this pull request as ready for review November 24, 2026 15:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants