summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
* CI: don't use swapRalph Boehme2019-03-041-6/+0
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Mar 4 13:59:42 UTC 2019 on sn-devel-144
* .gitlab-ci.yml: use .shared_template for sambaStefan Metzmacher2019-02-271-4/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* autobuild: spread ad-dc tests over 6 autobuild/ci separate tasks/jobsStefan Metzmacher2019-02-271-3/+13
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* autobuild: add samba-ad-member taskStefan Metzmacher2019-02-271-0/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* .gitlab-ci.yml: merge .gitlab-ci-private.ymlJoe Guo2019-02-181-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | `.gitlab-ci.yml` support conditional jobs with `only` and `except`. And variables can be read from repo CI/CD settings as condition: build_samba: script: ... only: variables: - $SUPPORT_PRIVATE_TEST == 'yes' Instead of having 2 copies of yml file, we can use this feature to trigger private jobs only when a var like `SUPPORT_PRIVATE_TEST` is defined. I've already added above var to our repos. Once merged, we can remove custom CI config file in gitlab repo settings, and remove .gitlab-ci-private.yml file from code. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Feb 18 10:54:19 CET 2019 on sn-devel-144
* autobuild: Replace samba-buildpy2-only with samba-nopython-py2Tim Beale2019-02-151-3/+3
| | | | | | | | | | | | | For Samba 4.11, the minimum python2 functionality we will support (for now, at least - we may change our minds) is for the --disable-python target, i.e. if you're excluding all the python functionality from samba, then WAF should still support being built with python2. The use case here is old unix platforms that want to use smbd, but don't have python3 support. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: Drop py2 autobuild jobsTim Beale2019-02-151-13/+0
| | | | | | | | | | | | | | | | Samba v4.11 will no longer support python2, so let's drop the autobuild jobs. This will save some gitlab/sn-devel time and money, as it's less work for CI to do. Note that this highlights some previous inconsistencies: - samba-none-env-py2 was being built for gitlab but not sn-devel. - samba-nt4-py2 was being built for sn-devel but not gitlab I've left samba-buildpy2-only for now, which will be addressed in a subsequent patch. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* gitlab-ci: Rename DOCKER to CONTAINERAndreas Schneider2019-02-141-5/+5
| | | | | | | | | | This is just a runc container, not tied to docker. See podman.io Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Feb 14 17:32:38 CET 2019 on sn-devel-144
* .gitlab-ci.yml: Make docker image name more explicitTim Beale2019-02-141-4/+6
| | | | | | | | | | | | | | | | | | The 'image' YAML tag implies a docker image, but for people who find gitlab mysterious, let's make it blatantly obvious what we're doing here. + added a comment + added 'DOCKER' to the variable names + removed 'BUILD', as we've now dropped this from all the job-names + tried to make the variable names consistent, both within the file and WRT docker terminology Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 14 03:51:21 CET 2019 on sn-devel-144
* .gitlab-ci.yml: Include the actual command used by gitlabTim Beale2019-02-141-0/+3
| | | | | | | | | Someone who finds gitlab mysterious will have no idea what $CI_JOB_NAME should be, if they wanted to reproduce the autobuild job manually. It should be trivial to include the actual command being run in the logs. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* .gitlab-ci.yml: Re-indent comments on test timesAndrew Bartlett2019-02-141-5/+5
| | | | | | | (some of these need to be updated, but for now improve the formatting) Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
* .gitlab-ci.yml: Use .extends to avoid duplication of autobuild commandAndrew Bartlett2019-02-141-59/+27
| | | | | | | | | | This should make our .gitlab-ci.yml file much less overwealming. The downside is that $CI_JOB_NAME is printed rather than the job name in the log, but the upside is that the names must now strictly match. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
* .gitlab-ci.yml: Fix the registry as "registry.gitlab.com"Andrew Bartlett2019-02-141-1/+2
| | | | | | | | | | This is important as our team docker images are only in this registry, but the .gitlab-ci.yml file is also run on other private GitLab hosts. This partially undoes 8989916b5af6fed9c4c63035d4488583396b8c5a Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
* .gitlab-ci.yml: add retries on runner_system_failure/stuck_or_timeout_failureStefan Metzmacher2019-02-141-0/+5
| | | | | | | | | This hopefully avoids pipeline failures due too docker/runner errors. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* .gitlab-ci*.yml: use 'extends: ' instead of YAML AnchorsStefan Metzmacher2019-02-141-19/+19
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* .gitlab-ci*.yml: remove build_ prefixesStefan Metzmacher2019-02-141-18/+18
| | | | | | | | It's useless to see 'builf_samba_ad...' 7 times in the gitlab pipeline summary. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* .gitlab-ci.yml: print out more information in the before_script sectionStefan Metzmacher2019-02-141-0/+5
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: split out "samba-ad-dc-ntvfs[-py2]" test targetsRalph Boehme2019-02-111-0/+10
| | | | | | | | | | | | | | | | | | | Many AD tests currently use the "samba" target. Split out a new target "samba-ad-dc-ntvfs" and have all tests that use the "ad_dc_ntvfs" env use the new target. This should greatly speed up the runtime for the "samba" target and avoid swapping. This reduces the total CI time by ~ 55%, I got an autobuild and a gitlab pipeline finished in just ~ 100 mins! Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Feb 11 14:10:12 CET 2019 on sn-devel-144
* autobuild: Split backup/restore testenvs out into separate jobTim Beale2019-02-051-0/+5
| | | | | | | | | | | | | | | | The samba-ad-dc-2 job was reaching its limits with the number of testenvs and what the resource-limited CI machines can handle. Samba processes were getting swapped out of memory, causing CI runs to fail. This patch splits the backup/restore testenv targets into a separate autobuild job: samba-ad-dc-backup. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Feb 5 12:23:31 CET 2019 on sn-devel-144
* gitlab-ci: Use artifacts instead of after_scriptAndreas Schneider2019-01-261-2/+8
| | | | | | | | 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): Sat Jan 26 22:16:38 CET 2019 on sn-devel-144
* gitlab-ci: Move before and after script to shared templateAndreas Schneider2019-01-261-11/+9
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* gitlab-ci: Move the image definition to the templateAndreas Schneider2019-01-261-1/+3
| | | | | | | And in addition use variables for defining project and build env. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: move target "build_nt4" to private gitlab runnersRalph Boehme2019-01-241-5/+0
| | | | | | | | | | | | | Fixes the mistake of 574fdfae59c6d7c97be48ca52ac9aefac82feccd that added "build_nt4" to the public runners. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13761 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Autobuild-User(master): Tim Beale <timbeale@samba.org> Autobuild-Date(master): Thu Jan 24 02:45:09 CET 2019 on sn-devel-144
* CI: run "samba-nt4" as part of the free runnersRalph Boehme2019-01-231-0/+5
| | | | | | | | | | Looks like this got lost in the py2/py3 reshuffling around d01d85ccb255cbdfd3d379dfe0cd7ac58af7f284. Signed-off-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jan 23 12:41:32 CET 2019 on sn-devel-144
* CI: Adjust CI tasks for new python3 autobuild.py defaultNoel Power2018-12-101-17/+17
| | | | | | | | | | | Now that autobuild has defaulted to python3 (via shebang) we no longer need to explicity call autobuild.py with 'python3' Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Mon Dec 10 14:32:24 CET 2018 on sn-devel-144
* CI: Add new py2 CI jobs to replace old py3 onesNoel Power2018-12-101-0/+17
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: convert the purepy3 job to a py2 oneNoel Power2018-12-101-2/+2
| | | | | | | | With patches to have python3 as default we need a pure python2 build Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: Run autobuild jobs with python3Noel Power2018-12-101-16/+16
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: Remove the remainder py3 jobsNoel Power2018-12-101-5/+0
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: Remove purepy3 temporary jobsNoel Power2018-12-101-9/+0
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI: Autobuild: Remove build_samba_ad_dc_2_py3 CI jobNoel Power2018-11-141-6/+0
| | | | | | | | | | | | We now run a purepython3 ad-dc-2 test job, later when the whole build is running under python3 we will resurrect build_samba_ad_dc_2_py3 but as (build_samba_ad_dc_py2) for python2 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Nov 14 08:20:55 CET 2018 on sn-devel-144
* CI: Add new CI job for new purepy3-ad-dc-2 autobuild taskNoel Power2018-11-141-0/+5
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* CI/Autobuild: Remove samba-none-env-py3 testNoel Power2018-10-231-6/+0
| | | | | | | | | | | | We now run a purepython3 none-env test, later when the whole build is running under python3 we will resurrect this job but as (samba-none-env-py2) for python2 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Oct 23 09:10:22 CEST 2018 on sn-devel-144
* Add new CI job for new purepy3-none-env autobuild taskNoel Power2018-10-231-0/+5
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* add new gitlab CI job for building pure python3Noel Power2018-09-281-0/+4
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* gitlab-ci: Correct the ctdb tasksMartin Schwenke2018-09-181-2/+2
| | | | | | | | | | They're swapped. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Tue Sep 18 10:33:57 CEST 2018 on sn-devel-144
* gitlab-ci: Run the new python3 autobuild tasksAndrew Bartlett2018-08-291-0/+17
| | | | | | | | These additional tasks should be less complex than the full build and help get us to a pure python3 build eventually Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* gitlab-ci: Do not hide a possible out-of-space condition by cleaning up the treeAndrew Bartlett2018-05-231-16/+16
| | | | | | | These are VMs anyway and will soon vanish, so a cleanup is totally wasted in any case. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab-ci: Include system-info.txt to give info on possible failuresAndrew Bartlett2018-05-231-18/+19
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab-ci: Run samba-ad-dc-2 in the shared environmentAndrew Bartlett2018-05-031-0/+6
| | | | | | | | This will allow more AD DC tests to run for those without access to a private gitlab runner. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* gitlab-ci: Use YAML templates to reduce duplicationAndrew Bartlett2018-05-031-37/+13
| | | | | | | Inspired by WIP patches by Jamie McClymont Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* gitlab-ci: split up gitlab-ci fileAndrew Bartlett2018-05-031-45/+0
| | | | | | | | | | The "private" build environments are not available to most users so remove this from the default build. Only developers with access to private runners (rather than a shared runner) will have a runner tagged as "private". Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* gitlab-ci: Split up build_samba_others and build_ctdb tasksAndrew Bartlett2018-03-271-1/+43
| | | | | | | | These make too much output and the shared runners on GitLab CI object to sending more than 4MB of output. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* gitlab: Run fileserver tests on "private" not "shared"Andrew Bartlett2018-03-271-1/+1
| | | | | | | This might make the delaywrite tests pass Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Split up the build further with samba-ad-dc-2Andrew Bartlett2018-03-271-0/+9
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* gitlab-ci: Set shared and private tags to allow builds that need ext4 to passAndrew Bartlett2018-03-271-4/+12
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Remove fileserver tests from the main buildAndrew Bartlett2018-03-271-0/+8
| | | | | | | | Again, this is to allow these to run in the 50min timelimit of travis-ci and so gain test coverage. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Run all "ad_dc" environment tests in samba-ad-dcAndrew Bartlett2018-03-271-0/+8
| | | | | | | | | This allows us not to run ad_dc tests in the main build, making the autobuild process faster. The ad_dc tests run in less than 50mins on travis-ci, which allows this part of the tests to be run. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* gitlab-ci: Add samba-nt4 environment to the CIAndrew Bartlett2018-03-271-0/+8
| | | | | | | This parallel build is de-coupled from the main samba build Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* gitlab-ci: add git variable to speed up cloneJoe Guo2018-03-271-0/+4
| | | | | | | | | Set GIT_STATEGY to fetch, and GIT_DEPTH to 3. This will speed up cloning for repos. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>