Skip to content

[infra] Prepare to add ffigen, objective_c, swift2objc, and swiftgen to the workspace #2330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 3, 2025

Conversation

liamappelbe
Copy link
Contributor

@liamappelbe liamappelbe commented May 26, 2025

The main change here is updating the tests to not assume they're being run from a particular directory. There are various tests in ffigen, objective_c, and swift2objc that need to load files, so I just copied the util other native packages are using to determine the package directory. We should share this util at some point.

Can't actually add them to the workspace yet, since package:objective_c is a flutter plugin.

@github-actions github-actions bot added type-infra A repository infrastructure change or enhancement package:ffigen package:objective_c labels May 26, 2025
Copy link

github-actions bot commented May 26, 2025

PR Health

API leaks ⚠️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbols
objective_c _Version

This check can be disabled by tagging the PR with skip-leaking-check.

License Headers ✔️
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Files
no missing headers

All source files should start with a license header.

Unrelated files missing license headers
Files
pkgs/jni/lib/src/third_party/generated_bindings.dart
pkgs/native_doc_dartifier/example/native_doc_dartifier_example.dart
pkgs/native_doc_dartifier/lib/native_doc_dartifier.dart
pkgs/native_doc_dartifier/lib/src/native_doc_dartifier_base.dart
pkgs/native_doc_dartifier/test/native_doc_dartifier_test.dart
pkgs/objective_c/lib/src/ns_input_stream.dart

@coveralls
Copy link

coveralls commented May 26, 2025

Coverage Status

coverage: 90.79% (-0.2%) from 90.94%
when pulling 922ef67 on cov_infra
into 0028dd6 on main.

@liamappelbe liamappelbe changed the title [infra] Update coverage [infra] Add objective_c, swift2objc, and swiftgen to the workspace May 27, 2025
@liamappelbe liamappelbe requested a review from dcharkes May 27, 2025 01:37
@liamappelbe liamappelbe changed the title [infra] Add objective_c, swift2objc, and swiftgen to the workspace [infra] Prepare to add objective_c, swift2objc, and swiftgen to the workspace May 27, 2025
@liamappelbe liamappelbe changed the title [infra] Prepare to add objective_c, swift2objc, and swiftgen to the workspace [infra] Prepare to add ffigen, objective_c, swift2objc, and swiftgen to the workspace May 27, 2025
Copy link
Collaborator

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

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

LGTM!

The main change here is updating the tests to not assume they're being run from a particular directory. There are various tests in ffigen, objective_c, and swift2objc that need to load files, so I just copied the util other native packages are using to determine the package directory.

👍

We should share this util at some point.

Yeah I stared doing some relative imports in the hooks packages, but that's not pretty either.

Can't actually add them to the workspace yet, since package:objective_c is a flutter plugin.

👍

- name: Run VM tests and collect coverage
run: dart run coverage:test_with_coverage --scope-output=ffigen --scope-output=objective_c
run: dart pub global run coverage:test_with_coverage --scope-output=ffigen --scope-output=objective_c
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can the objective_c and ffigen workflows be merged into one? (Can be done in a separate PR.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably. I'll look into it

@liamappelbe liamappelbe merged commit 8f402fb into main Jun 3, 2025
24 of 25 checks passed
@liamappelbe liamappelbe deleted the cov_infra branch June 3, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants