~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 2

[PATCH dispatch.sr.ht] builds: shuffle list of manifests before limiting to first 4

Details
Message ID
<0100017446f6c8f6-1d93214d-e41b-4c19-a2ab-402a039f7021-000000@email.amazonses.com>
DKIM signature
missing
Download raw message
Patch: +2 -0
---
 dispatchsrht/builds.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dispatchsrht/builds.py b/dispatchsrht/builds.py
index 053f340..62ffd5e 100644
--- a/dispatchsrht/builds.py
+++ b/dispatchsrht/builds.py
@@ -1,5 +1,6 @@
import base64
import json
import random
import re
import requests
import yaml
@@ -66,6 +67,7 @@ def submit_build(build_tag,
    """
    build_urls = []
    if len(manifests) > 4:
        random.shuffle(manifests)
        manifests = manifests[:4]

    for name, manifest in manifests:
-- 
2.11.0
Details
Message ID
<C5BLAILT7LOF.1M421HBV4N7M0@homura>
In-Reply-To
<0100017446f6c8f6-1d93214d-e41b-4c19-a2ab-402a039f7021-000000@email.amazonses.com> (view parent)
DKIM signature
missing
Download raw message
manifests is a dict, not a list. See hubsrht/builds.py for an example of
shuffling a dict, and PLEASE test your patches before sending them out.

[dispatch.sr.ht/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<C5BLCIJQNF0R.8R0VQM54V2JK@cirno2>
In-Reply-To
<0100017446f6c8f6-1d93214d-e41b-4c19-a2ab-402a039f7021-000000@email.amazonses.com> (view parent)
DKIM signature
missing
Download raw message
dispatch.sr.ht/patches: SUCCESS in 3m10s

[builds: shuffle list of manifests before limiting to first 4][0] from [Greg Hewgill][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/12755
[1]: greg@hewgill.com

✓ #291864 SUCCESS dispatch.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/291864
✓ #291862 SUCCESS dispatch.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/291862
✓ #291863 SUCCESS dispatch.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/291863
Details
Message ID
<C5BLIIZ479Q0.3GLM8PPVLAXTL@homura>
In-Reply-To
<0100017446f6c8f6-1d93214d-e41b-4c19-a2ab-402a039f7021-000000@email.amazonses.com> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/dispatch.sr.ht
   02378d2..2280641  master -> master
Reply to thread Export thread (mbox)