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

feat(github): add CICD job build_programs_individually #6212

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

gierens
Copy link
Contributor

@gierens gierens commented Apr 10, 2024

This adds a rudimentary CI job for building the different programs individually by basically looping over a subset of the cargo feature output.

Would look like this: https://github.com/gierens/coreutils/actions/runs/8638198438/job/23682121436

Screenshot from 2024-04-11 00-20-35

Not sure if this is what you're looking for or rather some static list, I just stumbled across this issue and did something similar before. A future alternative could be cargo-all-features (https://github.com/frewsxcv/cargo-all-features) but unfortunately this is more for feature combinations and still lacks a few features thus would require a fork at the moment.

Resolves: #6097

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@tertsdiepraam
Copy link
Member

tertsdiepraam commented Apr 11, 2024

My idea was to base it on the show-utils script, which we do elsewhere in the CI too. This seems to work, but only for linux. Nevertheless, this would be great to have!

We could also try building the packages instead of the multicall binary. 🤔

Other considerations:

  • Should we run the relevant tests?
  • Should this just be a cargo check to reduce CI time a bit?

@sylvestre
Copy link
Contributor

@gierens any opinion ? :)

@gierens
Copy link
Contributor Author

gierens commented Apr 15, 2024

@gierens any opinion ? :)

Sure :) ... sorry for the late reply, the new semester just started and I got a little distracted :D

My idea was to base it on the show-utils script, which we do elsewhere in the CI too.

Oh neat, that's a lot smarter of course :) ... yeah the CICD workflow is a little intense and I just skimmed it, but I could've probably checked the util folder, my bad :D

This seems to work, but only for linux. Nevertheless, this would be great to have!

I guess with the show-utils batch file it would be possible to make it work on windows, too.

We could also try building the packages instead of the multicall binary. 🤔

Sounds reasonable.

  • Should we run the relevant tests?
  • Should this just be a cargo check to reduce CI time a bit?

Hm, I guess we could first check how long that would actually run with building and tests, and then decide. Also in case it really takes too long, it could maybe be parallelized to some extent.

It's getting a little late here, but I can take a look at it tomorrow :)

@gierens gierens force-pushed the ci-build-apps-individually branch from 2e6eda7 to 0d6f193 Compare April 16, 2024 21:22
@gierens
Copy link
Contributor Author

gierens commented Apr 16, 2024

@tertsdiepraam @sylvestre alright, I revised the CI job: It uses show-builds.sh, runs on ubuntu-latest, macos-latest and windows-latest, and does tests now.

Screenshot from 2024-04-16 23-25-33
https://github.com/gierens/coreutils/actions/runs/8712554101/job/23899114665

In the run I executed just now in my fork it took roughly 1min@ubuntu, 2min@macos and 4min@windows, so not should be fine I guess.

Copy link

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?

Copy link
Member

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks! Just one question.

.github/workflows/CICD.yml Outdated Show resolved Hide resolved
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
@gierens gierens force-pushed the ci-build-apps-individually branch from 0d6f193 to 8d4763b Compare April 18, 2024 08:51
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit ad91330 into uutils:main Apr 18, 2024
68 checks passed
@cakebaker
Copy link
Contributor

Thanks for your PR :)

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.

Add a CI job to build programs individually
4 participants