ray/release
Riatre 2cdb76789e
Bump pytest from 5.4.3 to 7.0.1 (#26334)
See #23676 for context. This is another attempt at that as I figured out what's going wrong in `bazel test`. Supersedes #24828.

Now that there are Python 3.10 wheels for Ray 1.13 and this is no longer a blocker for supporting Python 3.10, I still want to make `bazel test //python/ray/tests/...` work for developing in a 3.10 env, and make it easier to add Python 3.10 tests to CI in future.

The change contains three commits with rather descriptive commit message, which I repeat here:

Pass deps to py_test in py_test_module_list

    Bazel macro py_test_module_list takes a `deps` argument, but completely
    ignores it instead of passes it to `native.py_test`. Fixing that as we
    are going to use deps of py_test_module_list in BUILD in later changes.

    cpp/BUILD.bazel depends on the broken behaviour: it deps-on a cc_library
    from a py_test, which isn't working, see upstream issue:
    https://github.com/bazelbuild/bazel/issues/701.
    This is fixed by simply removing the (non-working) deps.

Depend on conftest and data files in Python tests BUILD files

    Bazel requires that all the files used in a test run should be
    represented in the transitive dependencies specified for the test
    target. For py_test, it means srcs, deps and data.

    Bazel enforces this constraint by creating a "runfiles" directory,
    symbolic links files in the dependency closure and run the test in the
    "runfiles" directory, so that the test shouldn't see files not in the
    dependency graph.

    Unfortunately, the constraint does not apply for a large number of
    Python tests, due to pytest (>=3.9.0, <6.0) resolving these symbolic
    links during test collection and effectively "breaks out" of the
    runfiles tree.

    pytest >= 6.0 introduces a breaking change and removed the symbolic link
    resolving behaviour, see pytest pull request
    https://github.com/pytest-dev/pytest/pull/6523 for more context.

    Currently, we are underspecifying dependencies in a lot of BUILD files
    and thus blocking us from updating to newer pytest (for Python 3.10
    support). This change hopefully fixes all of them, and at least those in
    CI, by adding data or source dependencies (mostly for conftest.py-s)
    where needed.

Bump pytest version from 5.4.3 to 7.0.1

    We want at least pytest 6.2.5 for Python 3.10 support, but not past
    7.1.0 since it drops Python 3.6 support (which Ray still supports), thus
    the version constraint is set to <7.1.

    Updating pytest, combined with earlier BUILD fixes, changed the ground
    truth of a few error message based unit test, these tests are updated to
    reflect the change.

    There are also two small drive-by changes for making test_traceback and
    test_cli pass under Python 3.10. These are discovered while debugging CI
    failures (on earlier Python) with a Python 3.10 install locally.  Expect
    more such issues when adding Python 3.10 to CI.
2022-07-12 21:14:35 -07:00
..
air_tests/horovod [AIR] Replace train. with session. (#26303) 2022-07-07 16:29:04 -07:00
benchmarks [Core] install jemalloc in Ray docker and use jemalloc in benchmark release tests (#26112) 2022-06-27 23:26:56 -07:00
golden_notebook_tests [tune] Remove TrialCheckpoint class (#25406) 2022-07-11 20:08:10 +01:00
jobs_tests [Nightly test] Move two line downloads to one line. (#25061) 2022-05-22 00:07:03 -07:00
kubernetes_manual_tests [minor] Fix legacy OSS operator test (#23540) 2022-04-18 17:47:42 -07:00
lightgbm_tests [release/xgboost/lightgbm] Fix app config dependency install overwriting ray (#25307) 2022-05-31 13:46:17 +02:00
long_running_distributed_tests [AIR/train] Use new Train API (#25735) 2022-07-07 12:28:37 -07:00
long_running_tests [RLlib] Trainer.training_iteration -> Trainer.training_step; Iterations vs reportings: Clarification of terms. (#25076) 2022-06-10 17:09:18 +02:00
microbenchmark [Nightly test] Move two line downloads to one line. (#25061) 2022-05-22 00:07:03 -07:00
ml_user_tests [AIR/train] Use new Train API (#25735) 2022-07-07 12:28:37 -07:00
nightly_tests Pipelined training test: change num of windows; log the ingestion perf (#26429) 2022-07-11 11:03:35 -07:00
ray_release Set RAY_USAGE_STATS_EXTRA_TAGS for release tests (#26366) 2022-07-07 21:17:34 -07:00
release_logs [release/1.13.0] Add release logs (#24509) 2022-06-21 23:51:25 +01:00
rllib_tests [RLlib] Fix the 2 failing RLlib release tests. (#25603) 2022-06-14 14:51:08 +02:00
runtime_env_tests [Nightly test] Move two line downloads to one line. (#25061) 2022-05-22 00:07:03 -07:00
serve_tests [Serve] Bump min_workers configuration for Serve nightly tests (#25892) 2022-06-23 15:38:07 -07:00
train_tests/horovod [Nightly test] Move two line downloads to one line. (#25061) 2022-05-22 00:07:03 -07:00
tune_tests [tune/structure] Introduce execution package (#26015) 2022-06-23 11:13:19 +01:00
util [release] Update download_wheels.sh to include Python 3.10 (#25508) 2022-06-06 22:42:50 +01:00
xgboost_tests [release/xgboost/lightgbm] Fix app config dependency install overwriting ray (#25307) 2022-05-31 13:46:17 +02:00
__init__.py [release] move release testing end to end script to main ray repo (#17070) 2021-07-14 12:39:07 -07:00
BUILD Bump pytest from 5.4.3 to 7.0.1 (#26334) 2022-07-12 21:14:35 -07:00
README.md [Release] Remove release process doc (#19312) 2021-10-18 11:24:03 -07:00
release_tests.yaml Pipelined training test: change num of windows; log the ingestion perf (#26429) 2022-07-11 11:03:35 -07:00
requirements.txt [Core] update protobuf to 3.19.4 (#25648) 2022-06-18 16:06:56 -07:00
requirements_buildkite.txt [Core] update protobuf to 3.19.4 (#25648) 2022-06-18 16:06:56 -07:00
run_release_test.sh [ci/release] Install local wheels in release test shell script (#25227) 2022-06-02 10:32:51 +01:00
setup.py [ci/release] Refactor release test e2e into package (#22351) 2022-02-16 17:35:02 +00:00

Release Tests

While the exact release process relies on Anyscale internal tooling, the tests we run during the releases are located at https://github.com/ray-project/ray/blob/master/release/.buildkite/build_pipeline.py