mirror of
https://github.com/swc-project/swc.git
synced 2024-08-16 11:50:22 +03:00
chore(ci): Remove unused concurrency tests (#8100)
This commit is contained in:
parent
8a07681f78
commit
226b17fa86
10
.github/workflows/CI.yml
vendored
10
.github/workflows/CI.yml
vendored
@ -651,19 +651,9 @@ jobs:
|
||||
- name: Run cargo test (concurrent)
|
||||
if: runner.os == 'Linux' && matrix.settings.crate != 'swc_ecma_minifier'
|
||||
shell: bash
|
||||
env:
|
||||
SWC_FORCE_CONCURRENT: "1"
|
||||
run: |
|
||||
./scripts/github/test-concurrent.sh ${{ matrix.settings.crate }}
|
||||
|
||||
- name: Run cargo test (swc, concurrent)
|
||||
shell: bash
|
||||
if: matrix.settings.crate == 'swc' && runner.os == 'Linux'
|
||||
env:
|
||||
SWC_FORCE_CONCURRENT: "1"
|
||||
run: |
|
||||
cargo test -p swc --features concurrent
|
||||
|
||||
- name: Install cargo-hack
|
||||
uses: baptiste0928/cargo-install@v2
|
||||
if: matrix.settings.os == 'ubuntu-latest'
|
||||
|
@ -36,10 +36,9 @@ resolver = "2"
|
||||
debug = true
|
||||
# lto = true
|
||||
|
||||
# Without this, printing diff consumes more than a minute.
|
||||
|
||||
[profile.dev.package.pretty_assertions]
|
||||
# Optimize for iteration
|
||||
[profile.dev.build-override]
|
||||
opt-level = 3
|
||||
|
||||
[profile.test.package.pretty_assertions]
|
||||
opt-level = 3
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 3
|
@ -49,7 +49,7 @@ where
|
||||
where
|
||||
N: Send + Sync + VisitWith<Self>,
|
||||
{
|
||||
if nodes.len() >= threshold || option_env!("SWC_FORCE_CONCURRENT") == Some("1") {
|
||||
if nodes.len() >= threshold {
|
||||
GLOBALS.with(|globals| {
|
||||
HELPERS.with(|helpers| {
|
||||
HANDLER.with(|handler| {
|
||||
@ -107,7 +107,7 @@ where
|
||||
where
|
||||
N: Send + Sync + VisitMutWith<Self>,
|
||||
{
|
||||
if nodes.len() >= threshold || option_env!("SWC_FORCE_CONCURRENT") == Some("1") {
|
||||
if nodes.len() >= threshold {
|
||||
GLOBALS.with(|globals| {
|
||||
HELPERS.with(|helpers| {
|
||||
HANDLER.with(|handler| {
|
||||
@ -165,7 +165,7 @@ where
|
||||
where
|
||||
N: Send + Sync + FoldWith<Self>,
|
||||
{
|
||||
if nodes.len() >= threshold || option_env!("SWC_FORCE_CONCURRENT") == Some("1") {
|
||||
if nodes.len() >= threshold {
|
||||
use rayon::prelude::*;
|
||||
|
||||
let (visitor, nodes) = GLOBALS.with(|globals| {
|
||||
|
@ -134,7 +134,7 @@ where
|
||||
I: Items,
|
||||
F: Send + Sync + Fn(&mut Self, usize, I::Elem),
|
||||
{
|
||||
if nodes.len() >= threshold || option_env!("SWC_FORCE_CONCURRENT") == Some("1") {
|
||||
if nodes.len() >= threshold {
|
||||
GLOBALS.with(|globals| {
|
||||
use rayon::prelude::*;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user