Skip to content

test_runner is truncating builder name on mac #76582

Closed

Description

@godofredoc

Mac_ios builders are truncating the builderName and trying to find tasks with builder Mac_ios:

image

Activity

  1. CaseyHillers commented on Feb 23, 2021

    @CaseyHillers
    Contributor
  2. added
    P1High-priority issues at the top of the work list
    team-infraOwned by Infrastructure team
    on Feb 23, 2021
  3. CaseyHillers commented on Feb 23, 2021

    @CaseyHillers
    Contributor

    Recipes are fine. LUCI handles escaping the spaces in the command line args.

    Example run with spaces:
    runner.sh -t flutter_gallery_ios__compile --results-file results.json --luci-builder 'Mac_ios flutter_gallery_ios__compile' --git-branch master

    The issue is in how the upload metrics request is being constructed that is causing Cocoon to drop everything after the space.

  4. godofredoc commented on Feb 23, 2021

    @godofredoc
    ContributorAuthor

    I believe the problem is in the call to dart runner inside runner.sh as $* is translated as a string without quotes which makes the parser to treat every word as a separate argument. Linux seems to deal correctly with the params but mac is not:

    https://cs.opensource.google/flutter/recipes/+/master:recipes/devicelab/devicelab_drone.resources/runner.sh;l=13

  5. CaseyHillers commented on Feb 23, 2021

    @CaseyHillers
    Contributor

    I did a local run on my mac with the command LUCI is using on mac (see #76582 (comment)). Everything goes as expected until the request to Cocoon. AppEngine is expecting the spaces to be url encoded to %20, which isn't happening.

  6. godofredoc commented on Feb 23, 2021

    @godofredoc
    ContributorAuthor

    Results file already has the task name truncated:

    https://chromium-swarm.appspot.com/task?id=51e93e455e636c10

    Please take a look at the present result file - result output at the end

  7. changed the title [-]test_runner is truncating builder name[/-] [+]test_runner is truncating builder name on mac[/+] on Feb 23, 2021
  8. CaseyHillers commented on Feb 23, 2021

    @CaseyHillers
    Contributor

    Thanks Godofredo. To recap, the issue seems to only occur on the mac builders, so it's possibly related to the runner.sh logic and how LUCI forwards the runner params to the script.

  9. CaseyHillers commented on Feb 24, 2021

    @CaseyHillers
    Contributor

    @godofredoc added a fix in the mac runner script for this: https://flutter-review.googlesource.com/c/recipes/+/10742

    Thank you!

  10. github-actions commented on Aug 5, 2021

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

  11. locked as resolved and limited conversation to collaborators on Aug 5, 2021
  12. moved this from Verified to To be archived in [DEPRECATED] Infra Ticket Queueon Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.team-infraOwned by Infrastructure team

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions