-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Update pelias-parser #1420
Update pelias-parser #1420
Conversation
Yeah good question. Regarding When Now that the Regarding the tests: The In general, I think it's better to add test cases directly to the Somehow its nice to have the tests failing, so we can see what changed and decide if we're ready to accept the new functionality yet or not (in this repo). Although the flip-side of that is that we might end up maintaining tests in two places and then have to update them in both places for every change, be it positive or negative. I'm happy to continue as-is with the tests until they become a maintenance pain. @orangejulius thoughts? |
Despite it being a departure from our normal way of handling Pelias dependencies, I think realistically upgrading the parser version in the API has to be a manual operation. The parser is not a simple library that we can comprehensively cover with unit tests, unlike something like While we run acceptance tests against branches of the parser during development, the most straightforward place to decide "this code passes the acceptance tests for a given data build" seems to me to be the API. We could try to make that decision when merging into the parser, but that feels very indirect and we'd always have to do some level of testing at the API level anyway (not to mention fixing API unit tests as Joxit mentioned). So my vote is we continue to periodically open PRs like this one, and then we can essentially do our normal API workflow: evaluate whether the changes in the PR are good or bad for the acceptance tests and go from there. |
Can we please combine this PR #1429 @orangejulius last I recall you were testing this, is it good to merge? |
67833f8
to
8c0914e
Compare
I'm closing #1429 since it's a duplicate. v1.45.1 is the latest version of pelias/parser |
8c0914e
to
2eb0205
Compare
I ran all our test suites on this PR comparing it to master with the same data. Overall there were only minor differences. A little jitter added here, a little taken away here. Here are some screenshots of some diffs of the autocomplete test output: I think this PR in particular is good to go. For later versions of the parser, there are issues with the Pelias unit tests. @missinglink if you can resolve those in a new PR, I'll test that one too. |
Backgroud
Our parser rocks ! We stick the version of the perser in c0749a0.
But we did some good improvement since v1.38.0 such as
So?...
The parsing is evolving every day, and results can change and may break CI...
We definitely need to update the parser, but there are a few more questions...
Calle Principal Bar
?I removed 2 tests due to parser response order
Calle Principal Bar
Calle Principal Barc