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

More CI speed #1626

Merged
merged 3 commits into from
Sep 23, 2023
Merged

More CI speed #1626

merged 3 commits into from
Sep 23, 2023

Conversation

Radvendii
Copy link
Contributor

@github-actions github-actions bot temporarily deployed to pull request September 22, 2023 14:21 Inactive
@@ -268,7 +268,28 @@
# Build *just* the cargo dependencies, so we can reuse all of that work (e.g. via cachix) when running in CI
cargoArtifacts = craneLib.buildDepsOnly {
inherit pname src;
cargoExtraArgs = "${cargoBuildExtraArgs} --workspace --all-features";
cargoExtraArgs = "${cargoBuildExtraArgs} --all-features";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep all features here? Or keep it but make sure that the subsequent buildPackage also have all-features? From our last discussion I had the impression that what we want is that the features set used to build the packages should be - as much as possible - the same feature set as the one used in cargoArtifacts. In fact I think on the CI we should probably always enable all features by default (the best would be to test different feature sets, but if we have to chose one feature set, all-features is probably the one with the maximal covering)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only an issue if we have upstream dependencies whose feature sets depends on the set of features enabled on our crates. At the moment, we don't have any such situations, but in theory it could come up in the future. My impulse is to deal with it if/when it comes up, but the downside of that is that nobody will notice anything is wrong, CI will just silently start taking a little longer.

(
cd $packageDir
pwd
cargoWithProfile $command "$@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where's cargoWithProfile defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somewhere in craneLib. it's the default value of cargo{Build,Test,Check}Command

@Radvendii Radvendii added this pull request to the merge queue Sep 23, 2023
Merged via the queue into master with commit 9aa519f Sep 23, 2023
4 checks passed
@Radvendii Radvendii deleted the ci-speed branch September 23, 2023 23:46
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