Jan Hrček
a644674a54
Fix -Wredundant-constraints warning
2019-06-14 15:56:07 +02:00
Jan Hrček
8959d4d1d6
Fix -Wdodgy-imports warnings
2019-06-14 15:46:06 +02:00
Patrick Thomson
6edabbbecc
Merge branch 'master' into cleaner-implicit-params
2019-06-12 17:21:01 -04:00
Patrick Thomson
d50c08152b
forgot one last .json file
2019-06-12 16:45:33 -04:00
Patrick Thomson
a4652120a7
Fix test cases for builders (which don't have jd).
2019-06-12 16:40:28 -04:00
Patrick Thomson
946c561725
Merge remote-tracking branch 'origin/tasty-golden-scrumptious-tests' into cleaner-implicit-params
2019-06-12 15:01:42 -04:00
Patrick Thomson
2795bc7357
somehow lost this -O0
2019-06-12 14:50:18 -04:00
Patrick Thomson
bfdb4a1de7
Clean up specs with some implicit parameters.
...
Test cases are a good use of `-XImplicitParams`, because often one
finds oneself plumbing a bunch of parameters obtained from IO through
a dozen layers of pure functions. Implicit parameters make this sort
of passing significantly easier.
Fixes #128 .
2019-06-12 13:55:14 -04:00
Patrick Thomson
7d88f930cb
Fix sentence fragment.
2019-06-12 13:27:34 -04:00
Patrick Thomson
6a15695195
Even more unused imports.
2019-06-12 13:16:34 -04:00
Patrick Thomson
b8cb9d1bfa
Remove unused imports.
2019-06-12 12:52:11 -04:00
Patrick Thomson
14bbf6856b
Kill verbatim
, since we have more principled golden tests now.
2019-06-12 12:46:30 -04:00
Patrick Thomson
3363eccfdf
Better comments and test labels.
2019-06-12 12:29:11 -04:00
Patrick Thomson
acbacbe779
Use golden tests for the CLI.
2019-06-12 12:26:37 -04:00
Patrick Thomson
0292506ebd
Account for occasional race conditions in testsForLanguage.
...
Not sure where this is coming from, but we don't want the builders to
get stuck.
2019-06-12 12:26:02 -04:00
Patrick Thomson
6a24b9c793
Fix whitespace changes in hash fixture.
2019-06-12 11:34:54 -04:00
Patrick Thomson
99c4bb21f8
Overhaul test harnesses and add tasty bounds.
2019-06-12 11:30:20 -04:00
Patrick Thomson
2754e26e9a
Port over Integration.hs.
2019-06-12 11:04:42 -04:00
Patrick Thomson
32a581f31a
More robust example parsing.
2019-06-11 14:54:48 -04:00
Patrick Thomson
4853d9796f
Oops.
2019-06-11 11:23:56 -04:00
Patrick Thomson
a157e4a1b4
Don't clutter the workdir.
2019-06-11 11:22:04 -04:00
Patrick Thomson
6685ef1425
Merge branch 'master' into use-hackage-not-submodules
2019-06-10 20:22:44 -04:00
Patrick Thomson
7aeb88227a
Just don't optimize these specs for now.
2019-06-10 18:53:20 -04:00
Patrick Thomson
aa02a62f76
Merge branch 'master' into gitparsing
2019-06-10 12:19:37 -04:00
lalaition
e4319224e3
Cleaned up parser
2019-06-09 14:11:58 -06:00
lalaition
be96fcf52f
Refactored code to be in line with suggestions
2019-06-06 21:24:22 -06:00
joshvera
7d49193f3b
Add tsx tests
2019-06-06 19:11:29 -04:00
joshvera
237c4d6b3f
Move jsx tests to tsx directory
2019-06-06 18:44:15 -04:00
Rob Rix
fb845b08a4
Victory by fiat!
2019-06-06 11:34:54 -04:00
lalaition
2ba61a21a0
Use Attoparsec to parse git output instead of manually splitting Text
2019-06-05 20:07:48 -06:00
Rob Rix
42708c333c
Fixtures, fixed.
2019-06-05 16:45:15 -04:00
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
Timothy Clem
ee8d406c58
Merge branch 'master' into twirp-specs
2019-02-06 08:47:11 -08:00
Timothy Clem
edc9adb197
Install and use hlint directly
2019-02-04 15:19:10 -08:00
Timothy Clem
b2ae020f26
Merge branch 'master' into refactor-runTask-log-request-ids
2019-02-04 14:54:43 -08:00
joshvera
e99f85e7a1
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-04 17:17:45 -05:00
joshvera
41b8f0ae9c
Merge remote-tracking branch 'origin/master' into javascript-assignment-fixes
2019-02-04 10:21:27 -05:00
Timothy Clem
ce04fa8f12
Refactor runTask
2019-02-01 15:04:23 -08:00
joshvera
a4d892811f
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-02-01 16:03:16 -05:00
Josh Vera
37ea776107
Merge branch 'master' into javascript-assignment-fixes
2019-02-01 09:19:35 -05:00
Timothy Clem
a1a81e3daa
Fix up merge conflicts in Examples.hs
2019-01-31 14:13:26 -08:00
Timothy Clem
c6091cee7f
Remove extra imports
2019-01-31 13:47:45 -08:00
joshvera
77b1e6f234
Add annotatedExpression to typescript
2019-01-31 16:07:19 -05:00
Timothy Clem
f14412fe8f
Merge remote-tracking branch 'origin/master' into servant-experiment
2019-01-31 12:57:59 -08:00
Rick Winfrey
0224ac0b99
Merge branch 'master' into visibility-resolution
2019-01-31 11:51:20 -08:00
Rick Winfrey
84f4ebbf89
Don't shadow tiers
method
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-31 11:35:30 -08:00
joshvera
9592376d2f
Enable go tests
2019-01-31 10:59:37 -05:00
Rick Winfrey
31930cc56b
Update spec
2019-01-30 16:06:01 -08:00
Rick Winfrey
7789ea6d32
Regen fixtures
2019-01-30 16:05:54 -08:00
Rick Winfrey
556fe32720
Use manually defined cons list for Listable Method instance for now
2019-01-30 16:05:35 -08:00
Rick Winfrey
9e050954de
Update diff-tree.json
2019-01-30 16:05:19 -08:00
Patrick Thomson
5609c0582f
Merge remote-tracking branch 'origin/indexer-prototype' into indexer-with-machines
2019-01-29 14:44:37 -05:00
joshvera
3e1c9bd4a5
Merge remote-tracking branch 'origin/master' into indexer-prototype
2019-01-29 13:26:45 -05:00
Rick Winfrey
4ad4a26887
Leaving as a place holder for 🍐
2019-01-28 17:44:08 -08:00
Rick Winfrey
f0497936a3
For now
2019-01-28 17:43:51 -08:00
Rick Winfrey
e7cb6ee021
Remove old instances
2019-01-28 17:43:34 -08:00
Rick Winfrey
9e362c110b
Add Listable AccessControl instance
2019-01-28 17:43:08 -08:00
Timothy Clem
d3330aa9f3
Dedicated input types for Blob and BlobPair
2019-01-28 14:37:50 -08:00
Rick Winfrey
4becc96bf2
Update fixtures
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-28 11:43:41 -08:00
Rick Winfrey
75b9b9dab1
Update listable instances for new access control syntax
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-28 11:26:34 -08:00
Rick Winfrey
11cf3b5128
Extract type synonyms for EvalError and TypeScript term
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-28 10:47:54 -08:00
Rick Winfrey
9232caf32a
Update spec with correct annotation
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-28 10:40:37 -08:00
Rick Winfrey
1685a9fa88
Construct terms and values rather than compare against strings
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-28 10:26:40 -08:00
Patrick Thomson
158476a284
start using real tests
2019-01-28 12:21:00 -05:00
Timothy Clem
919e026499
Merge branch 'master' into servant-experiment
2019-01-25 10:14:16 -08:00
Timothy Clem
6fc3aec6c8
Fix parse-examples
2019-01-24 14:36:10 -08:00
Patrick Thomson
46969defce
Pull in upstream proto3-suite and kill the Exts module.
2019-01-24 13:13:47 -05:00
Patrick Thomson
92b5549d01
Move Envelope
2019-01-24 13:02:11 -05:00
Patrick Thomson
869bd26cae
Move User.hs
2019-01-24 12:59:48 -05:00
Patrick Thomson
3cd4ffc9c3
RequestContext, RequestMethod, and RepositoryPush
2019-01-24 12:57:50 -05:00
Rick Winfrey
381dd17494
Update wording to be less confusing
2019-01-23 14:50:37 -08:00
Rick Winfrey
4180cd7f4c
Remove pragma
2019-01-22 17:30:33 -08:00
Rick Winfrey
d1a9d56dfb
Comment out other AccessControl constructors
...
I'm not sure why this is causing problems for the proto roundtrip tests
2019-01-22 16:58:18 -08:00
Timothy Clem
6befe07ea3
Remove rest of old diff renderers and Diff.hs
2019-01-22 12:05:45 -07:00
Timothy Clem
5e6d0240b2
Use the new diff api from the CLI, fix up tests again
2019-01-22 11:42:06 -07:00
Rick Winfrey
736ead4ade
Update fixtures
2019-01-18 18:21:36 -08:00
Rick Winfrey
e7c984182c
Update specs
2019-01-18 18:21:24 -08:00
Timothy Clem
154e0388af
Goodbye Semantic.Parse
2019-01-18 16:04:23 -08:00
Timothy Clem
dad86f11e7
No more TermRenderer and all tests passing
2019-01-18 15:54:55 -08:00
Patrick Thomson
15508b1699
fix double-free that I introduced like a dummy
2019-01-18 18:17:27 -05:00
Rick Winfrey
c99dfc6d0f
Clean up old fixture
2019-01-18 14:09:00 -08:00
Rick Winfrey
b79638ab7d
Add string based private method spec for now
2019-01-18 14:08:48 -08:00
Rick Winfrey
30ef3ab52b
Imports
2019-01-18 14:08:36 -08:00
Patrick Thomson
25f54b1851
tests compile again
2019-01-18 16:12:56 -05:00
Timothy Clem
f23110a73a
Transition sexpression term rendering
2019-01-18 09:29:51 -08:00
Rick Winfrey
0639353cd1
Add private method fixture
2019-01-17 17:51:27 -08:00
Rick Winfrey
9c887e7eee
Ensure private static field definitions are not accessible by external member access
2019-01-17 17:21:16 -08:00
Rick Winfrey
a5fcc3f1df
Ensure private field definitions throw when accessed via external syntax
2019-01-17 17:17:53 -08:00
Timothy Clem
15643e1d4f
Switch over ToCDiffRenderer (will fix the tests next)
2019-01-17 15:58:49 -08:00
Timothy Clem
d8ef1c1f40
Fix up tests
2019-01-17 15:36:56 -08:00
Timothy Clem
e3afd9d684
Symbol rendering is entirely on the new path
2019-01-17 15:13:39 -08:00
Rick Winfrey
4998421038
Compare directly against SomeError ...
rather than String
values
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-17 14:02:54 -08:00
Rick Winfrey
c7b1d13ab0
Compare against strings
2019-01-17 12:50:33 -08:00
Rick Winfrey
d4abe75456
Merge branch 'master' into visibility-resolution
2019-01-16 18:31:44 -08:00
Rick Winfrey
bf3ff6154a
Update tests for new AccessControl / Relation split
2019-01-16 18:20:33 -08:00
Rick Winfrey
12e63cac6d
Comment this for now
2019-01-16 18:19:51 -08:00
Ayman Nadeem
896cfe983c
Reference Data.Abstract.Value.Concrete and not Control.Abstract.Value
2019-01-15 16:54:00 -05:00
Ayman Nadeem
2f29c9a566
disambiguate
2019-01-15 16:47:40 -05:00
Ayman Nadeem
b1b014a993
fix conflicts
2019-01-15 13:20:48 -05:00
Rick Winfrey
2a4cc4eab2
Update example
2019-01-14 15:21:25 -08:00
Patrick Thomson
0eb3ea5bb6
Sanity, lint, and documentation pass.
2019-01-14 11:06:17 -05:00