Skip to content

x/build/cmd/coordinator: reduce nesting in buildStatus.runSubrepoTests #34247

Closed
@dmitshur

Description

@dmitshur

As part of working on resolving issues #32528, #30233, and #34190, I've made incremental changes to the runSubrepoTests method with the goal of keeping each diff minimal and easy to be confident in. By the end, the method has become quite large as it now deals with both module and GOPATH modes, with local variables spanning large parts of the code.

I've attempted to factor out parts of the method into smaller pieces in CL 194684, but in the short time I had, couldn't get to an outcome that was an improvement. Part of the problem was the difficulty of creating helpers methods due to dual-error return pattern that's prevalent. That's issue #34246, it probably needs to be tackled before or at the same time as this.

/cc @bradfitz @andybons

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions