summaryrefslogtreecommitdiff
path: root/script
Commit message (Collapse)AuthorAgeFilesLines
* param: Fix resource leakJoseph Sutton2023-05-051-2/+2
| | | | | Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* script/autobuild: Use logger.debug() for debug messages (visible with --verbose)Andrew Bartlett2023-03-231-14/+19
| | | | | | | | Lots of the autobuild.py log outputs are really debugging, so should be controlled as such. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* script/autobuild: Use --verbose to control python logger verbosityAndrew Bartlett2023-03-231-0/+3
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* script/autobuild: Use python logger to print times on log lines to aid in ↵Andrew Bartlett2023-03-231-0/+5
| | | | | | | debugging. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* script:autobuild: Make sure we can send a failure mailAndreas Schneider2023-01-301-4/+6
| | | | | | | | | | | | | | | | | | We should not run into an exception if the file doesn't exist. Traceback (most recent call last): File "script/autobuild.py", line 1781, in <module> email_failure(-1, 'rebase', 'rebase', 'rebase', File "script/autobuild.py", line 1677, in email_failure f = open("%s/%s.stdout" % (gitroot, failed_tag), 'r') FileNotFoundError: [Errno 2] No such file or directory: 'samba-autobuild/rebase.stdout' 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): Mon Jan 30 10:00:27 UTC 2023 on atb-devel-224
* autobuild: Don't use deprecated distutilsAndreas Schneider2022-12-221-2/+6
| | | | | | The distutils package was deprecated in Python 3.10 by PEP 632. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* gitlab-ci: do some basic testing on ubuntu1804-32bitStefan Metzmacher2022-11-241-0/+16
| | | | | | | | | | | | | | | | | For now we allow build warnings and only do some basic testing. We also ignore timestamp related problems, as well as some charset failures. Over time we should try to address the situation by not allowing warnings and verify if expected failures are harmless or not. But it's already much better then having no 32bit testing at all! Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Nov 24 12:05:26 UTC 2022 on sn-devel-184
* gitlab-ci: Add a shellcheck runnerAndreas Schneider2022-08-221-0/+6
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org> Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org> Autobuild-Date(master): Mon Aug 22 21:30:09 UTC 2022 on sn-devel-184
* script: Add script to run shellcheck on shell scriptsAndreas Schneider2022-08-171-0/+20
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
* lib/util: Prefer backtrace_symbols() for internal backtracesAndrew Bartlett2022-06-091-1/+2
| | | | | | | | | | | | Backtraces when Samba is in PANIC state are better with backtrace_symbols() than with libunwind on Ubuntu 20.04 x86_64 so move libunwind to a off-by-default option, prompted for if backtrace_symbols() is not available. Based on a request by Fco Javier Felix <ffelix@inode64.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
* python: Remove unnecessary 'pass' statementsJoseph Sutton2022-05-101-1/+0
| | | | Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: allow to run from within git rebase -iStefan Metzmacher2022-04-281-0/+5
| | | | | | | | | | | | The 'git clone' used by autobuild.py fails if GIT_DIR and GIT_WORK_TREE are already defined in the environment. 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): Thu Apr 28 15:23:24 UTC 2022 on sn-devel-184
* ci: Create samba-fileserver-without-smb1 environmentDavid Mulder2022-04-071-0/+20
| | | | | Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
* script: Fix check_symbols() with gcov buildAndreas Schneider2022-04-041-1/+1
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 4 07:59:51 UTC 2022 on sn-devel-184
* script: Reformat shell scriptsAndreas Schneider2022-03-038-79/+103
| | | | | | | shfmt -f script/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: Run admem_idmap_autorid testsAndreas Schneider2022-02-231-0/+4
| | | | | | | | | | They will be part of the samba-admem runners. 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 Feb 23 11:54:01 UTC 2022 on sn-devel-184
* autobuild: Rewrite the symbol checkingAndreas Schneider2022-02-211-23/+24
| | | | | | | | | | This should be less error prone. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Feb 21 19:36:45 UTC 2022 on sn-devel-184
* script/autobuild.py: let nm_grep_symbols ignore __gcov_ symbolsStefan Metzmacher2022-02-061-1/+1
| | | | | | | | | | | | | | | | | Currently the gcov build currently fails with the following error: samba-libs: [allshared-no-public-nss_winbind] Running nm ./bin/plugins/libnss_winbind.so.2 | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | egrep -v ' T _nss_winbind_' |egrep ' [BDGTRVWS] ' && exit 1; exit 0; in '/tmp/samba-testbase/samba-libs/.' 0000000000232458 B __gcov_error_file 0000000000226340 D __gcov_master 000000000001c080 T __gcov_sort_n_vals 00000000002324a0 B __gcov_var samba-libs: [allshared-no-public-nss_winbind] failed 'nm ./bin/plugins/libnss_winbind.so.2 | egrep -v ' (__bss_start|_edata|_init|_fini|_end)' | egrep -v ' T _nss_winbind_' |egrep ' [BDGTRVWS] ' && exit 1; exit 0;' with status 1 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Sun Feb 6 13:39:09 UTC 2022 on sn-devel-184
* autobuild: Fix path for libwbclient ldd checksAndreas Schneider2022-01-201-2/+2
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jan 20 14:19:02 UTC 2022 on sn-devel-184
* script/autobuild.py: make sure nss, pam and krb5 plugins don't provide ↵Stefan Metzmacher2021-11-301-0/+42
| | | | | | | | | | unexpected symbols BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780 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: make sure nss and pam plugins don't link any samba ↵Stefan Metzmacher2021-11-301-0/+12
| | | | | | | | | | | | | libraries Note that we exclude libtalloc.so.2 in pam_winbind.so as that simulates a system libtalloc.so.2. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780 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: fix "nondevel" builds of 'samba-libs'Stefan Metzmacher2021-11-301-3/+16
| | | | | | | | | | | | | | Commit 3e6af7109eb9d49328b426095580e4bfb2338ceb removed environment variables like PKG_CONFIG_PATH from the configure run, so we no longer tested a build against the shared libraries we build before. We also assert that we no longer build private libraries BUG: https://bugzilla.samba.org/show_bug.cgi?id=14780 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* autobuild: allow AUTOBUILD_FAIL_IMMEDIATELY=0 (say from a gitlab variable)Andrew Bartlett2021-09-211-2/+7
| | | | | | | | | | | | | | | | | This allows making a push to do a full test ignoring errors without needing "HACK!!!" commits on top. Use like this: git push -o ci.variable='AUTOBUILD_FAIL_IMMEDIATELY=0' RN: Samba CI runs can now continue past the first error if AUTOBUILD_FAIL_IMMEDIATELY=0 is set BUG: https://bugzilla.samba.org/show_bug.cgi?id=14841 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org Reviewed-by: Noel Power <npower@samba.org>
* script/autobuild.py: Restore MIT ADDC tests against fl2008*Andrew Bartlett2021-09-021-2/+2
| | | | | | | | | | | | | | | | Commit 7387da74e6f0e33de5f80b9a5e59f268541f52cd incorrectly ran the fl2000dc and fl2003dc tests twice, rather than the fl2008dc and fl2008r2dc tests in samba-ad-dc-4b-mitkrb5. (Now ad-dc-mit-4b) BUG: https://bugzilla.samba.org/show_bug.cgi?id=14815 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 Sep 2 05:56:12 UTC 2021 on sn-devel-184
* wafsamba: always generate compile_commands.json again, but only when the ↵Stefan Metzmacher2021-08-261-1/+0
| | | | | | | | | | | | | | samba dependencies changed This means the costs of the generation on a empty build are not paid anymore, which was the reason for the explicit --enable-clangdb option. Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Aug 26 13:06:09 UTC 2021 on sn-devel-184
* autobuild.py: Do not build MIT builds by default (eg sn-devel)Andrew Bartlett2021-08-261-0/+11
| | | | | | | | | This avoids the need for MIT KDC tests and the MIT KDC glue code to operate against the older MIT 1.16 found on Ubuntu 18.04, which is our current build environment. 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-2/+22
| | | | | | | | | | | | 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>
* autobuild.py: Explain why each job is removed from the default setAndrew Bartlett2021-08-261-0/+12
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/bisect-test.py: add support git worktreeStefan Metzmacher2021-08-121-1/+1
| | | | | | | | | | .git is not always a directory, with 'git worktree' it's a file. Note we could also use 'git rev-parse --show-toplevel', but that's a patch for another day. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* gitlab: Use shorter names for Samba AD DC env with MIT KRB5Andreas Schneider2021-08-031-3/+3
| | | | | | | | | | 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
* autobuild: Exclude fips envs from samba and samba-mitkrb5Andreas Schneider2021-07-211-0/+4
| | | | | | The FIPS envs only work on Fedora. Ubuntu doesn't have FIPS support! Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: Add test for one-way trust wbinfo authIsaac Boukris2021-07-071-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
* selftest: Rename offline logon env to ad_member_offlogonAndreas Schneider2021-05-191-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
* autobuild: Add ad_member_offline_logonAndreas Schneider2021-05-121-0/+2
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* param: Enable including source3/param/param_proto.h without vfs.hVolker Lendecke2021-05-111-0/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Specify /dev/null as the smbd config fileAndreas Schneider2021-04-281-1/+1
| | | | | | | smbd will require a smb.conf later. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* python: remove all 'from __future__ import print_function'Douglas Bagnall2021-04-286-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>
* .gitlab-ci.yml and autobuild: Publish the current HTML docs with the code ↵Andrew Bartlett2021-04-281-0/+6
| | | | | | | coverage Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* script/autobuild.py: split samba-ad-dc-4* tests into twoStefan Metzmacher2021-04-131-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>
* script/autobuild.py: split samba-nopython out of samba-minimal-smbd againStefan Metzmacher2021-04-131-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>
* script/autobuild.py: split samba-no-opath into two testsStefan Metzmacher2021-04-131-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>
* script/autobuild.py: skip lcov step for samba-fipsStefan Metzmacher2021-04-131-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>
* script/autobuild.py: split samba-ad-dc-backup into samba-ad-back{1,2}Stefan Metzmacher2021-04-131-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>
* script/autobuild.py: move ad_dc_backup to samba-ad-dc-6Stefan Metzmacher2021-04-131-2/+1
| | | | | 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 out samba-{nt4,h5l,no-opath}-buildStefan Metzmacher2021-04-131-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>
* script/autobuild.py: split out "samba-{def,mit}-build"Stefan Metzmacher2021-04-131-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>
* script/autobuild.py: add support for dependenciesStefan Metzmacher2021-04-131-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>
* script/autobuild.py: store the directory for the running builder in ↵Stefan Metzmacher2021-04-131-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>
* script/autobuild.py: defer cp and git cloneStefan Metzmacher2021-04-131-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>
* script/autobuild.py: pass --with-selftest-prefix via make instead of configureStefan Metzmacher2021-04-131-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>