Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of git repos for font projects #1262

Merged
merged 35 commits into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
26a3bd6
working on the full list of font repos.
felipesanches Mar 28, 2017
7bc0a96
increasing the list to ~100 font repos (still lacks font-file prefixe…
felipesanches Mar 29, 2017
1ae6c2c
make the list of font repos tell us automatically how many
felipesanches Mar 29, 2017
4ebdba5
Raising active repos to a total of 46.
felipesanches Mar 29, 2017
e6e7a08
make the status of the repos in the list runtime accessible
felipesanches Mar 29, 2017
0db6a62
Finished reviewing all repos from the current list.
felipesanches Mar 29, 2017
d0f2423
comment naming the fields in the git repos list
felipesanches Mar 29, 2017
3fcde64
using some shell-foo I extended the list with all gfonts
felipesanches Mar 29, 2017
243777c
Adding font project repos from github.com/googlefonts/:
felipesanches Mar 30, 2017
3f076d9
attempting to fix the container orchestration
felipesanches Mar 30, 2017
1e05bc5
refactoring the worker container script
felipesanches Apr 3, 2017
64a42ca
exporting the current list as a CSV file
felipesanches Apr 3, 2017
060fcdf
the CSV file with font project repos
felipesanches Apr 3, 2017
6b21044
removing hardcoded list of repos and adding code to
felipesanches Apr 3, 2017
e6cde91
updating cached list based on marc's spreadsheet
felipesanches Apr 4, 2017
fc4fa77
Update status/font-prefixes
felipesanches Apr 4, 2017
8021df0
limit the maximum number of commits that we run fbakery on
felipesanches Apr 5, 2017
b587cd5
add fontprojects.csv to the dispatcher Dockerfile
felipesanches Apr 5, 2017
ab0f0bc
fix several issues in the worker script
felipesanches Apr 5, 2017
3c9d5b5
add pylint cmd on Travis for the worker container script
felipesanches Apr 5, 2017
f8d28bb
fix font_prefix for Abhaya Libre repo
felipesanches Apr 5, 2017
ab03407
fix anaheim & bevan font_prefixes
felipesanches Apr 5, 2017
d65a2ec
fix cambay font_prefix
felipesanches Apr 5, 2017
41f382a
exit value must be always zero in the worker container
felipesanches Apr 5, 2017
6978aba
fix saving stats to database
felipesanches Apr 5, 2017
c8cc74b
fix crash on the flask app
felipesanches Apr 5, 2017
7cfb506
A more efficient way of running a limited num of commits!
felipesanches Apr 5, 2017
d8968da
fixing Inconsolata font_prefix
felipesanches Apr 5, 2017
638258d
reducing to a single commit per family for now
felipesanches Apr 5, 2017
3312d49
fixing Overpass font_prefix
felipesanches Apr 5, 2017
21045fb
indexing by familyname instead of giturl
felipesanches Apr 5, 2017
0e52a63
add a few more exceptions to name table rules, such as:
felipesanches Apr 5, 2017
1a6cd61
Added server logs page
felipesanches Apr 5, 2017
b92ec81
fix travis pylint rule
felipesanches Apr 5, 2017
da6ad4b
add a couple missing dependencies to travis setup
felipesanches Apr 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ install:
- pip install gitpython
- pip install matplotlib
- pip install python-dateutil
- pip install rethinkdb
- pip install pika
- "pip install git+https://github.com/behdad/fonttools.git"
- "pip install git+https://github.com/googlei18n/glyphsLib.git"
script:
- export WONT_FIX=invalid-name,bad-indentation
- export MAYBE_SOMEDAY=fixme,missing-docstring,too-many-locals,too-many-branches,too-many-statements,bad-continuation,unidiomatic-typecheck,logging-format-interpolation,too-many-nested-blocks,superfluous-parens,bare-except,undefined-loop-variable,too-many-instance-attributes,old-style-class,unnecessary-pass,unused-argument,consider-iterating-dictionary,attribute-defined-outside-init,too-many-boolean-expressions,too-many-arguments,wrong-import-order,bad-whitespace,pointless-string-statement,pointless-statement,redefined-builtin,global-statement,too-many-lines,global-variable-undefined,redefined-variable-type,multiple-statements,expression-not-assigned,too-many-format-args,deprecated-lambda,broad-except,no-self-use,no-name-in-module,abstract-method,no-member,line-too-long,trailing-newlines,duplicate-code,redefined-outer-name,trailing-whitespace,unused-variable,logging-not-lazy,undefined-variable,protected-access,anomalous-backslash-in-string,wrong-import-position,ungrouped-imports,singleton-comparison,misplaced-comparison-constant,consider-using-enumerate,used-before-assignment,too-few-public-methods,dangerous-default-value,unexpected-keyword-arg
- export PYLINT="pylint --disable=$WONT_FIX,$MAYBE_SOMEDAY"
- $PYLINT *.py
- pylint --disable=wrong-import-order,too-many-function-args,bare-except,global-statement,too-many-arguments,missing-docstring,trailing-newlines,invalid-name,line-too-long,bad-indentation,bad-continuation,bad-whitespace dashboard/containers/worker/fontbakery-gather-dashboard-data-from-git.py
- python fontbakery-check-ttf.py data/test/cousine/*.ttf --ghm --json
- python fontbakery-check-ttf.py data/test/mada/*.ttf --ghm --json
- python fontbakery-check-ttf.py data/test/merriweather/*.ttf --ghm --json
Expand Down
4 changes: 3 additions & 1 deletion checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ def family_with_spaces(value):
FAMILY_WITH_SPACES_EXCEPTIONS = {'VT323': 'VT323',
'PressStart2P': 'Press Start 2P',
'AmaticSC': 'Amatic SC',
'AmaticaSC': 'Amatica SC'}
'AmaticaSC': 'Amatica SC',
'PatrickHandSC': 'Patrick Hand SC',
'CormorantSC': 'Cormorant SC'}
if value in FAMILY_WITH_SPACES_EXCEPTIONS.keys():
return FAMILY_WITH_SPACES_EXCEPTIONS[value]
result = ''
Expand Down
2 changes: 2 additions & 0 deletions dashboard/containers/dispatcher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ RUN apt-get update
RUN pip install pika

ADD dispatch-jobs.py /
ADD fontprojects.py /
ADD fontprojects.csv /

CMD ["python2", "dispatch-jobs.py"]
88 changes: 15 additions & 73 deletions dashboard/containers/dispatcher/dispatch-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,7 @@
import json
import time
import os

messages = [
{"GIT_REPO_URL":"https://github.com/andrew-paglinawan/QuicksandFamily.git",
"FONTFILE_PREFIX": "fonts/Quicksand-"},
{"GIT_REPO_URL":"https://github.com/impallari/Cabin.git",
"FONTFILE_PREFIX": "fonts/TTF/Cabin-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/chonburi.git",
"FONTFILE_PREFIX": "fonts/Chonburi-"},
{"GIT_REPO_URL":"https://github.com/alefalefalef/Varela-Round-Hebrew.git",
"FONTFILE_PREFIX": "fonts/VarelaRound-"},
{"GIT_REPO_URL":"https://github.com/10four/Bhavuka.git",
"FONTFILE_PREFIX": "Bhavuka-"},
{"GIT_REPO_URL":"https://github.com/alexeiva/poiretone.git",
"FONTFILE_PREFIX": "fonts/ttf/PoiretOne-"},
{"GIT_REPO_URL":"https://github.com/huertatipografica/sarala.git",
"FONTFILE_PREFIX": "font/Sarala-"},
{"GIT_REPO_URL":"https://github.com/anexasajoop/cambay.git",
"FONTFILE_PREFIX": "cambay/Font files/Unhinted/CambayDevanagari-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/itim.git",
"FONTFILE_PREFIX": "fonts/Itim-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/kanit.git",
"FONTFILE_PREFIX": "font/Kanit-"},
{"GIT_REPO_URL":"https://github.com/cadsondemak/sriracha.git",
"FONTFILE_PREFIX": "fonts/Sriracha-"},
{"GIT_REPO_URL":"https://github.com/huertatipografica/sura.git",
"FONTFILE_PREFIX": "fonts/Sura-"},
{"GIT_REPO_URL":"https://github.com/CatharsisFonts/Cormorant.git",
"FONTFILE_PREFIX": "1. TrueType Font Files/Cormorant-"},
{"GIT_REPO_URL":"https://github.com/christiannaths/Redacted-Font.git",
"FONTFILE_PREFIX": "src/Redacted-"},
{"GIT_REPO_URL":"https://github.com/clauseggers/Inknut-Antiqua.git",
"FONTFILE_PREFIX": "TTF-OTF/InknutAntiqua-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Adamina.git",
"FONTFILE_PREFIX": "fonts/Adamina-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Alike.git",
"FONTFILE_PREFIX": "Alike-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Federant.git",
"FONTFILE_PREFIX": "Federant-"},
{"GIT_REPO_URL":"https://github.com/cyrealtype/Sumana.git",
"FONTFILE_PREFIX": "Sumana-"},
{"GIT_REPO_URL":"https://github.com/DunwichType/RhodiumLibre.git",
"FONTFILE_PREFIX": "RhodiumLibre-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Asar.git",
"FONTFILE_PREFIX": "Asar-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Atomic-Age.git",
"FONTFILE_PREFIX": "fonts/ttf/AtomicAge-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Basic.git",
"FONTFILE_PREFIX": "Basic-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Dekko.git",
"FONTFILE_PREFIX": "Dekko-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Kavoon.git",
"FONTFILE_PREFIX": "Kavoon-"},
{"GIT_REPO_URL":"https://github.com/EbenSorkin/Varta.git",
"FONTFILE_PREFIX": "Varta-"},
{"GIT_REPO_URL":"https://github.com/erinmclaughlin/Khula.git",
"FONTFILE_PREFIX": "ttf_hinted/Khula-"},
{"GIT_REPO_URL":"https://github.com/etunni/Amita.git",
"FONTFILE_PREFIX": "TTF/Amita-"},
{"GIT_REPO_URL":"https://github.com/etunni/Arya.git",
"FONTFILE_PREFIX": "TTF/Arya-"},
{"GIT_REPO_URL":"https://github.com/etunni/glegoo.git",
"FONTFILE_PREFIX": "Glegoo-"},
{"GIT_REPO_URL":"https://github.com/etunni/kurale.git",
"FONTFILE_PREFIX": "fonts/Kurale-"},
{"GIT_REPO_URL":"https://github.com/googlefonts/Homenaje.git",
"FONTFILE_PREFIX": "fonts/Homenaje-"},
{"GIT_REPO_URL":"https://github.com/googlefonts/LatoGFVersion.git",
"FONTFILE_PREFIX": "fonts/Lato-"},
{"GIT_REPO_URL":"https://github.com/impallari/Raleway.git",
"FONTFILE_PREFIX": "fonts/v3.000 Fontlab/TTF/Raleway-"}
]
from fontprojects import git_repos

def main():
# We'll retry until we get a connection and deliver the messages
Expand All @@ -85,8 +15,20 @@ def main():
connection = pika.BlockingConnection(pika.ConnectionParameters(host=msgqueue_host))
channel = connection.channel()

print ("Dispatching {} messages...".format(len(messages)), file=sys.stderr)
for message in messages:
print ("Dispatching messages...", file=sys.stderr)
for entry in git_repos:
message = {
"STATUS": entry[0],
"FAMILYNAME": entry[1],
"GIT_REPO_URL": entry[2],
"FONTFILE_PREFIX": entry[3]
}

if message["STATUS"] not in ["OK", "NOTE"]:
# Skip this repo, since it is not in bad-shape to run fontbakery checks on it.
# See the listing at fontprojects.py script to know the specific issues.
continue

print ("Adding {} to the queue.".format(message["GIT_REPO_URL"]), file=sys.stderr)
channel.basic_publish(exchange='',
routing_key='font_repo_queue',
Expand Down
Loading