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
Timothy Clem
fec1b2317a
Outdent again to make diff readable
2017-03-10 11:18:24 -08:00
Timothy Clem
58c49f4a9b
Use STArray instead of IntMap
2017-03-10 09:54:17 -08:00
Timothy Clem
28c8f6a182
Use IntMap now that our keys are just Ints
2017-03-10 08:41:45 -08:00
Rick Winfrey
f21610d038
Merge branch 'master' into gitmon-support
2017-03-09 13:53:13 -08:00
Rick Winfrey
10af2e4715
Add 📝 use of BangPatterns
2017-03-09 13:52:30 -08:00
Timothy Clem
25373ae71b
Merge branch 'master' into cantor-keys
2017-03-09 09:50:17 -08:00
Timothy Clem
328ee8c2d9
Merge pull request #1036 from github/bytestring-sexpression-output
...
Use ByteString for parse output (sexpression, json)
2017-03-09 09:49:37 -08:00
Timothy Clem
9eb900b260
Simplify so there's no need to pass in i and j
2017-03-09 09:44:44 -08:00
Timothy Clem
7cb2ed8c25
Try using a single int as map key using cantor pairs
2017-03-09 09:21:57 -08:00
Timothy Clem
cf390cdfba
Cleanup encodingToText
2017-03-08 14:57:17 -08:00
Timothy Clem
8bf09776e4
toS is a little cleaner here
2017-03-08 14:45:47 -08:00
Timothy Clem
c6be51156d
Whitespace
2017-03-08 14:02:52 -08:00
Timothy Clem
68d1f1cd97
Fix up tests to use ByteString too
2017-03-08 13:56:08 -08:00
Timothy Clem
0cc056c06b
Straightforward json encoding
2017-03-08 13:40:27 -08:00
Timothy Clem
58889e1038
Newline on end of JSON output, no longer pretty
2017-03-08 13:26:20 -08:00
Timothy Clem
a62b720dad
Sexpression output is not text anymore
2017-03-08 13:10:10 -08:00
Timothy Clem
569fdd031b
Construct sexpression output with ByteString
2017-03-08 11:40:37 -08:00