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: Run target-agnostic build/test steps only once #132

Merged
merged 2 commits into from
Mar 20, 2021

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Mar 20, 2021

From #129 (comment)

A lot of these steps - except apk building - are not target-specific (do not have a --target option; target: on actions-rs/toolchain only specifies what targets to install). This is a waste of time despite all duplication running in parallel, and could be used to run a target-specific apk build in parallel with host-side tests instead.

It should be fine to perform just the apk build step on Windows, and leave the rest (tests, documentation) to Linux runners only - most of those steps were not ran on Windows anyway.

This takes CI time down from 6m30s to just under 5m, with around 3m spent in apk building (in parallel), 3m40s spent testing all cates and docs on the host, and under 5m for apk building on Windows (defining the baseline for total build completion time).


EDIT: With the second commit separating (hence parallelizing) host-tests from documentation build-testing, these steps are now down to 2m40 resp 2min. Not that it matters, the Windows test defines our lower bound 😡

A lot of these steps - except apk building - are not target-specific (do
not have a `--target` option; `target:` on `actions-rs/toolchain` only
specifies what targets to install). This is a waste of time despite all
duplication running in parallel, and could be used to run a
target-specific apk build in parallel with host-side tests instead.

It should be fine to perform just the apk build step on Windows, and
leave the rest (tests, documentation) to Linux runners only - most of
those steps were not ran on Windows anyway.

This takes CI time down from 6m30s to just under 5m, with around 3m
spent in apk building (in parallel), 3m40s spent testing all cates and
docs on the host, and under 5m for apk building on Windows
(defining the baseline for total build completion time).
This build takes about a minute and seems to recheck all crates anyway,
and is hence better ran in parallel rather than synchronously with the
tests.
@msiglreith msiglreith merged commit 3b9c4a9 into rust-mobile:master Mar 20, 2021
@MarijnS95 MarijnS95 deleted the deduplicate-tests branch March 20, 2021 14:30
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.

2 participants