{"action":"created","issue":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2247","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2247/labels{/name}","comments_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2247/comments","events_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2247/events","html_url":"https://github.com/zestedesavoir/zds-site/issues/2247","id":56927569,"number":2247,"title":"Pourquoi tox et comment ça marche ?","user":{"login":"SpaceFox","id":5786268,"avatar_url":"https://avatars.githubusercontent.com/u/5786268?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceFox","html_url":"https://github.com/SpaceFox","followers_url":"https://api.github.com/users/SpaceFox/followers","following_url":"https://api.github.com/users/SpaceFox/following{/other_user}","gists_url":"https://api.github.com/users/SpaceFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceFox/subscriptions","organizations_url":"https://api.github.com/users/SpaceFox/orgs","repos_url":"https://api.github.com/users/SpaceFox/repos","events_url":"https://api.github.com/users/SpaceFox/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceFox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Back","name":"Back","color":"207de5"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Bloquant","name":"Bloquant","color":"fbca04"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/BUG","name":"BUG","color":"e11d21"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Documentation","name":"Documentation","color":"207de5"},{"url":"https://api.github.com/repos/zestedesavoir/zds-site/labels/Front","name":"Front","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones/11","html_url":"https://github.com/zestedesavoir/zds-site/milestones/%22Futur%20proche%22%20(v1.x)","labels_url":"https://api.github.com/repos/zestedesavoir/zds-site/milestones/11/labels","id":715513,"number":11,"title":"\"Futur proche\" (v1.x)","description":"Version 1.x\r\n\r\nCes bugs et améliorations sont à faire rapidement après la v1, mais ne sont pas strictement nécessaires au sortir de la v1.","creator":{"login":"SpaceFox","id":5786268,"avatar_url":"https://avatars.githubusercontent.com/u/5786268?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceFox","html_url":"https://github.com/SpaceFox","followers_url":"https://api.github.com/users/SpaceFox/followers","following_url":"https://api.github.com/users/SpaceFox/following{/other_user}","gists_url":"https://api.github.com/users/SpaceFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceFox/subscriptions","organizations_url":"https://api.github.com/users/SpaceFox/orgs","repos_url":"https://api.github.com/users/SpaceFox/repos","events_url":"https://api.github.com/users/SpaceFox/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceFox/received_events","type":"User","site_admin":false},"open_issues":178,"closed_issues":16,"state":"open","created_at":"2014-07-09T18:45:51Z","updated_at":"2015-02-24T22:05:50Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-02-07T21:52:12Z","updated_at":"2015-02-24T22:20:27Z","closed_at":null,"body":"Quelqu'un m'explique c'est quoi cette daube de `tox` et ce que ça fout dans notre projet ?\r\n\r\nSi j'en crois le commentaire initial de la PR #2138 :\r\n\r\n> Maintenant on a les commandes suivantes pour lancer les tests : \r\n>\r\n> - `tox -e flake8` : tester la syntaxe pep8\r\n> - `tox -e back` : test du back end sur sqlite (la commande prend en compte flake)\r\n> - `tox -e back_mysql` : test du back end sur mysql (pour travis)\r\n> - `tox -e front` : tests du front\r\n> - `tox -e docs` : tester la génération de la docs\r\n\r\nPremière question : comment se fait-il que ces commandes ne soient pas documentées ?\r\n\r\nAujourd'hui, sur une branche `dev` à jour :\r\n\r\n- `tox -e flake8` ne fonctionne pas\r\n- `tox -e back` est inutilisable parce que s'amuse à réinstaller toutes les dépendances. Cool. J'ai **déjà** toutes les dépendances. Pourquoi ça les réinstalle ?\r\n- `tox -e back_mysql` est inutilisable parce que s'amuse à réinstaller toutes les dépendances. Cool. J'ai **déjà** toutes les dépendances. Pourquoi ça les réinstalle ?\r\n- `tox -e front` ne fonctionne pas\r\n- `tox -e docs` ne fonctionne pas\r\n\r\nA noter que cet outil est tellement bien foutu qu'après avoir explosé et indiqué en rouge des tonnes d'erreurs, il affiche quand même que tout s'est bien passé en vert.\r\n\r\n# Pile d'erreurs avec `tox -e flake8`\r\n\r\n```\r\n(zds-env)spacefox@Azathoth:~/PycharmProjects/zds-site$ tox -e flake8\r\nflake8 runtests: PYTHONHASHSEED='1171347419'\r\nflake8 runtests: commands[0] | flake8\r\nWARNING:test command found but not installed in testenv\r\n  cmd: /home/spacefox/virtualenvs/zds-env/bin/flake8\r\n  env: /home/spacefox/PycharmProjects/zds-site/.tox/flake8\r\nMaybe forgot to specify a dependency?\r\n___________________________________ summary ____________________________________\r\n  flake8: commands succeeded\r\n  congratulations :)\r\n```\r\n\r\n# Pile d'erreurs avec `tox -e front` \r\n\r\n```\r\n(zds-env)spacefox@Azathoth:~/PycharmProjects/zds-site$ tox -e front\r\nfront runtests: PYTHONHASHSEED='1737368232'\r\nfront runtests: commands[0] | npm install npm -g\r\nWARNING:test command found but not installed in testenv\r\n  cmd: /usr/bin/npm\r\n  env: /home/spacefox/PycharmProjects/zds-site/.tox/front\r\nMaybe forgot to specify a dependency?\r\nnpm ERR! Linux 3.16.0-4-amd64\r\nnpm ERR! argv \"node\" \"/usr/bin/npm\" \"install\" \"npm\" \"-g\"\r\nnpm ERR! node v0.10.36\r\nnpm ERR! npm  v2.4.1\r\nnpm ERR! path /usr/bin/npm\r\nnpm ERR! code EACCES\r\nnpm ERR! errno 3\r\n\r\nnpm ERR! Error: EACCES, unlink '/usr/bin/npm'\r\nnpm ERR!  { [Error: EACCES, unlink '/usr/bin/npm'] errno: 3, code: 'EACCES', path: '/usr/bin/npm' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\nnpm ERR! error rolling back Error: EACCES, unlink '/usr/bin/npm'\r\nnpm ERR! error rolling back  { [Error: EACCES, unlink '/usr/bin/npm'] errno: 3, code: 'EACCES', path: '/usr/bin/npm' }\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/spacefox/PycharmProjects/zds-site/npm-debug.log\r\nERROR: InvocationError: '/usr/bin/npm install npm -g'\r\nfront runtests: commands[1] | npm install\r\nWARNING:test command found but not installed in testenv\r\n  cmd: /usr/bin/npm\r\n  env: /home/spacefox/PycharmProjects/zds-site/.tox/front\r\nMaybe forgot to specify a dependency?\r\nfront runtests: commands[2] | npm run travis\r\nWARNING:test command found but not installed in testenv\r\n  cmd: /usr/bin/npm\r\n  env: /home/spacefox/PycharmProjects/zds-site/.tox/front\r\nMaybe forgot to specify a dependency?\r\n\r\n> zds-site@0.2.0 travis /home/spacefox/PycharmProjects/zds-site\r\n> gulp travis\r\n\r\n[22:47:51] Using gulpfile ~/PycharmProjects/zds-site/Gulpfile.js\r\n[22:47:51] Starting 'jshint'...\r\n[22:47:52] Starting 'sprite'...\r\n[22:47:52] Starting 'vendors-js'...\r\n[22:47:52] Starting 'vendors-css'...\r\n[22:47:52] Starting 'scripts'...\r\n[22:47:52] Finished 'vendors-css' after 263 ms\r\n[22:47:52] Finished 'vendors-js' after 296 ms\r\n[22:47:52] Starting 'vendors'...\r\n[22:47:52] 'Scripts (vendors)' all files 247.39 kB\r\n[22:47:53] 'Scripts (vendors, minified)' all files 247.39 kB\r\n[22:47:53] Finished 'vendors' after 1.16 s\r\n[22:47:53] 'Scripts' all files 88.99 kB\r\n[22:47:53] Finished 'jshint' after 1.89 s\r\n[22:47:53] Starting 'test'...\r\n[22:47:53] Finished 'test' after 4.41 μs\r\n[22:47:54] 'Scripts (minified)' all files 42.65 kB\r\n[22:47:54] Finished 'scripts' after 1.98 s\r\n[22:47:54] Starting 'merge-scripts'...\r\n[22:47:54] 'Scripts (all)' all files 336.38 kB\r\n[22:47:55] 'Scripts (all, minified)' all files 126.83 kB\r\n[22:47:55] Finished 'merge-scripts' after 1.19 s\r\n[22:47:55] Finished 'sprite' after 3.42 s\r\n[22:47:55] Starting 'stylesheet'...\r\n[22:47:56] 'Stylesheet' all files 181.91 kB\r\n[22:47:56] 'Stylesheet (minified)' all files 141.56 kB\r\n[22:47:56] Finished 'stylesheet' after 1.02 s\r\n[22:47:56] Starting 'images'...\r\n[22:47:58] gulp-imagemin: Minified 41 images (saved 24.22 kB - 13.5%)\r\n[22:47:58] 'Images' all files 155.84 kB\r\n[22:47:58] Finished 'images' after 1.54 s\r\n[22:47:58] Starting 'build'...\r\n[22:47:58] Finished 'build' after 14 μs\r\n[22:47:58] Starting 'travis'...\r\n[22:47:58] Finished 'travis' after 14 μs\r\n___________________________________ summary ____________________________________\r\nERROR:   front: commands failed\r\n```\r\n\r\n# Pile d'erreurs avec `tox -e docs` \r\n\r\n```\r\n(zds-env)spacefox@Azathoth:~/PycharmProjects/zds-site$ tox -e docs\r\ndocs runtests: PYTHONHASHSEED='3682303987'\r\ndocs runtests: commands[0] | make\r\nWARNING:test command found but not installed in testenv\r\n  cmd: /usr/bin/make\r\n  env: /home/spacefox/PycharmProjects/zds-site/.tox/docs\r\nMaybe forgot to specify a dependency?\r\nPlease use `make <target>' where <target> is one of\r\n  html       to make standalone HTML files\r\n  dirhtml    to make HTML files named index.html in directories\r\n  singlehtml to make a single large HTML file\r\n  pickle     to make pickle files\r\n  json       to make JSON files\r\n  htmlhelp   to make HTML files and a HTML help project\r\n  qthelp     to make HTML files and a qthelp project\r\n  devhelp    to make HTML files and a Devhelp project\r\n  epub       to make an epub\r\n  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter\r\n  latexpdf   to make LaTeX files and run them through pdflatex\r\n  latexpdfja to make LaTeX files and run them through platex/dvipdfmx\r\n  text       to make text files\r\n  man        to make manual pages\r\n  texinfo    to make Texinfo files\r\n  info       to make Texinfo files and run them through makeinfo\r\n  gettext    to make PO message catalogs\r\n  changes    to make an overview of all changed/added/deprecated items\r\n  xml        to make Docutils-native XML files\r\n  pseudoxml  to make pseudoxml-XML files for display purposes\r\n  linkcheck  to check all external links for integrity\r\n  doctest    to run all doctests embedded in the documentation (if enabled)\r\n___________________________________ summary ____________________________________\r\n  docs: commands succeeded\r\n  congratulations :)\r\n```\r\n\r\nPour une fois que je décide de faire confiance quant à l'utilité d'un outil, j'obtiens un truc qui pète et qui n'est pas correctement documenté. Et après on me reproche de vouloir tout comprendre et tout contrôler ce qui rentre ou non dans ce projet...\r\n\r\nQu'est-ce qu'il faut que je fasse ? Que je ralentisse le projet en interdisant strictement toute PR qui n'apporte pas un outil qui est à la fois fiable, utile et qui vient avec sa documentation correcte pour notre projet ?"},"comment":{"url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/comments/75859479","html_url":"https://github.com/zestedesavoir/zds-site/issues/2247#issuecomment-75859479","issue_url":"https://api.github.com/repos/zestedesavoir/zds-site/issues/2247","id":75859479,"user":{"login":"SpaceFox","id":5786268,"avatar_url":"https://avatars.githubusercontent.com/u/5786268?v=3","gravatar_id":"","url":"https://api.github.com/users/SpaceFox","html_url":"https://github.com/SpaceFox","followers_url":"https://api.github.com/users/SpaceFox/followers","following_url":"https://api.github.com/users/SpaceFox/following{/other_user}","gists_url":"https://api.github.com/users/SpaceFox/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceFox/subscriptions","organizations_url":"https://api.github.com/users/SpaceFox/orgs","repos_url":"https://api.github.com/users/SpaceFox/repos","events_url":"https://api.github.com/users/SpaceFox/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceFox/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T22:20:27Z","updated_at":"2015-02-24T22:20:27Z","body":"Pour en finir ici, j'aimerais vraiment beaucoup une PR qui indique dans la doc clairement c'est quoi tox et comment on s'en sert..."}}