autobuild: Move autobuild to expecting ldb to build as part of Samba We retain a test to confirm we can build ldb as a public lib in the samba-libs target. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
script/autobuild.py: also pass PYTHONPATH to make test of 'samba-ctdb' Otherwise tests won't find the custom tdb python bindings Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
CI: disable /proc/fds and RESOLVE_NO_SYMLINK in samba-no-opath-build runner This is a more sensible combination of missing Linux specific features: - O_PATH - openat2() with RESOLVE_NO_SYMLINKS - somehow safely reopen an O_PATH file handle Currently only O_PATH is disabled for these jobs, but that doesn't really match and know OS. The following list shows which features are available and used by Samba on a few OSes: | O_PATH | RESOLVE_NO_SYMLINKS | Safe reopen | CI covered --------|----------------|---------------------|---------------------------- | Supported Used | Supported Used | Supported Used | ============================================================================ Linux | + + | + + | + + | + FreeBSD | + + | + [1] - | + [2] - | - AIX | - - | - - | - - | + So by also disabling RESOLVE_NO_SYMLINKS and Safe Reopen, we cover classic UNIX systems like AIX. [1] via open() flag O_RESOLVE_BENEATH [2] via open() flag O_EMPTY_PATH BUG: https://bugzilla.samba.org/show_bug.cgi?id=15549 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
autobuild: Run ad_member_idmap_nss tests as part of samba-admem Those are currently running as part of the normal 'samba' target. It makes more sense to run them togehter with the other ad_member tests. Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Pair-Programmed-With: Andreas Schneider <asn@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org> Autobuild-Date(master): Mon Jan 22 08:17:32 UTC 2024 on atb-devel-224
script/autobuild.py: add some --private-libraries=ALL testing BUG: https://bugzilla.samba.org/show_bug.cgi?id=15545 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jan 4 12:45:58 UTC 2024 on atb-devel-224
script/autobuild.py: nonshared-test works now I guess the problem was related to wrapper libraries... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15545 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
gitlab-ci: Add running codespell 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 Aug 14 22:44:58 UTC 2023 on atb-devel-224
script/autobuild: Use logger.debug() for debug messages (visible with --verbose) 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 verbosity 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 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 mail 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 distutils 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-32bit 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 runner 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
lib/util: Prefer backtrace_symbols() for internal backtraces 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>
script/autobuild.py: allow to run from within git rebase -i 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 environment Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
script: Fix check_symbols() with gcov build 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
autobuild: Run admem_idmap_autorid tests 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 checking 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