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

ci: rework connect tests to daily tests, add cargo hack. #1433

Merged
merged 6 commits into from
Aug 31, 2023

Conversation

cpu
Copy link
Member

@cpu cpu commented Aug 30, 2023

This branch reworks the existing "connect tests" CI job that runs once a day to be "daily tests". This better matches how we've been using it for things beyond the connect test suite (e.g. smoke test builds of example binaries).

Additionally it:

  • Adds name fields to each workflow step for better readability.
  • Adds a step for building the server acceptor example.
  • Splits the workflow into distinct jobs per-purpose.
  • Adds cargo hack to test the crate feature powerset, to catch problems like Correct cargo test for all feature combinations #1427 earlier than we would otherwise, without compromising PR dev velocity.

@cpu cpu self-assigned this Aug 30, 2023
@cpu
Copy link
Member Author

cpu commented Aug 30, 2023

Example run where I modified the trigger to run for push to test it: https://github.com/cpu/rustls/actions/runs/6027227144

@cpu cpu force-pushed the cpu-slow-ci-and-cargo-hack branch from 514d497 to da5bf4a Compare August 30, 2023 16:18
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #1433 (da5bf4a) into main (95cffd6) will not change coverage.
The diff coverage is n/a.

❗ Current head da5bf4a differs from pull request most recent head d75935f. Consider uploading reports for the commit d75935f to get more accurate results

@@           Coverage Diff           @@
##             main    #1433   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files          71       71           
  Lines       15169    15169           
=======================================
  Hits        14637    14637           
  Misses        532      532           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

We are gradually adding other CI task here that aren't appropriate for
the main CI runs. Since it's no longer dedicated to just running the
connection tests we need a more representative name.
This ensures the example binary continues to build, similar to how we
handle the other examples.
This better separates the connection tests from the example binary smoke
tests. In a subsequent commit we will add another job for running `cargo
hack`.
Test the feature powerset of the crate using `cargo hack`. The runtime
of this is too large to use as part of the regular CI flow but it is
helpful for catching feature interaction breakages.
@cpu cpu force-pushed the cpu-slow-ci-and-cargo-hack branch from da5bf4a to d75935f Compare August 31, 2023 14:04
@cpu
Copy link
Member Author

cpu commented Aug 31, 2023

Test run for the updated branch.

@cpu cpu enabled auto-merge August 31, 2023 14:05
@cpu cpu added this pull request to the merge queue Aug 31, 2023
Merged via the queue into rustls:main with commit c1ec86d Aug 31, 2023
20 checks passed
@cpu cpu deleted the cpu-slow-ci-and-cargo-hack branch August 31, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants