Skip to content

Flutter tool should require "--local-engine-host" when "--local-engine" is set #132245

Description

@matanlurey

Status: WIP. There are enough PRs out right now where I'm focusing on getting them landed/sticking before moving forward.


This is a follow-up to #132180 (comment).

As of #132180, --local-engine-host is optional, and if omitted, falls back to trying to derive the host.

We'd like to make this explicit instead, so:

Activity

  1. added
    c: tech-debtTechnical debt, code quality, testing, etc.
    fyi-engineFor the attention of Engine team
    team-toolOwned by Flutter Tool team
    on Aug 9, 2023
  2. self-assigned this
    on Aug 9, 2023
  3. matanlurey commented on Aug 10, 2023

    @matanlurey
    ContributorAuthor

    @christopherfujino Two quick questions:

    1. Where, if anywhere, should we announce this change? I don't think it's important enough to be an "announcement", so maybe just #hackers-engine and #hackers-tool (and respective internal-only chat groups)? This is mostly just to make sure we get feedback if we're missing some nuance.
    2. If I wanted to test "what if this was required", is the best way to make it a throwToolExit and create a draft PR?
  4. christopherfujino commented on Aug 10, 2023

    @christopherfujino
    Contributor
    1. notifying those discord channels SGTM, I'd just add that you should update: https://github.com/flutter/flutter/wiki/The-flutter-tool#using-a-locally-built-engine-with-the-flutter-tool. That's where I point people when they ask how to do it.
    2. That would test most of the framework tests (most devicelab tests don't run pre-submit, but I doubt any of them are using a local engine). @godofredoc do you know if there are any existing engine tests that use flutter --local-engine? Also, per Add --local-engine-host, which if specified, is used instead of being inferred #132180 (comment), it sounds like we may break golem?
  5. matanlurey commented on Aug 10, 2023

    @matanlurey
    ContributorAuthor

    @christopherfujino:

    1. I'd just add that you should update: https://github.com/flutter/flutter/wiki/The-flutter-tool#using-a-locally-built-engine-with-the-flutter-tool

    Want to informally review this delta before I apply it?
    https://gist.github.com/matanlurey/ddb5e16e349c5bbdd0c1e036f189aed4

    1. It sounds like we may break golem?

    I'll follow-up with Bill's team and make sure they have ample time (or can show me where to make changes).

  6. matanlurey commented on Aug 10, 2023

    @matanlurey
    ContributorAuthor

    For posterity, we communicated the tooling changes via Discord:

    Screenshot 2023-08-10 at 12 36 10 PM

  7. christopherfujino commented on Aug 10, 2023

    @christopherfujino
    Contributor

    @christopherfujino:

    1. I'd just add that you should update: https://github.com/flutter/flutter/wiki/The-flutter-tool#using-a-locally-built-engine-with-the-flutter-tool

    Want to informally review this delta before I apply it? https://gist.github.com/matanlurey/ddb5e16e349c5bbdd0c1e036f189aed4

    1. It sounds like we may break golem?

    I'll follow-up with Bill's team and make sure they have ample time (or can show me where to make changes).

    wiki diff LGTM

  8. matanlurey commented on Aug 10, 2023

    @matanlurey
    ContributorAuthor
  9. changed the title [-]Flutter tool should require "--local-host-engine" when "--local-engine" is set[/-] [+]Flutter tool should require "--local-engine-host" when "--local-engine" is set[/+] on Aug 10, 2023
  10. 23 remaining items

  11. matanlurey commented on Aug 17, 2023

    @matanlurey
    ContributorAuthor

    Looking good so far. Will try finalizing this next week after it has baked a bit.

  12. added a commit that references this issue on Aug 22, 2023
    a021015
  13. knopp commented on Aug 31, 2023

    @knopp
    Member

    So with this change when I want to run. the app on macOS with local engine I always need to run it with --local-engine=host_debug_unopt --local-engine-host=host_debug_unopt? Seems rather redundant.

  14. github-actions commented on Sep 14, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

c: tech-debtTechnical debt, code quality, testing, etc.team-toolOwned by Flutter Tool team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions