autobuild over 4 hours

Jeremy Allison jra at samba.org
Thu Jul 6 22:06:56 UTC 2017


On Thu, Jul 06, 2017 at 05:12:29PM +1200, Andrew Bartlett via samba-technical wrote:
> On Thu, 2017-07-06 at 13:35 +1000, Martin Schwenke via samba-technical
> wrote:
> > On Thu, 06 Jul 2017 08:02:01 +1200, Andrew Bartlett via samba-
> > technical
> > <samba-technical at lists.samba.org> wrote:
> > 
> > > Just a quick note to other confused developers:
> > > 
> > > Autobuild on sn-devel has just ticked close to/over 4 hours, so is
> > > starting to fail with timelimit exceeded again.  
> > > 
> > > The immediate fix is to bump up the time limit to 5 hours, but the
> > > better fix is my parallel build patch (saves 60 mins!).  
> > > 
> > > Unfortunately that is blocked on the nosymlinks flapping test (but
> > > at
> > > least we know what is required for that).
> > 
> > How do we increase the time limit?  At least in the interim... 
> 
> We certainly could.  I decided not to give up so easily, and I think
> I've found a few mins with the attached patches (currently under test).
> 
> We avoid quite some time if we don't fork and don't call kinit over and
> over in some of the famous DRS tests.
> 
> Either way is really fine by me, as cloud VMs are slower I've been
> setting a 5 hour max anyway for some time.

The C part - rb+ me with one query:

+static PyObject *py_ccache_name(PyObject *self, PyObject *unused)
+{
+       struct ccache_container *ccc;
+       char *name = NULL;
+       PyObject *py_name;
+       int ret;
+       ccc = pytalloc_get_type(self, struct ccache_container);

	^^^^^
	Can pytalloc_get_type fail and return NULL ? If so
	we need a != NULL check after this.

+       ret = krb5_cc_get_full_name(ccc->smb_krb5_context->krb5_context,
+                                   ccc->ccache, &name);
+       if (ret == 0) {
+               py_name = PyString_FromStringOrNULL(name);
+               SAFE_FREE(name);
+       } else {
+               PyErr_SetString(PyExc_RuntimeError,
+                               "Failed to get ccache name");
+               return NULL;
+       }
+       return py_name;
+}

Sorry, would love to rb+ the python but my python-fu isn't
up to it yet.

Cheers,

	Jeremy.



More information about the samba-technical mailing list