-
Notifications
You must be signed in to change notification settings - Fork 157
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
Add Travis testing #10
base: master
Are you sure you want to change the base?
Conversation
@noloader This is a read-only mirror which gets no attention from the maintainers. See the repository description for links to the official bugtracker and mailinglists. Edit: From the main page of the repo: |
@jotoho, IMO your comment only partially makes sense WRT this PR, because the GnuPG project currently lacks a CI infrastructure, which Github offers nicely. Also this read-only mirror of the original Git repository is fully sufficient to perform CI tests. @noloader, I appreciate your effort very much. IMO, CI tests for GnuPG are long overdue, as you already pointed out above. P.S.: @dd9jn, what do you think? |
On Mon, 16 Aug 2021 20:32, olf said:
@noloader, I appreciate your effort very much. IMO, CI tests for
GnuPG are long overdue, as you already pointed out above.
Actually we have had CIs over a long time. In the early 00ies using the
HP test drive program, later the FSF French computing farm, and until
2017 a local Jenkins installation. The problem with all of that is
that services cease to exist and that due to too many false positive
error reports a lot of human resources are bound.
We are planning to get a Buildbot instance up but we had no luck with
two admins assigned to that task. Don't ask.
We do not use Github so we won't maintain a Github based CI. We also
need to run tests on Windows which is our primary sources for revenues.
Salam-Shalom,
Werner
…--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
|
@noloader: I have been a bit feisty with my recent response. This might have been be due to the fact that the notification mail came without context/ Thus my rant about problems I experienced with CIs in the past. Actually we are looking for QA people to take care of automated - and foremost manual - testing. Unfortunately is is not easy to find them. Let's look at your problem: You say that --enable-maintainer-mode is a problem for you because it also builds the documentation` - is that correct? Some of the libraries do have a --disable-doc configure option but some don't have. Would it be helpful for you if we add a --disable-doc also to gnupg and maybe other libs? Do you have a list? |
@noloader two things I observed:
|
This commit adds Travis testing to the GnuPG suite.
The GnuPG testing clones its prerequisites, tests the prerequisites, installs the prerequisites, and then builds and tests GnuPG. All components in the suite are tested through GnuPG.
Testing of GnuPG and components includes Linux, OS X, AMD64, PPC64, Aarch64 and s390x under both GCC and Clang. Additionally, older Linux (Xenial) and older OS X (El Capitan) are tested. Finally, Ubsan and Asan are tested.
The testing pipeline is revealing a lot of problems in GnuPG sources, from compile problems on PowerPC to undefined behavior and memory errors. You can find the results at Noloader | GnuPG fork, where the CI pipeline with Travis is in effect.
The immediate problem at the moment is the requirement for
--enable-maintainer-mode
when working from Git sources. For the purposes of testing the build and the code in a CI pipeline, maintainer mode is mostly irrelevant. We need to repeatedly build the suite in different configurations to ensure the suite builds and performs as expected. We don't need 28 or so builds that build the docs. Document building not only breaks every build, it also adds additional time to the build, wastes cpu cycles and wastes storage. A few--enable-maintainer-mode
are fine to test the feature for maintainers, but 28 or so is excessive.I think the project should provide better support for a Continuous Integration pipeline. Running Travis after a commit or every night would have caught all of the non-document errors present in the code. Also see Github sources are difficult to test in the issue tracker.