Skip to content

Conversation

@kfstorm
Copy link
Member

@kfstorm kfstorm commented Dec 31, 2021

Why are these changes needed?

According to #13514 (comment), core worker test is not used anymore for a long time. Currently, it is built in CI but not tested. So I removed the dead code.

Related issue number

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@scv119
Copy link
Contributor

scv119 commented Dec 31, 2021

any chance of reenable them instead of deleting?

@jon-chuang
Copy link
Contributor

jon-chuang commented Dec 31, 2021

Yes, we might preferably like to catch issues at core worker level rather than in language worker.

But I don't have enough context to know the status and relevance of the tests.

@kfstorm
Copy link
Member Author

kfstorm commented Jan 14, 2022

If we do want to test core_worker.cc, I believe we need to mock ReferenceCounter, TaskManager, ***Submitter/Receiver, .etc, to make it truly unit tests. The current core worker test is more likely an E2E test of driver/worker without the language frontend. It's not easy to maintain and not easy to debug if a test case fails.

I prefer to delete the obsolete code and rewrite unit tests later.

@bveeramani
Copy link
Member

‼️ ACTION REQUIRED ‼️

We've switched our code formatter from YAPF to Black (see #21311).

To prevent issues with merging your code, here's what you'll need to do:

  1. Install Black
pip install -I black==21.12b0
  1. Format changed files with Black
curl -o format-changed.sh https://gist.githubusercontent.com/bveeramani/42ef0e9e387b755a8a735b084af976f2/raw/7631276790765d555c423b8db2b679fd957b984a/format-changed.sh
chmod +x ./format-changed.sh
./format-changed.sh
rm format-changed.sh
  1. Commit your changes.
git add --all
git commit -m "Format Python code with Black"
  1. Merge master into your branch.
git pull upstream master
  1. Resolve merge conflicts (if necessary).

After running these steps, you'll have the updated format.sh.

@kfstorm
Copy link
Member Author

kfstorm commented Feb 22, 2022

Hi, everyone! If we are not going to delete core worker test, maybe at least let's re-enable it in CI? Currently, it's disabled!!!

-- //:all -rllib/... -core_worker_test

@kfstorm
Copy link
Member Author

kfstorm commented Mar 7, 2022

@scv119 @jon-chuang Kindly ping.

@kfstorm
Copy link
Member Author

kfstorm commented Mar 13, 2022

‼️ ACTION REQUIRED ‼️

We've updated our formatting configuration for C++ code. (see #22725)

This PR includes C++ code change. To prevent issues with merging your code, here's what you'll need to do:

  1. Merge the latest changes from upstream/master branch into your branch.
git pull upstream master
git merge upstream/master
  1. Resolve merge conflicts (if necessary).

After running these steps, you'll have the updated C++ formatting configuration.

  1. Format changed files.
scripts/format.sh
  1. Commit your changes.
git add --all
git commit -m "Format C++ code"

@kfstorm
Copy link
Member Author

kfstorm commented Mar 14, 2022

@scv119 @jon-chuang Ping again.

@kfstorm
Copy link
Member Author

kfstorm commented Mar 30, 2022

@scv119 @jon-chuang Could you share your thoughts about re-enabling the core worker test or deleting the test code?

@stale
Copy link

stale bot commented Apr 29, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Apr 29, 2022
@stale
Copy link

stale bot commented Jun 24, 2022

Hi again! The issue will be closed because there has been no more activity in the 14 days since the last message.

Please feel free to reopen or open a new issue if you'd still like it to be addressed.

Again, you can always ask for help on our discussion forum or Ray's public slack channel.

Thanks again for opening the issue!

@stale stale bot closed this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants