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

Extend autoconf tests #2975

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Mar 23, 2025

This tries to split tests where extra packages get installed to different runs.

It does add some small improvements to the configure script to make testing easier.

@vmcj vmcj force-pushed the configure_test_build_gha_subjobs branch 3 times, most recently from a6c8f36 to 1236996 Compare March 24, 2025 09:03
It uses wwwrun (or www group), it's added as last so it shouldn't fail our normal installs.
@vmcj vmcj force-pushed the configure_test_build_gha_subjobs branch from 223665f to 8a60b1b Compare March 26, 2025 20:35
@vmcj vmcj requested a review from eldering March 26, 2025 20:36
vmcj added 7 commits March 26, 2025 21:42
sphinx-build adds it's own Makefile which we need to work around or we
can decide to just remove all dirs. This would also remove custom files
someone might have put there.
It's always run before every testcase, which makes that we would always
install certain tools which breaks the tests where we assume to not have
those tools.
Bats testing now works from another directory
We'll need to start with multiple clean images in future tests so we now
skip certain tests to keep a "clean" image for certain tests and test in
other matrix jobs.

The intent was to both extend the tests and test with different
distrobutions:
- Alpine fails on running bats,
- Fedora has issues with building `runpipe` so fails on `make judgehost`
- Arch needs another package manager to install certain libraries (so is
  left for another PR).
- OpenSUSE lacks some libraries.

The pre-work is already done to start using those images.

make clean should remove what was created by make all
make distclean should remove what was created by configure (plus what
make clean does)
@vmcj vmcj force-pushed the configure_test_build_gha_subjobs branch from 8a60b1b to a6668ba Compare March 26, 2025 20:42
@vmcj
Copy link
Member Author

vmcj commented Mar 26, 2025

The PR should be fine without the make distclean but I added it to test that we get a good tarball after it.

Not sure why https://github.com/DOMjudge/domjudge/actions/runs/14092975984/job/39473975481#step:4:1010 fails, @eldering shouldn't it find the target because of the Makefile.global? Other files also don't have an explicit dependency for distclean to depend on clean so what is it complaining about?

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.

1 participant