Closed Bug 1150540 Opened 10 years ago Closed 10 years ago

Fix Travis-CI build failing for related tiles

Categories

(Content Services Graveyard :: Tiles: Administration Front-End, defect)

defect
Not set
normal
Points:
5

Tracking

(Not tracked)

RESOLVED FIXED
Iteration:
40.2 - 27 Apr

People

(Reporter: oyiptong, Assigned: tspurway)

References

()

Details

(Whiteboard: .004)

The build is failing, because of two unit tests not passing. The unit tests work fine on local environments, but somehow failing on Travis-CI machines. The tests need to pass before the code is merged.
My strategy is to create a travis-like environment and running CI there
Running tests on an Ubuntu 14.04 linux machine succeeds, with Python 2.7.3. It seems there is something that is different in the Travis-CI environment. Will re-create that environment with the travis chef cookbooks https://github.com/travis-ci/travis-cookbooks
Actually, I didn't run tests in the correct branch on an Ubuntu 14.04 machine when I ran it before. Running fab build on the correct branch yields the same error as on Travis and CircleCI.
My investigation led me to believe it is a platform difference issue. We develop on Mac OS X and deploy to a linux distribution. This seems to be an issue of platform. The issue occurs on: TravisCI, CircleCI and in an Ubuntu VM on my local machine. The changes probably need to be investigated and changed to work on both OSX and Linux
Assignee: oyiptong → tspurway
It looks like sqlite3 is the culprit. Both CircleCI and Travis seem to be using an older version of sqlite that doesn't allow for the insertion of multiple rows in one INSERT query. The solution may be to use postgresql in CI. I'll investigate
Assignee: tspurway → oyiptong
Depends on: 1153249
Created bug 1153249 for the switch to postgresql which blocks this bug
Assignee: oyiptong → tspurway
Iteration: 40.1 - 13 Apr → 40.2 - 27 Apr
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.