Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@eozturk1
Copy link
Contributor

@eozturk1 eozturk1 commented Dec 7, 2021

This branch upgrades mysql_async to version 0.28.1 and tokio to 1.10.2. Outputs for the following have been tested:

Build:
cargo build

Formatting:
cargo fmt
cargo clippy

Test Plan:
cargo test

cd poc
cargo run
> publish test test

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 7, 2021
@slawlor
Copy link
Contributor

slawlor commented Dec 7, 2021

Hmm the integration tests are failing in the CI. Are they failing on your side as well?

@slawlor
Copy link
Contributor

slawlor commented Dec 7, 2021

Everything in the PR looks fine to me, so I'd just want to see why the integration tests are failing (make sure you have docker up and running before starting the test suite). Additionally you should be able to take a look at the integration tests logfile for more debug info if needed. Let me know if you need any help!

@slawlor slawlor self-requested a review December 7, 2021 17:31
Copy link
Contributor

@slawlor slawlor left a comment

Choose a reason for hiding this comment

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

We'll need to address the test infra failures before merging. Just a suggestion, but make sure the docker container is up and running before running cargo test with

docker compose up -d

@eozturk1
Copy link
Contributor Author

eozturk1 commented Dec 7, 2021

Missed upgrading tokio in one of the Cargo files. (Interestingly, all tests were passing on my machine.) All tests pass now.

In the future, would it be better to combine these Cargo files -- unless we need separate ones for tests, akd, poc etc.?

@eozturk1 eozturk1 merged commit ae66220 into facebook:main Dec 7, 2021
@slawlor
Copy link
Contributor

slawlor commented Dec 7, 2021

Yeah each package needs it's own Cargo file. We have a common one which is referred to as a "workspace" however we don't want a single global one since it impacts the necessary dependencies when published to [crates.io]. If we do that, then someone who wants just an in-memory AKD will need all the mysql dependencies, etc. This keeps it as lean as possible in the published crates, and users pull just what they need.

@eozturk1 eozturk1 deleted the MySQLTokioUpgrade branch December 7, 2021 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants