Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow running perf tests on multiple tags #14

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/performance-by-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Performance comparison by tag

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
build:
name: Performance comparison with multiple versions of Theia on ubuntu-latest with Node.js 16.x
strategy:
max-parallel: 1 # Avoid impacting the performance of each run
matrix:
tag:
[
"v1.29.2-community",
"v1.34.4",
"v1.37.2",
"v1.38.0",
"v1.39.0",
"v1.40.0",
]

runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js "16.x"
uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"

- name: Use Python 3.x
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Build
shell: bash
run: yarn

- name: Checkout Theia
uses: actions/checkout@v3
with:
repository: eclipse-theia/theia
ref: ${{ matrix.tag }}
path: ./theia

- name: Build Theia
shell: bash
working-directory: ./theia
run: |
yarn --skip-integrity-check --network-timeout 100000
yarn browser build
env:
NODE_OPTIONS: --max_old_space_size=4096
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9

- name: Run Theia
shell: bash
working-directory: ./theia
run: yarn browser start &

- name: Run Performance Measurement
uses: GabrielBB/xvfb-action@v1
with:
run: yarn performance --reporter=html --repeat-each 3

- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-${{ matrix.tag }}
path: playwright-report/
retention-days: 3
Loading