Closed
Bug 1101036
Opened 10 years ago
Closed 10 years ago
mozilla_buildtools.test.test_build_versions.TestBumpFile failing with AssertionError: '1.1.2pre' != '1.1.3pre'
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: pmoore, Assigned: bhearsum)
References
()
Details
Attachments
(1 file, 1 obsolete file)
2.25 KB,
patch
|
rail
:
review+
bhearsum
:
checked-in+
|
Details | Diff | Splinter Review |
Since we enabled travis testing in bug 1073553, we are getting this one test failure in tools repo:
https://travis-ci.org/mozilla/build-tools/builds/41382779
======================================================================
FAIL: testBumpDefaultVersionTxt (mozilla_buildtools.test.test_build_versions.TestBumpFile)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/mozilla/build-tools/lib/python/mozilla_buildtools/test/test_build_versions.py", line 214, in testBumpDefaultVersionTxt
self._doTest("default-version.txt", "1.1.2pre", "1.1.3pre", "1.1.3pre")
File "/home/travis/build/mozilla/build-tools/lib/python/mozilla_buildtools/test/test_build_versions.py", line 192, in _doTest
self.assertEquals(newContents, expectedContents)
AssertionError: '1.1.2pre' != '1.1.3pre'
----------------------------------------------------------------------
Would be good to fix this.
For some reason we don't get it in Jenkins. Not sure why.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bhearsum
Assignee | ||
Comment 1•10 years ago
|
||
I'm guessing that this test only ever passed because this regex:
'^.*(version.*\.txt|milestone\.txt)$': '^%(version)s$',
matches default-version.txt. And I guess we matched with that one first on Jenkins, but Travis is executing in a different order.
Attachment #8524778 -
Flags: review?(rail)
Assignee | ||
Comment 2•10 years ago
|
||
I dug and I dug and I couldn't find any evidence that we've ever bumped a file called "default-version.txt". bug 575400 is where this code originally landed, and the configs with bump files don't list it, so I'm pretty confident this is killable code. It doesn't fix the root issue that if you have files that match more than one regex in BUMP_FILES you can get intermittent behaviour, but this should be fine for now - I added a note about this behaviour.
Attachment #8524778 -
Attachment is obsolete: true
Attachment #8524778 -
Flags: review?(rail)
Attachment #8524814 -
Flags: review?(rail)
Updated•10 years ago
|
Attachment #8524814 -
Flags: review?(rail) → review+
Assignee | ||
Updated•10 years ago
|
Attachment #8524814 -
Flags: checked-in+
Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 3•10 years ago
|
||
Awesome Ben, thanks for looking into this and fixing so quickly!
Updated•8 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•