]> git.feebdaed.xyz Git - 0xmirror/tokio.git/commitdiff
runtime: cleanup legacy tests of alt multi-threaded runtime (#7451)
authorQi <add_sp@outlook.com>
Wed, 9 Jul 2025 11:52:33 +0000 (19:52 +0800)
committerGitHub <noreply@github.com>
Wed, 9 Jul 2025 11:52:33 +0000 (19:52 +0800)
Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
.github/workflows/loom.yml
tokio/tests/rt_common.rs

index 234b8bfd7e36794ab653bf1ccfbddb524352c888..99dddcc6c5f49bdc8a8fb798e6d88782f0aaabc2 100644 (file)
@@ -95,28 +95,3 @@ jobs:
         working-directory: tokio
         env:
           SCOPE: ${{ matrix.scope }}
-
-  loom-multi-thread-alt:
-    name: loom ALT multi-thread scheduler
-    # base_ref is null when it's not a pull request
-    if: github.repository_owner == 'tokio-rs' && (contains(github.event.pull_request.labels.*.name, 'R-loom-multi-thread-alt') || (github.base_ref == null))
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        include:
-          - scope: loom_multi_thread_alt::group_a
-          - scope: loom_multi_thread_alt::group_b
-          - scope: loom_multi_thread_alt::group_c
-          - scope: loom_multi_thread_alt::group_d
-    steps:
-      - uses: actions/checkout@v4
-      - name: Install Rust ${{ env.rust_stable }}
-        uses: dtolnay/rust-toolchain@master
-        with:
-            toolchain: ${{ env.rust_stable }}
-      - uses: Swatinem/rust-cache@v2
-      - name: loom ${{ matrix.scope }}
-        run: cargo test --lib --release --features full -- --nocapture $SCOPE
-        working-directory: tokio
-        env:
-          SCOPE: ${{ matrix.scope }}
index ab19177ab6b9e1d2234524c13b0991ed1594e307..6c3ee78a503ee37f893e6d7cdc71cf4ad6a91236 100644 (file)
@@ -53,40 +53,6 @@ macro_rules! rt_test {
                     .into()
             }
         }
-
-        #[cfg(not(target_os = "wasi"))] // Wasi doesn't support threads
-        #[cfg(tokio_unstable)]
-        mod alt_threaded_scheduler_4_threads {
-            $($t)*
-
-            const NUM_WORKERS: usize = 4;
-
-            fn rt() -> Arc<Runtime> {
-                tokio::runtime::Builder::new_multi_thread()
-                    .worker_threads(4)
-                    .enable_all()
-                    .build()
-                    .unwrap()
-                    .into()
-            }
-        }
-
-        #[cfg(not(target_os = "wasi"))] // Wasi doesn't support threads
-        #[cfg(tokio_unstable)]
-        mod alt_threaded_scheduler_1_thread {
-            $($t)*
-
-            const NUM_WORKERS: usize = 1;
-
-            fn rt() -> Arc<Runtime> {
-                tokio::runtime::Builder::new_multi_thread()
-                    .worker_threads(1)
-                    .enable_all()
-                    .build()
-                    .unwrap()
-                    .into()
-            }
-        }
     }
 }