summaryrefslogtreecommitdiff
path: root/.gitlab-ci-main.yml
Commit message (Collapse)AuthorAgeFilesLines
* bootstrap: use compat-gnutls37-devel for centos7Stefan Metzmacher2022-01-211-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* gitlab-ci: Use Fedora 34 for Coverity ScanAndreas Schneider2022-01-191-1/+1
| | | | | | | | | | | The Coverity Scan tools are not updated very often and miss support for the latest gcc build. Lets use Fedora 34 for that and stay behind a bit. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jan 19 10:49:18 UTC 2022 on sn-devel-184
* gitlab-ci: Add Fedora 35 and drop Fedora 33Andreas Schneider2021-11-051-11/+11
| | | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Nov 5 12:36:55 UTC 2021 on sn-devel-184
* bootstrap: Debian 11 has liburing-devMartin Schwenke2021-10-191-1/+1
| | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14872 Signed-off-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Oct 19 09:14:10 UTC 2021 on sn-devel-184
* bootstrap: Add Debian 11Martin Schwenke2021-10-181-1/+7
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14872 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Oct 18 17:19:17 UTC 2021 on sn-devel-184
* gitlab-ci: Do not download artifacts of unrelated buildsAndrew Bartlett2021-10-151-0/+11
| | | | | | | | | | | | This needs: is overridden in many cases, but ensures none of the other main jobs start until this build finishes. However this also ensures we do not download artifacts from any build unless we specifically depend on it, saving bandwidth BUG: https://bugzilla.samba.org/show_bug.cgi?id=14863 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* gitlab-ci: Do not retry for job_execution_timeoutAndrew Bartlett2021-10-151-1/+0
| | | | | | | | | | | | | | If we timeout, we should just stop at 2 hours, not waste 6 hours (3 x 2 hours). This is for when the job runs long for any reason, currently the reasons for a timeout are not transient, we need to either change the timeout or fix the system. Likewise if the tests get into a loop or deadlock we want to see that as a failure. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14863 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* .gitlab-ci: Avoid duplicate CI on all merge requestsAndrew Bartlett2021-10-141-0/+14
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14861 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 14 01:21:11 UTC 2021 on sn-devel-184
* .gitlab-ci.yml: Restore building most of our jobsAndrew Bartlett2021-10-141-8/+10
| | | | | | | | | | | | | | | | | | | | | We are changing the primary build jobs to use "when" not "only". These a similar and related GitLab syntax tools to control when jobs are run. With 'when' now in use it must be specified on all jobs that inherit from each other via: .extends .shared_template "only" can be left however for the pages and coverity as these use: .extends .shared_runner_build_image BUG: https://bugzilla.samba.org/show_bug.cgi?id=14861 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* .gitlab-ci: Increase build timeoutJoseph Sutton2021-10-131-1/+1
| | | | | | | | | | | | | | | While the build will not take > 1hr, uploading the artifacts needed to pass the build objects to the next stage can take some time due to the distance between the runners and the private CI server. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14861 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Oct 13 12:00:03 UTC 2021 on sn-devel-184
* .gitlab-ci.yml: Honour AUTOBUILD_SKIP_SAMBA_O3 in GitLab CIAndrew Bartlett2021-10-131-4/+12
| | | | | | | | | | | GitLab CI resources are expensive and often rationed so provide a way to test other things without testing an -O3 build also, as this will save 9 jobs. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14861 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* .gitlab-ci: Allow a 1 hour to build SambaAndrew Bartlett2021-10-011-1/+1
| | | | | | | | | | | | | | | | | | I have seen cases where the job is pushed to the private runners (which do not have the ccache) where this takes over 45mins, and a typical job can be 35 mins so this is too tight. Triggering the timeout causes a rebuild from scratch, which is done twice automatically, and is financially costly (we pay per VM start) and a waste of CPU/energy/etc. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14844 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 1 19:43:16 UTC 2021 on sn-devel-184
* .gitlab-ci: Ignore errors from missing source files in code coverageAndrew Bartlett2021-10-011-1/+1
| | | | | | | This could happen when code coverage is collected from multiple distributions. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* bootstrap: Remove last references to Ubuntu 16.04Andrew Bartlett2021-09-141-1/+1
| | | | | | | | | | | | | | | | | | | The Ubuntu 16.04 build went away with 4366c3bb71fe9c083dedeae8798547b64a64d2b4 as oss-fuzz moves to Ubuntu 20.04. We don't do a special build for the oss-fuzz, this restores the behaviour before e10910f8de542b0be9b89942791bd37288b7a32a and d048d7e17d756099e208fa4d6b931a147b0b1489 where oss-fuzz was only tested as part of the main build. (In the case of a failure the pipeline would fail, preventing a merge, just the same as for any other failing test). Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Tue Sep 14 04:44:44 UTC 2021 on sn-devel-184
* gitlab-ci: run samba-fuzz autobuild target on Ubuntu 20.04-based imageUri Simchoni2021-09-091-1/+1
| | | | | | | | | | REF: https://github.com/google/oss-fuzz/issues/6301#issuecomment-911705365 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Sep 9 01:45:09 UTC 2021 on sn-devel-184
* bootstrap: Update to get newer krb5 on Fedora 34Andrew Bartlett2021-09-021-1/+1
| | | | | | | | We need the update FEDORA-2021-20b495cb94 (krb5) to get a fix for CVE-2021-37750 (explicit NULL deref on KDC) so our CI will pass as we have a test for this. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab-ci: Move MIT builds to current Fedora so we can test against a ↵Andrew Bartlett2021-08-261-0/+6
| | | | | | | | | | | current MIT KDC Fedora packages current MIT builds pretty fast so we base our MIT KDC tests there, as this avoids backporting and tests against the most current code. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab-ci/autobuild: Add new build confirming behaviour on older MIT KerberosAndrew Bartlett2021-08-261-0/+7
| | | | | | | | | | | | Because the MIT KDC builds are moving to current MIT and out of the default autobuild this ensures that on our default host, which is closer to what most of our users operate, Samba still works with Kerberos. This uses the ktest environment that does not require the KDC to exist and instead uses a static ccache and keytab. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab: Use shorter names for Samba AD DC env with MIT KRB5Andreas Schneider2021-08-031-6/+6
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=14779 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 3 20:35:49 UTC 2021 on sn-devel-184
* bootstrap: Install python3-dateutil instead of python3-iso8601 on RPM distrosAndreas Schneider2021-07-211-1/+1
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jul 21 12:18:30 UTC 2021 on sn-devel-184
* bootstrap: Install krb5-workstation on Fedora based distrosAndreas Schneider2021-07-211-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* gitlab-ci: Install devel files for tracker-sparql (spotlight backend)Andreas Schneider2021-05-201-1/+1
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu May 20 12:01:06 UTC 2021 on sn-devel-184
* bootstrap: Add Fedora 34 CI runnerAndreas Schneider2021-05-071-8/+8
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri May 7 07:18:02 UTC 2021 on sn-devel-184
* bootstrap: Remove libnsl as we dropped NIS supportAndreas Schneider2021-05-071-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* .gitlab-ci.yml: Always build the ubuntu1804-samba-o3 with --enable-coverageAndrew Bartlett2021-04-281-0/+7
| | | | | | | This ensures that the coverage build always works, as it can trigger different warnings. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* .gitlab-ci.yml: Return code coverage reporting for "none" tasksAndrew Bartlett2021-04-281-5/+10
| | | | | | | | | | This was lost early on with 54f26cfcf2587a2b1d97f466a886fa89a116eea1 which did not take into account code coverage, which stopped running for these tasks very early on with 71595201bea9b3fa28357065fa137806f9220f38. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* .gitlab-ci.yml and autobuild: Publish the current HTML docs with the code ↵Andrew Bartlett2021-04-281-0/+1
| | | | | | | coverage Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* add .gitlab-ci-coverage.yml for a scheduled buildStefan Metzmacher2021-04-131-3/+10
| | | | | | | | | | | | | | | | This will be used by the https://gitlab.com/samba-team/samba configuration, while https://gitlab.com/samba-team/devel/samba will still use .gitlab-ci.yml (via the legacy .gitlab-ci-private.yml). The key point is the usage of the more powerful n1-standard-2 runners for testing. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 13 09:33:14 UTC 2021 on sn-devel-184
* script/autobuild.py: split samba-ad-dc-4* tests into twoStefan Metzmacher2021-04-131-4/+12
| | | | | | | As single job they used more than 1h. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: split samba-nopython out of samba-minimal-smbd againStefan Metzmacher2021-04-131-0/+4
| | | | | | | This was using more than 1h as a single job. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: split samba-no-opath into two testsStefan Metzmacher2021-04-131-1/+6
| | | | | | | | | | | | | This was is basically a combination of 'samba-nt4' and 'samba-fileserver'. As a single job it used more than 1h only for testing, while the samba-no-nopath-build uses ~ 10mins (with a filled ccache). Now we have two test jobs with ~ 30mins. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci-main.yml: specify the image only by SAMBA_CI_JOB_IMAGEStefan Metzmacher2021-04-131-29/+46
| | | | | | | | That way we can construct the url just in one place, we can also add SAMBA_CI_JOB_IMAGE to the ccache identifier. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci*.yml: only use gitlab.org shared runners if possibleStefan Metzmacher2021-04-131-19/+13
| | | | | | | | We no longer fallback to our private runner, lets see how that works out... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* bootstrap/.gitlab-ci.yml: make sure we force gitlab.com runners for nowStefan Metzmacher2021-04-131-1/+1
| | | | | | | We've just added our own runners with 'docker' and 'gce'. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci-main.yml: build coverity using --with-cluster-supportStefan Metzmacher2021-04-131-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci.yml: move the content to .gitlab-ci-main.ymlStefan Metzmacher2021-04-131-0/+513
We introduce an indirection from gitlab-ci.yml via .gitlab-ci-default.yml to .gitlab-ci-main.yml We do that in order to introduce a .gitlab-ci-coverage.yml later as that will have to use different settings in future. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>