chore(ci): Remove unused concurrency tests (#8100)

This commit is contained in:
Donny/강동윤 2023-10-11 21:40:49 +09:00 committed by GitHub
parent 8a07681f78
commit 226b17fa86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7118 deletions

View File

@ -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'

View File

@ -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]
[profile.dev.package."*"]
opt-level = 3

View File

@ -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| {

View File

@ -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::*;

7099
out.txt

File diff suppressed because it is too large Load Diff