summaryrefslogtreecommitdiff
path: root/script
AgeCommit message (Collapse)AuthorFilesLines
2021-07-07selftest: Add test for one-way trust wbinfo authIsaac Boukris1-0/+4
Signed-off-by: Isaac Boukris <iboukris@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jul 7 15:01:22 UTC 2021 on sn-devel-184
2021-05-19selftest: Rename offline logon env to ad_member_offlogonAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed May 19 20:01:00 UTC 2021 on sn-devel-184
2021-05-12autobuild: Add ad_member_offline_logonAndreas Schneider1-0/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-05-11param: Enable including source3/param/param_proto.h without vfs.hVolker Lendecke1-0/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-28selftest: Specify /dev/null as the smbd config fileAndreas Schneider1-1/+1
smbd will require a smb.conf later. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-04-28python: remove all 'from __future__ import print_function'Douglas Bagnall6-6/+0
This made Python 2's print behave like Python 3's print(). In some cases, where we had: from __future__ import print_function """Intended module documentation...""" this will have the side effect of making the intended module documentation work as the actual module documentation (i.e. becoming __doc__), because it is once again the first statement in the module. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2021-04-28.gitlab-ci.yml and autobuild: Publish the current HTML docs with the code ↵Andrew Bartlett1-0/+6
coverage Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2021-04-13script/autobuild.py: split samba-ad-dc-4* tests into twoStefan Metzmacher1-4/+24
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>
2021-04-13script/autobuild.py: split samba-nopython out of samba-minimal-smbd againStefan Metzmacher1-1/+12
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>
2021-04-13script/autobuild.py: split samba-no-opath into two testsStefan Metzmacher1-2/+15
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>
2021-04-13script/autobuild.py: skip lcov step for samba-fipsStefan Metzmacher1-1/+1
This doesn't really work and only generates an empty samba-fips.info file. Someone familiar with gcov/lcov should look at this and fix it. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: split samba-ad-dc-backup into samba-ad-back{1,2}Stefan Metzmacher1-2/+13
This will make it possible to run them in parallel (hopefully on shared gitlab runners). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: move ad_dc_backup to samba-ad-dc-6Stefan Metzmacher1-2/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: split out samba-{nt4,h5l,no-opath}-buildStefan Metzmacher1-7/+36
These will be used to move the build stages from private gitlab runner jobs to shared runners. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: split out "samba-{def,mit}-build"Stefan Metzmacher1-29/+37
This means we avoid a lot of cpu usage for the build. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: add support for dependenciesStefan Metzmacher1-7/+94
This will make it possible to split build and test stages in the next steps. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: store the directory for the running builder in ↵Stefan Metzmacher1-6/+7
self.builder_dir For now it keeps being the same as self.test_source_dir, but that will change soon. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: defer cp and git cloneStefan Metzmacher1-7/+12
This will make further reconstruction easier. Use 'git show -w' to see the minimal diff. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: pass --with-selftest-prefix via make instead of configureStefan Metzmacher1-25/+33
We do start for almost all jobs, just samba-ctdb keeps passing it via configure in order to have a regression test for it. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: split out a CLEAN_SOURCE_TREE_CMDStefan Metzmacher1-29/+31
This works for all cases even if the builder runs in a subdirectory. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-04-13script/autobuild.py: change the task definitions into an dictionaryStefan Metzmacher1-366/+449
The will make it easier to add more meta data properties to task definitions. Use 'git show -w' to see the minimal diff. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2021-03-16autobuild: fuzz: correctly spell AFL build optionDouglas Bagnall1-1/+1
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-01-27script/autobuild.py: let cleanup() ignore errors from rmdir_force() by defaultStefan Metzmacher1-3/+12
It's not useful to generate a python backtrace from within the cleanup code. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jan 27 18:17:17 UTC 2021 on sn-devel-184
2021-01-27script/autobuild.py: split out a rmdir_force() helper functionStefan Metzmacher1-7/+18
That also tries to re-add write permissions before removing. In future we'll have jobs changing there directory to read-only. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2021-01-21script/release.sh: always select the GPG key by it's IDKarolin Seeger1-2/+2
Signed-off-by: Karolin Seeger <kseeger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-01-04script/release.sh: Use new GPG key.Karolin Seeger1-3/+3
Signed-off-by: Karolin Seeger <kseeger@samba.org>
2020-12-16autobuild.py: use --enable-clangdb for the "samba-ctdb" taskStefan Metzmacher1-0/+1
The key is that we only enable it for just one task. I plan to restructure the autobuild tasks, but 'samba-ctdb' will stay the way it works currently. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2020-12-16CI: add samba-no-opathRalph Boehme1-0/+21
Add a job that builds with O_PATH undefined. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-11-16autobuild: Encode text/plain into base64 to wrap long-linesSATOH Fumiyasu1-1/+1
MIMEText(text, 'plain', 'utf-8') encodes the text into base64 and adds 'Content-Transfer-Encoding: base64' header. Signed-off-by: SATOH Fumiyasu <fumiyas@osstech.co.jp> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Nov 16 22:43:35 UTC 2020 on sn-devel-184
2020-10-22oss-fuzz: Always run the check, even on the oss-fuzz platformAndrew Bartlett1-1/+0
It is much harder to determine why we get messages like Step #6: Error occured while running fuzz_reg_parse: Step #6: /workspace/out/coverage/fuzz_reg_parse: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: No such file or directory instead this detects the failure to use RPATH (which is strictly required instead of the modern RUNPATH) otherwise. We do this by creating a new build_samba.sh after renaming build_samba.sh to do_build.sh because this is what oss-fuzz runs, meaning we don't need to coordinate a MR there as well. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-22oss-fuzz: standardise on RPATH for the static-ish binariesAndrew Bartlett1-1/+1
This includes a revert of commit e60df214998afc145ca482cab184691b3ddc3bb2. We strictly require RPATH, not the modern RUNPATH for the behaviour we need in oss-fuzz, which is that not just the first line of dependencies but the full set of libraries used by the program are looked for in the '$ORIGIN/lib' directory. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Thu Oct 22 14:10:04 UTC 2020 on sn-devel-184
2020-10-16test: Get the clusteredmember environment out of its smb1 cornerVolker Lendecke1-3/+3
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Oct 16 18:30:18 UTC 2020 on sn-devel-184
2020-10-01autobuild: Merge no-modules test with the library --disable-python buildAndrew Bartlett1-7/+2
This avoids another full compile cycle. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-01autobuild: Remove more "make install" stepsAndrew Bartlett1-2/+0
Running a "make install" involves a full re-link which takes quite some time we really only need to test this in a couple of basic combinations, so remove from a few more targets. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-01autobuild: Remove the os.getpid() from the autobuild directoryAndrew Bartlett1-1/+6
This might help our CI runners get a ccache hit by keeping the path constant. Otherwise, we only get a good ccache hit rate if the docker container gives us the same pid each time. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-01build: Remove Python2 support from the buildAndrew Bartlett1-35/+0
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14488 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-10-01autobuild.py: Combine samba-static and samba-nopythonAndrew Bartlett1-19/+21
We expect these will complete in under an hour and reduce the number of parallel jobs. Hopefully there will be some ccache hits between these as well. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-08-21python: Remove remaining references to third_party python libsAndrew Bartlett1-2/+0
For now at least we do not have any in third_party. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: David Mulder <dmulder@suse.com> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 21 00:12:52 UTC 2020 on sn-devel-184
2020-06-10Add docs build to CIAndrew Bartlett1-1/+10
We did not check we could actually build the HTML of the Samba Developers guide and HTML of the manpages previously. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 10 07:11:59 UTC 2020 on sn-devel-184
2020-05-24gitlab-ci: Create a single samba-fips runnerAndreas Schneider1-16/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-05-18autobuild: Use sane random sleep values for samba-admem-mitAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2020-05-18autobuild: Add ad_member_fips targetAndreas Schneider1-0/+12
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2020-05-15selftest: Avoid running the slowest of the "none" tests in samba-o3Andrew Bartlett1-1/+2
This job is already quite long and these tests are unlikely to vary between hosts or under the -O3 compile Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2020-04-08gitlab-ci: Add runner for fips compliance testingAndreas Schneider1-0/+11
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): Wed Apr 8 14:45:18 UTC 2020 on sn-devel-184
2020-04-03autobuild: Add ad_dc_default_smb1 to autobuild jobsNoel Power1-1/+5
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-04-03autobuild: Add nt4_dc_smb1_done to autobuild jobsNoel Power1-0/+3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-04-03autobuild: Add fileserver_smb1_done to autbuild jobsNoel Power1-0/+3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-04-03autobuild: Add ad_dc_smb1_done to autobuild jobsNoel Power1-1/+5
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-04-03autobuild: Add ad_dc_default_smb1 to autobuild jobsNoel Power1-1/+5
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-04-03autobuild: Add new nt4_dc_smb1 env to jobsNoel Power1-0/+3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>