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

[GSK-1426] Use WebSocket to replace GRPC for worker-backend communication #1238

Merged
merged 168 commits into from
Aug 17, 2023

Conversation

Inokinoki
Copy link
Member

@Inokinoki Inokinoki commented Jul 11, 2023

Description

Related Issue

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've read the CODE_OF_CONDUCT.md document.
  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

@Inokinoki Inokinoki changed the title Feature/Use WebSocket to replace GRPC for worker-backend communication [Draft] Feature/Use WebSocket to replace GRPC for worker-backend communication Jul 11, 2023
@Inokinoki Inokinoki marked this pull request as draft July 11, 2023 21:07
@Inokinoki Inokinoki changed the title [Draft] Feature/Use WebSocket to replace GRPC for worker-backend communication Feature/Use WebSocket to replace GRPC for worker-backend communication Jul 11, 2023
@github-actions
Copy link

Please add the 'safe for build' label in order to perform the sonar analysis!

Detect not `None` in `parse_function_arguments` to determine the type.
Fix validation error when deserializing slicing and transformation funcs
For better understanding:
1. We validate the token to allow the subscription
2. After a successful subscription, we ensure that a worker is connected
This can avoid sending action command to a pending internal worker.
- Remove base URL rom Hugging Face axios.
- Change popover to a card integrated into TestSuites and
MLWorker instructions.
- Fetch HF Spaces token each time.
- Do not show HF token in a public HF Spaces.
Add outline to text field.
Open HF Settings page in a new tab/window.
@Inokinoki Inokinoki requested a review from andreybavt August 10, 2023 10:11
@andreybavt
Copy link
Contributor

@Inokinoki can you also fix sonar complaints please? Those that are not relevant can be ignored (by adding NOSONAR for example)

Inokinoki and others added 14 commits August 14, 2023 18:34
Refactor `WebSocketSecurityConfig` to reduce the understanding complexity.
Change the names of `MLWorkerAction` enums to match Java naming convention.
Remove unused legacy functions and imports.
Remove duplicated error type in `MLWorkerIllegalReplyException`.
Remove `MLWorkerService`, `GRPCMapper` references in WebSocket.
Refactor DataProcessing action to reduce complexity.
Add comments to DB transaction annotation.
Remove unused.
Make `DatasetProcessFunctionMetaDTO` child of `FunctionMetaDTO` in Java.
To make recent `pdm lint` and pre-commit happy.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

17.1% 17.1% Coverage
0.7% 0.7% Duplication

@andreybavt andreybavt merged commit b865652 into main Aug 17, 2023
@Hartorn Hartorn deleted the feature/websocket-replacing-grpc branch September 22, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Frontend Python Pull requests that update Python code safe for build
Development

Successfully merging this pull request may close these issues.

7 participants