mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-31 04:11:29 +00:00
autopkgtest: store the submission time when making requests
This is so that we can see more easily see if requests are stuck
This commit is contained in:
parent
da5770559c
commit
4c27eadffa
@ -16,6 +16,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import tarfile
|
import tarfile
|
||||||
@ -615,6 +616,7 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
qname = 'debci-huge-%s-%s' % (self.options.series, arch)
|
qname = 'debci-huge-%s-%s' % (self.options.series, arch)
|
||||||
else:
|
else:
|
||||||
qname = 'debci-%s-%s' % (self.options.series, arch)
|
qname = 'debci-%s-%s' % (self.options.series, arch)
|
||||||
|
params['submit-time'] = datetime.strftime(datetime.utcnow(), '%Y-%m-%d %H:%M:%S%z')
|
||||||
params = json.dumps(params)
|
params = json.dumps(params)
|
||||||
|
|
||||||
if self.amqp_channel:
|
if self.amqp_channel:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# Request re-runs of autopkgtests for packages
|
# Request re-runs of autopkgtests for packages
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
@ -134,6 +135,7 @@ if __name__ == '__main__':
|
|||||||
params['requester'] = os.environ['SUDO_USER']
|
params['requester'] = os.environ['SUDO_USER']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
params['submit-time'] = datetime.strftime(datetime.utcnow(), '%Y-%m-%d %H:%M:%S%z')
|
||||||
params = '\n' + json.dumps(params)
|
params = '\n' + json.dumps(params)
|
||||||
|
|
||||||
creds = urllib.parse.urlsplit(config.adt_amqp, allow_fragments=False)
|
creds = urllib.parse.urlsplit(config.adt_amqp, allow_fragments=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user