Skip to content

Commit

Permalink
ci: enable ecosystem-ci on main branch (#8932)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykingxyz authored Jan 3, 2025
1 parent 77e6c4a commit 99f77c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 164 deletions.
55 changes: 1 addition & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,63 +359,10 @@ jobs:
# reason for excluding https://github.com/napi-rs/napi-rs/issues/2200
run: cargo miri test --workspace --exclude rspack_node -- --nocapture

run_benchmark:
name: Run benchmark
runs-on: ubuntu-latest
# TODO: enable it after security tokens are added
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev'
if: false
steps:
- name: Run Benchmark
uses: convictional/[email protected]
with:
owner: ${{ github.repository_owner }}
repo: "rspack-ecosystem-benchmark"
workflow_file_name: "bench_rspack_commit.yml"
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }}
ref: "main"
client_payload: '{"commit_sha":"${{ github.sha }}"}'

run_ecosystem_ci:
name: Run Ecosystem CI
runs-on: ubuntu-latest
# TODO: enable it after security tokens are added
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev'
if: false
steps:
- name: Run Ecosystem CI
id: eco_ci
continue-on-error: true
uses: convictional/[email protected]
with:
owner: "rspack-contrib"
repo: "rspack-ecosystem-ci"
workflow_file_name: "ecosystem-ci-from-commit.yml"
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }}
ref: "main"
client_payload: '{"commitSHA":"${{ github.sha }}","repo":"web-infra-dev/rspack","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'

- if: steps.eco_ci.outcome == 'failure'
uses: actions/checkout@v4
- if: steps.eco_ci.outcome == 'failure'
uses: actions/setup-node@v4
with:
node-version: 20
- name: Send Failure Notification
if: steps.eco_ci.outcome == 'failure'
shell: bash
run: ./scripts/alert/lark.js
env:
TITLE: Ecosystem CI failed on main branch
DESCRIPTION: |
commitID: [${{github.sha}}](${{github.server_url}}/${{github.repository}}/commit/${{github.sha}})
URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
LARK_WEBHOOK_URL: ${{secrets.LARK_WEBHOOK_URL}}

failure_notification:
name: Failure Notification
needs:
[test-linux, test-windows, test-mac, rust_check, rust_test, run_benchmark]
[test-linux, test-windows, test-mac, rust_check, rust_test]
if: ${{ failure() && !cancelled() && github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' }}
runs-on: ubuntu-latest
steps:
Expand Down
102 changes: 0 additions & 102 deletions .github/workflows/ecosystem-ci-trigger.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ on:
required: true
type: string
default: "-"
# push:
# branches:
# - main
# paths-ignore:
# - "**/*.md"
# - "website/**"
# tags-ignore:
# - "**"
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "website/**"
tags-ignore:
- "**"

jobs:
get-runner-labels:
Expand Down

2 comments on commit 99f77c8

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 99f77c8 Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ecosystem CI detail: Open

suite result
modernjs ❌ failure
rspress ✅ success
rslib ❌ failure
rsbuild ❌ failure
rsdoctor ❌ failure
examples ✅ success
devserver ✅ success
nuxt ✅ success

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 99f77c8 Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2025-01-03 649c656) Current Change
10000_big_production-mode_disable-minimize + exec 37.6 s ± 265 ms 37.9 s ± 656 ms +0.89 %
10000_development-mode + exec 1.89 s ± 24 ms 1.8 s ± 34 ms -4.74 %
10000_development-mode_hmr + exec 677 ms ± 14 ms 670 ms ± 4.6 ms -1.05 %
10000_production-mode + exec 2.52 s ± 76 ms 2.41 s ± 41 ms -4.21 %
arco-pro_development-mode + exec 1.74 s ± 81 ms 1.74 s ± 55 ms +0.26 %
arco-pro_development-mode_hmr + exec 377 ms ± 1.5 ms 376 ms ± 0.72 ms -0.20 %
arco-pro_production-mode + exec 3.64 s ± 80 ms 3.5 s ± 52 ms -3.71 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.66 s ± 97 ms 3.56 s ± 63 ms -2.77 %
arco-pro_production-mode_traverse-chunk-modules + exec 3.65 s ± 70 ms 3.54 s ± 62 ms -2.99 %
threejs_development-mode_10x + exec 1.5 s ± 22 ms 1.47 s ± 22 ms -2.35 %
threejs_development-mode_10x_hmr + exec 780 ms ± 18 ms 761 ms ± 20 ms -2.43 %
threejs_production-mode_10x + exec 5.38 s ± 127 ms 5.31 s ± 46 ms -1.29 %
10000_big_production-mode_disable-minimize + rss memory 9517 MiB ± 179 MiB 9553 MiB ± 29.9 MiB +0.38 %
10000_development-mode + rss memory 650 MiB ± 10.7 MiB 720 MiB ± 25.5 MiB +10.79 %
10000_development-mode_hmr + rss memory 1371 MiB ± 227 MiB 1493 MiB ± 338 MiB +8.92 %
10000_production-mode + rss memory 625 MiB ± 18.8 MiB 695 MiB ± 30 MiB +11.20 %
arco-pro_development-mode + rss memory 589 MiB ± 30.1 MiB 623 MiB ± 37.9 MiB +5.85 %
arco-pro_development-mode_hmr + rss memory 635 MiB ± 85.2 MiB 667 MiB ± 70.7 MiB +5.00 %
arco-pro_production-mode + rss memory 749 MiB ± 48.7 MiB 767 MiB ± 38.5 MiB +2.44 %
arco-pro_production-mode_generate-package-json-webpack-plugin + rss memory 725 MiB ± 45.5 MiB 790 MiB ± 63.2 MiB +9.02 %
arco-pro_production-mode_traverse-chunk-modules + rss memory 734 MiB ± 41.6 MiB 764 MiB ± 45.8 MiB +4.11 %
threejs_development-mode_10x + rss memory 589 MiB ± 20.5 MiB 691 MiB ± 52.7 MiB +17.25 %
threejs_development-mode_10x_hmr + rss memory 1135 MiB ± 200 MiB 1217 MiB ± 87.2 MiB +7.23 %
threejs_production-mode_10x + rss memory 852 MiB ± 24.9 MiB 970 MiB ± 28.6 MiB +13.77 %

Please sign in to comment.