Rob Rix
5a35598213
Return the actual exception when parsing/assignment fails.
2019-06-05 14:28:28 -04:00
Rob Rix
a399c63691
Fix test failures.
2019-06-03 16:08:15 -04:00
Douglas Creager
cf803555e5
Make error reporter API generic
...
Instead of hard-coding the HTTP API we use for uploading errors to our
internal service, let the user provide an arbitrary function (in the IO
monad) for uploading them. The default config will create an error
reporter that logs errors to the console, just like happened before if
you didn't set the `HAYSTACK_URL` environment variable.
2019-05-31 08:58:34 -04:00
Patrick Thomson
4cf56017fa
Merge branch 'test-reading-from-git-repos' of github.com:github/semantic into test-reading-from-git-repos
2019-05-28 15:52:06 -04:00
Patrick Thomson
0e13a4c091
These can be in parallel because we're not changing the cwd.
2019-05-28 15:49:43 -04:00
Patrick Thomson
7f3dd3e80a
Merge branch 'master' into test-reading-from-git-repos
2019-05-28 15:43:38 -04:00
Patrick Thomson
e4143aaa34
slightly less heinous implementation
2019-05-28 15:43:14 -04:00
Patrick Thomson
e77d723859
try to fix the builders
2019-05-28 15:34:31 -04:00
Patrick Thomson
00e7ceb883
Fix dead imports.
2019-05-28 14:58:37 -04:00
Patrick Thomson
a410300492
Add tests for readBlobsFromGitRepo.
...
This is part of the critical path for repository tagging, so we should
test it to make sure it doesn't explode. This introduces a test that
creates a temporary git repo and queries it to make sure that adding
and then reading from a blob works properly.
2019-05-28 14:54:18 -04:00
Patrick Thomson
4191f8a75c
Fix tests.
2019-05-25 14:54:26 -04:00
Patrick Thomson
8e0962712e
legacyMakeBlob => makeBlob. Also unpack File.
2019-05-24 11:52:35 -04:00
Patrick Thomson
63a7f117eb
If we're not gonna rename File, give Blob the logical field name.
2019-05-21 22:58:25 -04:00
Patrick Thomson
b8d3a06a67
Fix all the test cases.
2019-05-21 22:28:32 -04:00
Patrick Thomson
9509ec37b8
absolutely massive patch that touches everything
2019-05-21 22:05:23 -04:00
Timothy Clem
7840aec67b
Fix specs
2019-04-12 12:50:30 -07:00
Timothy Clem
70ea830460
Fix up test for ModuleInfo changes
2019-03-27 15:57:55 -07:00
Timothy Clem
aa3d8d6a10
Merge remote-tracking branch 'origin/master' into shelly-git-action
2019-03-26 09:17:15 -07:00
Timothy Clem
8b9bc575b6
Fix up tests
2019-03-25 13:14:04 -07:00
Patrick Thomson
aa7e1d140c
Fix parse-examples.
2019-03-25 11:37:19 -04:00
Max Brunsfeld
3c0dd6cc45
Add unit test for parsing with a timeout
...
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
2019-03-19 11:56:07 -07:00
Josh Vera
b0309f86a2
Merge branch 'master' into tree-sitter-timeout
2019-03-19 14:42:36 -04:00
Max Brunsfeld
3249307ccd
Use Tree-sitter's built-in timeout API instead of a separate timeout thread
2019-03-18 16:30:15 -07:00
Timothy Clem
7865ba7464
Couple of extra tests to show picking out calls
2019-03-18 12:24:10 -07:00
Timothy Clem
8208a4154f
Include function calls in symbols output
2019-03-18 10:53:02 -07:00
Timothy Clem
1a4d489b1d
Fix up tests, new CLI output
2019-03-11 15:32:15 -07:00
Patrick Thomson
79ae590376
compiles
2019-03-06 10:12:10 -05:00
Patrick Thomson
079ce8baa0
Eliminate other places where These leaked to implementation.
2019-03-01 11:52:21 -05:00
Patrick Thomson
060c8f50ff
Refactor: use pattern synonyms to construct BlobPairs.
...
The `BlobPair` type is defined as an alias for `Join These Blob`. Though
this sacrifices a degree of type safety, it's extremely convenient, as
you can get to a Functor and Bifunctor instance very quickly.
Pattern-matching on `BlobPair` is less elegant though, as it requires
a nested Join then a match on `These`, which is not immediately
indicative of what a given pair might do.
This adds pattern synonyms for the `Inserting`, `Deleting`, and
`Diffing` cases, and removes the less-expressive functions returning such.
2019-03-01 11:19:24 -05:00
Josh Vera
8c654caacc
Merge branch 'indexer-prototype' into merge-indexer-prototype
2019-02-22 17:33:53 -05:00
joshvera
f2aee684bc
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-22 11:10:53 -05:00
joshvera
88c172c984
update tests
2019-02-20 15:45:52 -05:00
joshvera
be4250707d
Merge remote-tracking branch 'origin/indexer-prototype' into deploy-to-moda
2019-02-20 14:23:18 -05:00
Patrick Thomson
0098376172
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-19 20:45:16 -05:00
Timothy Clem
9636fbd86f
Merge remote-tracking branch 'origin/master' into embrace-new-api
2019-02-19 16:32:16 -08:00
Patrick Thomson
d795160000
Remove otiose Lint.hs
2019-02-19 16:38:02 -05:00
Timothy Clem
ec9113cc91
docs is part of this response now too
2019-02-19 12:49:30 -08:00
Rick Winfrey
9813ae2319
Parameterize TaskSession with isPublic
2019-02-15 16:22:51 -08:00
Patrick Thomson
6b763dd5e9
Fix tests.
2019-02-15 17:55:15 -05:00
Timothy Clem
0d3a2856c8
Fix up test due to breaking API change
2019-02-15 13:34:05 -08:00
Patrick Thomson
c7b41a3594
Merge remote-tracking branch 'origin/master' into indexer-prototype-no-sg
2019-02-15 14:05:23 -05:00
Timothy Clem
112782a220
Merge remote-tracking branch 'origin/master' into generated-twirp-service
2019-02-14 08:17:08 -08:00
Timothy Clem
cc78c0d8d5
Case Api as generated
2019-02-12 12:49:34 -08:00
joshvera
016f6ea0ed
Regenerate tests and eval variable declarations
2019-02-11 17:43:19 -05:00
joshvera
c9724d2720
Merge 'origin/master' into deploy-to-moda
2019-02-11 14:27:22 -05:00
Rick Winfrey
f8645c43b5
Add test case
2019-02-08 17:41:16 -08:00
joshvera
25fea11c13
remove Data.GitHub.Spec
2019-02-08 15:52:48 -05:00
joshvera
e7ea1aa204
Fix Alias and Import instances
2019-02-08 15:47:03 -05:00
joshvera
867d1867c0
remove Data.GitHub.Spec
2019-02-08 15:46:46 -05:00
Timothy Clem
50bedeb689
Remove extraneous proto encoding/decode from our internal datatypes
2019-02-06 14:55:43 -08:00