Changeset 3323

Show
Ignore:
Timestamp:
12/30/09 07:48:30 (10 years ago)
Author:
jsamuel
Message:

In continuousbuild's failures rss feed, fix a) incorrect dates, and b) feeds not passing rss validators (the invalid character seemed to cause some rss readers to not work with these feeds).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/continuousbuild/run_all_tests.py

    r3138 r3323  
    239239      dateobj = datetime.datetime.strptime(datestr, "%Y-%m-%d %H:%M:%S") 
    240240      # The PyRSS2Gen module expects this to be in GMT, and python is a pain 
    241       # for timezone conversion. I'll just hard code this to PST and ignore 
    242       # daylight savings time. 
    243       dateobj += datetime.timedelta(hours= -8) 
     241      # for timezone conversion. I'll just hard code assuming the system's in 
     242      # PST and ignore daylight savings time. 
     243      dateobj += datetime.timedelta(hours=8) 
    244244      item = PyRSS2Gen.RSSItem( 
    245245         title="Test failure on run number " + str(runnumber) + " using " + revision, 
    246246         link=config.TESTLOG_URL, 
    247247         description="\n".join(resulttext), 
    248          guid=PyRSS2Gen.Guid(config.TESTLOG_URL + datestr), 
     248         # Spaces aren't valid in a guid. 
     249         guid=PyRSS2Gen.Guid(config.TESTLOG_URL + datestr.replace(' ', '_')), 
    249250         pubDate=dateobj) 
    250251      failureitems.append(item) 
     
    254255    link=config.TESTLOG_URL, 
    255256    description="Seattle test failures for continuous build on " + config.SYSTEM_DESCRIPTION, 
    256     lastBuildDate=datetime.datetime.now() + datetime.timedelta(hours= -8), 
     257    lastBuildDate=datetime.datetime.now() + datetime.timedelta(hours=8), 
    257258    items=failureitems) 
    258259