Sitelet https://github.com/flutter/flutter/pull/192765
Skip to content

[devicelab] Unify web benchmarks entrypoint using BENCHMARK_SERVER_PORT define - #192765

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
harryterkelsen:web-benchmarks-entrypoint
Sep 23, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
harryterkelsen:web-benchmarks-entrypoint

Conversation

@harryterkelsen

Copy link
Copy Markdown
Contributor

Removes the duplicate lib/web_benchmarks_ddc.dart entrypoint in macrobenchmarks and unifies the entrypoint target across both DDC (flutter run) and non-DDC (flutter build) modes to lib/web_benchmarks.dart.

  • Passes --dart-define=BENCHMARK_SERVER_PORT=$benchmarkServerPort to flutter run in DDC mode to match flutter build.
  • Reads BENCHMARK_SERVER_PORT in lib/web_benchmarks.dart via const String.fromEnvironment, defaulting to 9999.
  • Deletes dev/benchmarks/macrobenchmarks/lib/web_benchmarks_ddc.dart.

Part of #191316

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 14, 2026
@github-actions github-actions Bot added the team-web Owned by Web platform team label Sep 14, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request consolidates the web benchmark entrypoints by removing the separate DDC entrypoint and updating the main entrypoint to dynamically retrieve the benchmark server port via the BENCHMARK_SERVER_PORT environment variable. Feedback recommends using int.tryParse instead of int.parse to prevent potential runtime exceptions from invalid port values, as well as extracting the environment variable lookup to a local constant to avoid duplication.

Comment thread dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart Outdated

@mdebbar mdebbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@harryterkelsen harryterkelsen added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 22, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 22, 2026
@auto-submit

auto-submit Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/192765, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@harryterkelsen harryterkelsen added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 22, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 22, 2026
@auto-submit

auto-submit Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/192765, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@harryterkelsen harryterkelsen added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 23, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 23, 2026
@auto-submit

auto-submit Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/192765, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

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

Labels

CICD Run CI/CD team-web Owned by Web platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants