Re: Validation results categories: just have Alpha, Beta and Final?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2014-09-30 at 17:29 -0700, Adam Williamson wrote:
> Hi, folks. So as I've been playing with relval, I've been wondering why
> we have 'TC' and 'RC' results page categories. That is, we have a
> top-level 'Test Results' category, then we have a category for each
> release which is a member of that category (e.g.
> Category:Fedora_20_Test_Results ) , and then under that we have:
> 
> Fedora 20 Alpha RC Test Results
> Fedora 20 Alpha TC Test Results
> Fedora 20 Beta RC Test Results
> Fedora 20 Beta TC Test Results
> Fedora 20 Final RC Test Results
> Fedora 20 Final TC Test Results
> 
> I'm not sure there's any real reason to split them between TC and RC
> like that. I'd think it'd be more likely someone would want to see all
> the Alpha validation pages, not *just* the TC or RC pages.
> 
> What do people think? Should we just have:
> 
> Fedora 20 Alpha Test Results
> Fedora 20 Beta Test Results
> Fedora 20 Final Test Results
> 
> ? It wouldn't be too difficult to convert existing results to this
> layout, I don't think. Thanks!

I'm fairly sure this ought to work to move all existing results pages
into the appropriate categories and fill out the new category pages from
a template I just made up based on the text Andre uses for the
categories (using mwclient):

milestones = ("Alpha", "Beta", "Final")
oldcats = re.compile('(Category:.?Fedora.+)([TR]C.)(Test.Results)')

for i in range(13, 22):
    tc_categories = [("Category:Fedora_" + str(i) + "_" + milestone + "_TC_Test_Results") for milestone in milestones]
    rc_categories = [("Category:Fedora_" + str(i) + "_" + milestone + "_RC_Test_Results") for milestone in milestones]
    categories = tc_categories + rc_categories
    for category in categories:
        for page in wiki.pages[category]:
            text = page.edit()
            newtext = oldcats.sub(r'\1\3', text)
            page.save(newtext, summary="automated category move, see FIXME")

    for milestone in milestones:
        newcats = list()
        newcats.append ("Category:Fedora_" + str(i) + "_" + milestone + "_Test_Results")
        for category in newcats:
            page = wiki.pages[category]
            print page.name
            page.save("{{Validation_results_milestone_category|release=" + str(i) + "|milestone=" + milestone + "}}", summary="automated creation of milestone category page")

I've been testing it on the staging wiki and it seems OK. you trust me,
right? :P

Some of the older category pages have whole instructions and Key
sections, but I don't think there's any *value* to that stuff. e.g.
https://fedoraproject.org/wiki/Category:Fedora_13_Alpha_TC_Test_Results
- I don't see any reason not to just ditch it. The actual results pages
have the same stuff.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test





[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux