Skip to content
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

Support multiple indexer-service endpoints #49

Merged
merged 7 commits into from
Jan 24, 2023

Conversation

madumas
Copy link
Contributor

@madumas madumas commented Jan 13, 2023

To fix issue #48, this allows specify more than one endpoint in --indexer-service-metrics-endpoint. subgraph_query_count sums the metrics from the different endpoints for a given subgraph.

Also removes some extra code and add tests.

Copy link
Contributor

@aasseman aasseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks!
Could you also run black / isort / pyright?

pyproject.toml Outdated Show resolved Hide resolved
@madumas madumas requested review from aasseman and removed request for tkornuta-semiotic January 23, 2023 20:17
Copy link
Contributor

@aasseman aasseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an issue with the history, probably due to the merging of master into this branch. That caused some things to get un-removed (such as vcrpy in the main dependencies, or line 114 in config.py).
I would suggest an interactive rebase onto master to fix the history.

In general, catching up to the target branch through rebasing is safer and cleaner than merging.

Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
@madumas madumas force-pushed the ellipfra-multi-service-endpoints branch from f8bd644 to f6621d6 Compare January 24, 2023 15:17
Signed-off-by: Marc-André Dumas <madumas@madumas.ca>
@madumas
Copy link
Contributor Author

madumas commented Jan 24, 2023

it should be fine now

@madumas madumas requested a review from aasseman January 24, 2023 15:31
@coveralls
Copy link

coveralls commented Jan 24, 2023

Pull Request Test Coverage Report for Build 3997764554

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 8 of 9 (88.89%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+16.4%) to 29.391%

Changes Missing Coverage Covered Lines Changed/Added Lines %
autoagora/query_metrics.py 8 9 88.89%
Totals Coverage Status
Change from base Build 3962183864: 16.4%
Covered Lines: 82
Relevant Lines: 279

💛 - Coveralls

@aasseman aasseman linked an issue Jan 24, 2023 that may be closed by this pull request
Copy link
Contributor

@aasseman aasseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bearing with me through the review process! Your contribution is much appreciated.
Also I really like the tests using vcrpy 🙂 .

@aasseman aasseman merged commit b1db19c into semiotic-ai:master Jan 24, 2023
@madumas madumas deleted the ellipfra-multi-service-endpoints branch January 25, 2023 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combine query count from multiple indexer-service instances
3 participants