Skip to content

Instantly share code, notes, and snippets.

@fzyzcjy
Last active July 10, 2026 15:03
Show Gist options
  • Select an option

  • Save fzyzcjy/bff5d36467bcc53b56e0abaeab66f109 to your computer and use it in GitHub Desktop.

Select an option

Save fzyzcjy/bff5d36467bcc53b56e0abaeab66f109 to your computer and use it in GitHub Desktop.
flutter_rust_bridge issue 3296 Native Assets hook reproduction
00:00 +0: loading /Users/tom/.codex/worktrees/942d/flutter_rust_bridge/frb_example/native_assets_hook_overhead_fixture/test/a_test.dart
00:00 +0: /Users/tom/.codex/worktrees/942d/flutter_rust_bridge/frb_example/native_assets_hook_overhead_fixture/test/a_test.dart: a
00:00 +1: /Users/tom/.codex/worktrees/942d/flutter_rust_bridge/frb_example/native_assets_hook_overhead_fixture/test/a_test.dart: a
00:00 +2: All tests passed!
./hook-invocations.log
---
1783695373438749

Manual Test Execution

Test

  • Manual test: tools/manual_tests/2026-07-10-native-assets-test-hook-overhead.md
  • Purpose: compare Native Assets build-hook invocations for two selected Flutter test files in FRB and vanilla native_toolchain_rust.
  • Source context: fzyzcjy/flutter_rust_bridge#3296

Run

  • Date and timezone: 2026-07-10 23:04 CST
  • Executor: Codex agent
  • Commit or release tested: FRB f0dcf1f38a baseline; vanilla native_toolchain_rust aeda048b2581317cad0051cf1e061ba6327a1c67
  • Environment: FRB per-worktree Docker container frb-c2b5c6659ae1; exact Flutter, Dart, and Rust versions are in tool-versions.log.

Procedure

  • Followed report revision: 3769617e54
  • Command script or exact commands: the Docker commands and complete outputs are retained in the listed logs.
  • Deviations from written steps: the FRB fixture was placed under frb_example/ instead of /tmp so its path dependencies remained valid; it required an empty [workspace] in the copied crate to isolate it from the root Cargo workspace. The manual report was updated to reflect this.
  • Cleanup completed: yes; the temporary FRB fixture and container-local upstream clone were removed after logs were archived.

Result

  • Status: pass
  • Summary: both FRB and vanilla upstream completed two selected test files with exit status 0, All tests passed!, and one hook marker invocation. This does not reproduce #3296 under the tested Flutter runtime.
  • Command results: FRB flutter test test/a_test.dart test/b_test.dart exit 0; upstream equivalent command exit 0.
  • Evidence lines: fixture-flutter-test.log and upstream-flutter-test.log each end with All tests passed!; fixture-hook-invocations.log has one timestamp marker and upstream-hook-invocations.log contains one x.

Artifacts

  • Execution markdown gist: https://gist.github.com/fzyzcjy/bff5d36467bcc53b56e0abaeab66f109
  • Terminal log: fixture-pub-get.log, fixture-flutter-test.log, upstream-pub-get.log, and upstream-flutter-test.log in this directory.
  • Screenshot or recording: not applicable.
  • Generated artifacts: fixture-hook-invocations.log and upstream-hook-invocations.log in this directory.
  • Environment evidence: tool-versions.log in this directory.
  • Cleanup evidence: git status --short --branch reported only the reproduction branch name with no changed files after cleanup.
  • Other evidence: current result is constrained to explicitly selected test files and the recorded tool versions.

Follow-up

  • Required follow-up: publish this execution evidence with the intentional reproduction PR; do not claim an FRB code fix without reproducing the issue's reported version and invocation.
  • Notes: the initial temporary marker injection failed due to shell escaping and is documented in the debug journal; it was not treated as product evidence.
Flutter 3.44.0 • channel [user-branch] • unknown source
Framework • revision 559ffa3f75 (8 weeks ago) • 2026-05-15 14:13:13 -0700
Engine • hash fcf463a2242790d1fdcd9d044f533080f5022e18 (revision 4c525dac5e) (1 months ago) • 2026-05-15 19:00:04.000Z
Tools • Dart 3.12.0 • DevTools 2.57.0
Dart SDK version: 3.12.0 (stable) (Fri May 8 01:51:14 2026 -0700) on "linux_arm64"
rustc 1.93.1 (01f6ddf75 2026-02-11)
Resolving dependencies in `/tmp/native_toolchain_rust-hook-overhead`...
Downloading packages...
_fe_analyzer_shared 92.0.0 (104.0.0 available)
analyzer 9.0.0 (14.0.0 available)
async 2.13.0 (2.13.1 available)
cli_util 0.4.2 (0.5.1 available)
coverage 1.15.0 (1.15.1 available)
dart_style 3.1.3 (3.1.11 available)
json_annotation 4.10.0 (4.12.0 available)
matcher 0.12.19 (0.12.20 available)
melos 7.8.1 (8.2.0 available)
meta 1.18.0 (1.19.0 available)
mustache_template 2.0.3 (2.0.5 available)
package_config 2.2.0 (3.0.0 available)
test 1.31.0 (1.31.2 available)
test_api 0.7.11 (0.7.13 available)
test_core 0.6.17 (0.6.19 available)
vector_math 2.2.0 (2.4.0 available)
vm_service 15.0.2 (15.2.0 available)
xml 6.6.1 (7.0.1 available)
Got dependencies in `/tmp/native_toolchain_rust-hook-overhead`!
18 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
File modified during build. Build must be rerun.
00:00 +0: loading /tmp/native_toolchain_rust-hook-overhead/examples/flutter/test/a_test.dart
00:00 +0: /tmp/native_toolchain_rust-hook-overhead/examples/flutter/test/a_test.dart: a
00:00 +1: /tmp/native_toolchain_rust-hook-overhead/examples/flutter/test/b_test.dart: b
00:00 +2: All tests passed!
./hook-invocations.log
---
x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment