Add GA workflow to test Rust Remote without installing Python gRPC #2415
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking issue
flyteorg/flyte#5344
Why are the changes needed?
To add a integration test for the Rust Remote Client, we have to add Github Action Jobs for building and installing compiled Python extension,
flyrs
, from Rust through PyO3 bindings.What changes were proposed in this pull request?
Caution
This PR depends on the previous work done in #2414 .
It cannot be executed before #2414 is merged.
We add two CI/CD jobs,
build-without-grpcio
grpcio
,grpcio-status
.build-with-grpcio
Both of them are only being tested against integration test
test_rust_remote.py
that installedflyrs
viamaturin develop
(compiled and installed), and we skip tests if not found moduleflyrs
.How was this patch tested?
Run integration test by command:
pytest tests/flytekit/integration/remote/test_rust_remote.py
Github Action has been tested locally (on my personal forked repo's GA CI), please check the following screenshots.
Setup process
Caution
This PR depends on the previous work done in #2414 It cannot be merged before #2414 is merged.
Screenshots
test_rust_remote.py
if no Python grpc dependencies installed.Check all the applicable boxes
Related PRs
This PR depends on the previous work #2414.
Docs link