Skip to content

Conditionally skip the engine build phase #162201

Closed
flutter/cocoon
#4190

Description

@matanlurey

We'll use the same logic we use for runIf to determine if the engine sources changed::

  • DEPS
  • engine/**

If there are >= 30 files or one of the files above changed, we keep doing what we do now (i.e. build the engine before scheduling engine and framework tests).

Otherwise, in this new flow (TM):

This, combined with the work we already did/are doing, see #162118, means that we'll fetch and use an older engine artifact.


There is future work to do to expand beyond the 30 file limit (see #161462), but we believe this would address many framework-only PRs today, allowing us to fix the limitations we have today of understanding what files changed (and eventually move towards something like a precomputed build plan).

Activity

  1. added
    a: tests"flutter test", flutter_test, or one of our tests
    c: tech-debtTechnical debt, code quality, testing, etc.
    fyi-frameworkFor the attention of Framework team
    P1High-priority issues at the top of the work list
    team-infraOwned by Infrastructure team
    on Jan 24, 2025
  2. jtmcdole commented on Jan 24, 2025

    @jtmcdole
    Member
  3. 1 remaining item

  4. jtmcdole commented on Jan 25, 2025

    @jtmcdole
    Member
  5. jtmcdole commented on Jan 28, 2025

    @jtmcdole
    Member

    #162284 shows cocoon working so long as its a short list of allowlisted folks. We have to update the update_engine_version files to not output to stderr or its going to fail linux analyze.

  6. jtmcdole commented on Jan 28, 2025

    @jtmcdole
    Member

    I've been hit with two things recently:

    1. Cocoon started scheduled engine builds for me
    2. I've seen a couple of PRs will stuck MQG even after the engine builds succeed... investigating.
  7. jtmcdole commented on Jan 28, 2025

    @jtmcdole
    Member

    WARNING 2025-01-28T14:52:23.881Z app_dart: Not considering PR#162284 as framework-only: An error occurred: GitHub Error: Access Forbidden

  8. jtmcdole commented on Jan 28, 2025

    @jtmcdole
    Member

    WARNING 2025-01-28T14:52:23.881Z app_dart: Not considering PR#162284 as framework-only: An error occurred: GitHub Error: Access Forbidden

    Cocoon was using unauthenticated calls to list files at this stage. Fixed: flutter/cocoon#4191

  9. github-actions commented on Feb 11, 2025

    @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.

  10. locked as resolved and limited conversation to collaborators on Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: tech-debtTechnical debt, code quality, testing, etc.fyi-frameworkFor the attention of Framework teamteam-infraOwned by Infrastructure team

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions