Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add CI env variable configurations #1672

Merged
merged 1 commit into from
Oct 22, 2021
Merged

chore: add CI env variable configurations #1672

merged 1 commit into from
Oct 22, 2021

Commits on Oct 22, 2021

  1. chore: add CI env variable configurations

    This branch adds some environment variables to configure *all* CI jobs.
    In particular, we:
    
    - disable incremental compilation
    - increase the number of retries for network requests in `cargo` and
      `rustup`
    - emit shortened backtraces from panics
    
    This config was blatantly stolen from linkerd/linkerd2-proxy#7137. :)
    
    Incremental compilation is useful as part of an edit-build-test-edit
    cycle, as it lets the compiler avoid recompiling code that hasn't
    changed. However, on CI, we're not making small edits; we're almost
    always building the entire project from scratch. Thus, incremental
    compilation on CI actually introduces *additional* overhead to support
    making future builds faster...but no future builds will ever occur in
    any given CI environment.
    
    See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow
    for details.
    
    Increasing retries for network requests should help reduce flakiness a
    bit.
    hawkw committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a10a5d5 View commit details
    Browse the repository at this point in the history