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

[ci] Remove scripts duplicates and symlinks except for format.sh #34463

Merged
merged 2 commits into from
Apr 18, 2023

Conversation

krfricke
Copy link
Contributor

Why are these changes needed?

A year ago, #23866 moved our CI scripts into a more descriptive folder structure. Files in scripts/ were symlinks to the moved scripts. Even then, CI and documentation did not refer to any scripts in scripts/, with the exception of scripts/format.sh, which is referred to in pull request templates.

Recently, #34340 overwrote some of the symlinks with their actual files. Since almost all of these scripts are only used in CI and not by users and developers, we should just get rid of the symlinks. The exception is format.sh which is actively used by developers.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • 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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

@ericl ericl added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Apr 17, 2023
# Conflicts:
#	scripts/bazel.py
#	scripts/bazel_sharding.py
#	scripts/build-docker-images.py
#	scripts/build-multinode-image.py
#	scripts/check-bazel-team-owner.py
#	scripts/check-test-run.py
#	scripts/check_import_order.py
#	scripts/check_minimal_install.py
#	scripts/clang-tidy-diff.py
#	scripts/determine_tests_to_run.py
#	scripts/get_build_info.py
#	scripts/py_dep_analysis.py
#	scripts/py_dep_analysis_test.py
@krfricke krfricke merged commit f2b65f5 into ray-project:master Apr 18, 2023
@krfricke krfricke deleted the ci/scripts branch April 18, 2023 09:22
krfricke added a commit that referenced this pull request Apr 18, 2023
#34463 removed the scripts under the `scripts/` directory because all of them should have been symlinks. However, `pytest_checker.py` was an actual script that was not symlinked from the `ci/` directory. This PR restores this script at the correct location in `ci/lint` and adjusts all references to it in the codebase.

Signed-off-by: Kai Fricke <[email protected]>
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…-project#34463)

A year ago, ray-project#23866 moved our CI scripts into a more descriptive folder structure. Files in scripts/ were symlinks to the moved scripts. Even then, CI and documentation did not refer to any scripts in scripts/, with the exception of scripts/format.sh, which is referred to in pull request templates.

Recently, ray-project#34340 overwrote some of the symlinks with their actual files. Since almost all of these scripts are only used in CI and not by users and developers, we should just get rid of the symlinks. The exception is format.sh which is actively used by developers.

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: elliottower <[email protected]>
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…ect#34523)

ray-project#34463 removed the scripts under the `scripts/` directory because all of them should have been symlinks. However, `pytest_checker.py` was an actual script that was not symlinked from the `ci/` directory. This PR restores this script at the correct location in `ci/lint` and adjusts all references to it in the codebase.

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: elliottower <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…-project#34463)

A year ago, ray-project#23866 moved our CI scripts into a more descriptive folder structure. Files in scripts/ were symlinks to the moved scripts. Even then, CI and documentation did not refer to any scripts in scripts/, with the exception of scripts/format.sh, which is referred to in pull request templates.

Recently, ray-project#34340 overwrote some of the symlinks with their actual files. Since almost all of these scripts are only used in CI and not by users and developers, we should just get rid of the symlinks. The exception is format.sh which is actively used by developers.

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Jack He <[email protected]>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…ect#34523)

ray-project#34463 removed the scripts under the `scripts/` directory because all of them should have been symlinks. However, `pytest_checker.py` was an actual script that was not symlinked from the `ci/` directory. This PR restores this script at the correct location in `ci/lint` and adjusts all references to it in the codebase.

Signed-off-by: Kai Fricke <[email protected]>
Signed-off-by: Jack He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants