Skip to content

Commit

Permalink
script/autobuild.py: split samba-no-opath into two tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
metze-samba committed Apr 13, 2021
1 parent 3189807 commit 95a9c3b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .gitlab-ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ samba-nt4:
samba-ad-dc-1-mitkrb5:
extends: .needs_samba-mit-build-private

samba-no-opath:
samba-no-opath1:
extends: .needs_samba-no-opath-build-private

samba-no-opath2:
extends: .needs_samba-no-opath-build-private

# 'pages' is a special job which can publish artifacts in `public` dir to gitlab pages
Expand Down Expand Up @@ -411,6 +414,8 @@ pages:
- samba-schemaupgrade
- samba-ad-dc-1-mitkrb5
- samba-fips
- samba-no-opath1
- samba-no-opath2
script:
- ./configure.developer
- make -j
Expand Down
17 changes: 15 additions & 2 deletions script/autobuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,19 +442,32 @@ def make_test(
],
},

"samba-no-opath": {
"samba-no-opath1": {
"dependency": "samba-no-opath-build",
"sequence": [
("random-sleep", random_sleep(300, 900)),
("test", make_test(
cmd="make test DISABLE_OPATH=1",
cmd="make testonly DISABLE_OPATH=1",
include_envs=[
"nt4_dc",
"nt4_dc_smb1",
"nt4_dc_smb1_done",
"nt4_dc_schannel",
"nt4_member",
"simpleserver",
])),
("lcov", LCOV_CMD),
("check-clean-tree", "script/clean-source-tree.sh"),
],
},

"samba-no-opath2": {
"dependency": "samba-no-opath-build",
"sequence": [
("random-sleep", random_sleep(300, 900)),
("test", make_test(
cmd="make testonly DISABLE_OPATH=1",
include_envs=[
"fileserver",
"fileserver_smb1",
"fileserver_smb1_done",
Expand Down

0 comments on commit 95a9c3b

Please sign in to comment.