Skip to content

x/build: keep test result logs available after success #34119

Open
@dmitshur

Description

@dmitshur

Currently, the x/build testing infrastructure (both trybots and post-submit builders) generally makes test logs available under two conditions:

  • while the test is running, streamed
  • after the test completed, if it failed

After tests complete successfully, the test logs immediately become inaccessible.

I don't know the exact rationale for this design, but my guess is that it done to reduce computational and storage resource use. It was likely deemed logs are less useful if tests passed. /cc @bradfitz Is there more context on this?

Feature Request

This feature request issue is to make them accessible on successful test completion for some amount of time (at least a month). Both on the build dashboard, and for trybot results.

The reasons for wanting this include:

  • it's sometimes helpful to be able to know which tests ran and which tests were skipped, and to be able to confirm a specific test truly passed
  • it's sometimes helpful to know which architectures were tested by trybots (and from that, to know which ones weren't), and having trybot result page with logs makes that much easier
  • pretty much every CI system keeps test logs accessible regardless if tests succeeded or failed, so it has become a baseline expectation

I think this should be worth doing in order to improve the developer experience for people working on the Go project. Feedback from others is welcome.

/cc @golang/osp-team

Activity

added
TestingAn issue that has been verified to require only test changes, not just a test failure.
Buildersx/build issues (builders, bots, dashboards)
FeatureRequestIssues asking for a new feature that does not need a proposal.
on Sep 5, 2019
added this to the Unreleased milestone on Sep 5, 2019
added
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
on Sep 5, 2019
toothrot

toothrot commented on Sep 5, 2019

@toothrot
Contributor

This sounds like it could be related to #13076 and #10313.

Edit by @dmitshur: Another related issue is #12669.

bradfitz

bradfitz commented on Sep 5, 2019

@bradfitz
Contributor

Agreed. Let's just keep them forever. They're small. We already keep the built artifacts after make.bash forever and they're way bigger.

History is because build.golang.org only had links for failures.

added
NeedsFixThe path to resolution is known, but the work has not been done.
and removed
NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.
on Sep 5, 2019
dmitshur

dmitshur commented on Sep 5, 2019

@dmitshur
MemberAuthor

@toothrot Thanks for finding those issues. They support the decision to do this.

Both of those issues are from 2015 and talk about a subset of this problem, so I folded them into this higher level tracking issue. I think it'll be better for us to open new smaller issues as needed.

@bradfitz Thanks for providing background on this. @andybons has expressed his support for this too, so I think we're in favor of doing this.

self-assigned this
on Oct 1, 2019

16 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)CommunityFeatureRequestIssues asking for a new feature that does not need a proposal.NeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bradfitz@toothrot@andybons@dmitshur@gopherbot

        Issue actions

          x/build: keep test result logs available after success · Issue #34119 · golang/go