Rick Winfrey
9263008b15
Rename socket' -> sock; use void
2017-03-24 11:29:38 -07:00
Rick Winfrey
69e791c4a1
🔥 disabling of unused do bind
2017-03-24 11:29:19 -07:00
Rick Winfrey
fa206dc250
🔥 note about BangPatterns
2017-03-24 11:29:02 -07:00
Rick Winfrey
df8d777b82
escape "{" and "}"
2017-03-23 17:33:17 -07:00
Rick Winfrey
a71389e6e1
Remove unnecessary import
2017-03-23 17:08:21 -07:00
Rick Winfrey
3b8553f912
Trying to surface error
2017-03-23 17:05:57 -07:00
Rick Winfrey
1604f6ca34
Add back strictness
2017-03-23 16:50:34 -07:00
Rick Winfrey
9fe095474f
Strictness not required
2017-03-23 16:39:06 -07:00
Rick Winfrey
f60f90045d
Remove "\n"
2017-03-23 16:12:11 -07:00
Rick Winfrey
c6300449df
This is equivalent to Ruby regex \A
and \Z
for treating start of line and end of line the start of input and end of input, and ignores newlines
2017-03-23 11:32:49 -07:00
Rick Winfrey
95e751f0e0
🔥 whitespace
2017-03-23 09:38:36 -07:00
Rick Winfrey
37e6929d3b
Use safeGitmonIO for connecting to Unix socket
2017-03-23 09:26:54 -07:00
Rick Winfrey
a176dda44a
combine safeIO and timeout functionality into a single function
2017-03-22 17:23:36 -07:00
Rick Winfrey
58ce25aa30
Send CPU time in milliseconds, not nanoseconds
2017-03-22 17:23:02 -07:00
Rick Winfrey
bcdf17e0ab
Restrict communication with Gitmon to a single socket connection
...
- Gitmon perceives a socket closing as EOF in the database, and
terminates the record created with the `update` command. This means
that when the `finish` command is issued, the Gitmon database attempts
to insert the process stats as a new record in the Gitmon db.
2017-03-22 17:22:41 -07:00
Rick Winfrey
5ddc4f7074
Manually specify JSON structure (to avoid inclusion of tag
)
2017-03-21 14:51:23 -07:00
Rick Winfrey
e5e2f948bd
Restructure reader tests and make tests more readable
2017-03-21 14:49:24 -07:00
Rick Winfrey
9cf176a37d
GitmonClient spec should not run in parallel
2017-03-21 14:48:47 -07:00
Rick Winfrey
4207e5f901
Rework the way we read
a userID or repoID from the environment
...
- TIL : mkRegexWithOpts documentation is misleading. The first boolean
option is described as enforcing beginning of line (`^`) and end of
line (`$`) matching, along with not matching newline characters with
`.`. From my testing, I discovered this is not true, and in order to
enforce that regex behavior, I needed to explicitly add `^…$` to my
regex. Because the `mkRegexWithOpts` function was no longer doing what
I wanted, I opted for the simpler `mkRegex` function.
- readInt now returns a `Maybe Int` and expects a single `Just [s]`
match supplied to attempt reading. This function is not general
purpose enough to be safe to use elsewhere, but is safe to use within
the context of `readIntFromEnv` because of the way the regex enforces
matches.
2017-03-21 10:39:14 -07:00
Rick Winfrey
773e808bdb
Add invalid prefix with valid integer value test
2017-03-21 10:35:22 -07:00
Rick Winfrey
3e9d7f26bb
Add valid prefix and mixed value with valid integer id followed by string
2017-03-21 10:35:03 -07:00
Rick Winfrey
aa50b85c24
Add valid prefix and mixed value with string before a valid integer id
2017-03-21 10:34:33 -07:00
Rick Winfrey
c2894e8a6d
Add valid prefix, invalid string value test for user_id and repo_id
...
— Unfortunately, there are race conditions causing failures when
setting and reading environment variables in individual HSpec tests.
Despite removing `parallel` from the way these tests are run, I
continued to see races causing intermittent failures. This is an
unfortunate hack to combine invalid data tests within a single test
that enforces procedural order of setting and reading environment
variables without racing.
2017-03-21 10:33:37 -07:00
Rick Winfrey
4e653a1c9e
📝 purpose of sending "continue" to socket server
2017-03-21 10:31:14 -07:00
Rick Winfrey
7d48f6b8ad
Convert to nano secs once
2017-03-20 18:13:11 -07:00
Rick Winfrey
c902c7f393
Send userID and repoID with schedule Gitmon request
2017-03-20 18:12:59 -07:00
Rick Winfrey
b28b8faa05
Add readIntFromEnv function
...
- Allows us to read the Integer value for user_id and repo_id set in
the env when they are prefixed with `uint:`
2017-03-20 18:12:13 -07:00
Rick Winfrey
8737cd0fcc
Add repoID and userID to ProcessUpdateData
2017-03-20 18:10:22 -07:00
Rick Winfrey
d737ca4018
Expect userID and repoID to be sent to Gitmon
2017-03-20 18:09:59 -07:00
Rick Winfrey
16555c54b3
Merge branch 'master' into gitmon-support
2017-03-20 17:03:48 -07:00
Josh Vera
d2ce3eb988
Merge pull request #1043 from github/bump-tree-sitter-js
...
Bump tree sitter js
2017-03-17 12:55:41 -04:00
joshvera
bcb85a3336
Tabs to spaces
2017-03-17 12:52:41 -04:00
joshvera
ceaf96242a
Remove tree-sitter-typescript on this branch
2017-03-16 17:23:17 -04:00
joshvera
e44e884b98
Add class properties
2017-03-16 17:18:49 -04:00
joshvera
643d289bf0
Add tests for assignment-pattern
2017-03-16 16:47:14 -04:00
joshvera
129da112b3
Map yield expression, lexical declaration and assignment pattern
2017-03-16 16:36:19 -04:00
joshvera
b49e07f881
Bump tree-sitter-js
2017-03-16 15:41:13 -04:00
Timothy Clem
b3f14f14da
Merge pull request #1042 from github/parallel-path-diffing
...
Turn on parallel path diffing
2017-03-15 08:22:32 -07:00
Timothy Clem
8d30a6f8b3
Cleanup prime methods
2017-03-13 16:46:52 -07:00
Timothy Clem
37931a38c1
Whitespace
2017-03-13 16:46:52 -07:00
Timothy Clem
652be339c6
Rework diffing for max parallelization
2017-03-13 16:46:52 -07:00
Timothy Clem
94dc2ac506
Implement NFData instances so we can deepseq
2017-03-13 16:46:52 -07:00
Timothy Clem
f0cb65eb2e
Merge pull request #1037 from github/cantor-keys
...
SES (and other) optimizations
2017-03-13 16:46:17 -07:00
Timothy Clem
e4dc70a1ab
Merge branch 'master' into cantor-keys
2017-03-13 16:04:29 -07:00
Rob Rix
96ea6b98a3
Merge pull request #1041 from github/universal-newline
...
Add newline to end of output in one place
2017-03-13 17:25:37 -04:00
Rick Winfrey
d0c66f1921
Add newline to end of output in one place
2017-03-13 10:52:00 -07:00
Rick Winfrey
d0c6a219e6
🔥 error
2017-03-10 15:30:43 -08:00
Timothy Clem
4c027d024b
Do parsing and term assigment with a task group
2017-03-10 14:24:18 -08:00
Timothy Clem
e37261164e
Minor refactor for clarity
2017-03-10 14:21:21 -08:00
Timothy Clem
f11e705e3d
Use tuples as array index key, fix test failures due to walk ordering
2017-03-10 13:29:05 -08:00