-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
- Loading branch information
There are no files selected for viewing
3 comments
on commit 8e54d03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@floscher That's correct, but we're not using the png generation and it needs a refactor. I'd like to refactor that and possibly find a way to remove phantomjs dependency. The reason I removed it was timing out and erroring 50% of Travis CI builds. That was a conscious choice here 😄. I'll move the png generation off the main branch, as this is not fully developed feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, then it's fine. I just thought you wanted to remove unused dependencies and overlooked the use of phantom.
But it's strange that it led to failing Travis builds, as Travis only runs the check
task, or did the dependency not install correctly?
Regarding png-generation, maybe svg2png or gulp-svg2png might be worth a try.
And another task that I recently found is mostly unnecessary, is patch-names
. It currently only patches one single sign name, as the others have changed names since the task was introduced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@floscher The phantomjs binary is quite big, and bitbucket where it's fetched from was timing out. It was especially the case after two consecutive releases which I did yesterday. I had to manually rerun Travis CI builds from the Travis UI three times. So yes, the package install part was flopping.
Thanks for reminder about that task, it should be removed, added it to my to do list. This task is also something very Mapillary specific, as we used it for keeping traffic sign names across detection packages in sync. Since then a lot has changed. Nowadays if someone would like to use traffico in context of Mapillary data, then mapillary-mappings is the way to patch names. In the ideal scenario, we should be serving patched names from the API without needing to patch them on the client.
Hi @knikel,
the phantom dependency is not used by the standard build (
npm run build
ornpm run check
), but it is needed for png generation (npm run pngs
). Seetraffico/gulpfile.js
Line 15 in 8e54d03
This was introduced not very long ago in fb4494d by @peterneubauer.