Skip to content

Coverage generation should run only after all tests complete #1020

Closed

Description

@smarterclayton

Test pull requests and ami build is ~12 minutes longer due to html generation, but we only need to return html if the build succeeds. Suggest generating in a separate step at the end

Activity

  1. ironcladlou commented on Mar 20, 2015

    @ironcladlou
    Contributor

    Here's the important section of the current job:

    # ... snip ...
    
    pushd origin
    vagrant origin-init --stage inst --os fedora origin_${JOB_NAME}_${BUILD_NUMBER}
    vagrant up --provider aws
    vagrant sync-openshift3 -s
    vagrant test-openshift3 --all -d -c --skip-image-cleanup
    test_pull_requests --mark_test_success $ORIGIN_PULL_ID --repo origin --config ~/.test_pull_requests_origin.json
    popd

    What if we...

    Changed the main build step to omit the coverage flag, and unset --skip-image-cleanup:

    # ... snip ...
    
    pushd origin
    vagrant origin-init --stage inst --os fedora origin_${JOB_NAME}_${BUILD_NUMBER}
    vagrant up --provider aws
    vagrant sync-openshift3 -s
    vagrant test-openshift3 --all -d
    popd

    And made the first post-build step set to execute only if the build succeeds:

    vagrant test-openshift3 --all -d -c --skip-image-cleanup
    test_pull_requests --mark_test_success $ORIGIN_PULL_ID --repo origin --config ~/.test_pull_requests_origin.json

    This does mean we'd run the tests twice, but having failures return faster seems worth it.

  2. smarterclayton commented on Mar 20, 2015

    @smarterclayton
    ContributorAuthor

    Before changing this we should copy what upstream does in hack/test-go (or bits of it) to aggregate the results. You can cat the samples together apparently as long as you trim a few lines.

    ----- Original Message -----

    Here's the important section of the current job:

    # ... snip ...
    
    pushd origin
    vagrant origin-init --stage inst --os fedora
    origin_${JOB_NAME}_${BUILD_NUMBER}
    vagrant up --provider aws
    vagrant sync-openshift3 -s
    vagrant test-openshift3 --all -d -c --skip-image-cleanup
    test_pull_requests --mark_test_success $ORIGIN_PULL_ID --repo origin --config
    ~/.test_pull_requests_origin.json
    popd

    What if we...

    Changed the main build step to omit the coverage flag, and unset
    --skip-image-cleanup:

    # ... snip ...
    
    pushd origin
    vagrant origin-init --stage inst --os fedora
    origin_${JOB_NAME}_${BUILD_NUMBER}
    vagrant up --provider aws
    vagrant sync-openshift3 -s
    vagrant test-openshift3 --all -d
    popd

    And made the first post-build step set to execute only if the build succeeds:

    vagrant test-openshift3 --all -d -c --skip-image-cleanup
    test_pull_requests --mark_test_success $ORIGIN_PULL_ID --repo origin --config
    ~/.test_pull_requests_origin.json

    This does mean we'd run the tests twice, but having failures return faster
    seems worth it.


    Reply to this email directly or view it on GitHub:
    #1020 (comment)

  3. danmcp commented on May 12, 2015

    @danmcp

    Few things:

    • The current state is we don't run coverage on test or merge
    • It's the coverage that's the issue and not the html generation
    • The result aggregation seems like the remaining feasible piece
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions