* Use bun in package.json * Update workflows * Update more workflows * Kick ci * Fix yaml * Fix type errors * Compat with snyk * Fix jest resolutions * Add another esm package * Fix aliases and next js missing deps * Update next js embed tests * Try fix embed test config * Fix * Fix requires in e2e support * Use bun not yarn in embed bin * Revert config changes * Use bun in more scripts and use prepare-release action * Replace more yarn usages * Remove overrides from bunfig move to package json * Revert e2e support changes * Add back comment * [ci skip] comment typo * Update bun lock * Update to reference bun * Update to reference bun * Update license disclaimer * Tidy tests * Update to use bun in workflows * Change aliases * Update codemirrort selector * Tidy license generation * Remove .only * Fix yarn references * Checkout .github for release scripts * Update lockfile * Re-add package * update release bunlock * fix checkout check --------- Co-authored-by: Ryan Laurie <iethree@gmail.com>
58 lines
2.0 KiB
YAML
58 lines
2.0 KiB
YAML
name: Frontend Unit Test Stress Test Flake Fix
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
spec:
|
|
description: "Relative path of the target spec"
|
|
type: string
|
|
required: true
|
|
burn_in:
|
|
description: "Number of times to run the test (e.g. 20)"
|
|
type: string
|
|
required: true
|
|
grep:
|
|
description: "Grep and filter tests to run in isolation"
|
|
type: string
|
|
required: false
|
|
|
|
jobs:
|
|
workflow-summary:
|
|
name: Stress test inputs
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Generate workflow summary
|
|
run: |
|
|
echo '**Inputs:**' >> $GITHUB_STEP_SUMMARY
|
|
echo '' >> $GITHUB_STEP_SUMMARY
|
|
echo '- `branch`: ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY
|
|
echo '- `spec`: ${{ inputs.spec }}' >> $GITHUB_STEP_SUMMARY
|
|
echo '- `burn_in`: ${{ inputs.burn_in }}' >> $GITHUB_STEP_SUMMARY
|
|
echo '- `grep`: "${{ inputs.grep }}"' >> $GITHUB_STEP_SUMMARY
|
|
echo '' >> $GITHUB_STEP_SUMMARY
|
|
echo 'triggered by: @${{ github.event.sender.login }}' >> $GITHUB_STEP_SUMMARY
|
|
|
|
frontend-unit-test-stress-test-flake-fix:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 60
|
|
name: Stress test frontend unit test flake fix
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Prepare front-end environment
|
|
uses: ./.github/actions/prepare-frontend
|
|
- name: Prepare back-end environment
|
|
uses: ./.github/actions/prepare-backend
|
|
- name: Build cljs
|
|
run: bun run build:cljs
|
|
- name: Stress-test ${{ github.event.inputs.spec }} ${{ github.event.inputs.burn_in }} times
|
|
run: |
|
|
for i in {1..${{ github.event.inputs.burn_in }}}; do
|
|
bun run jest --runInBand --ci --silent --no-cache \
|
|
--testPathPattern '${{ github.event.inputs.spec }}' \
|
|
--testNamePattern '${{ github.event.inputs.grep }}'
|
|
if [[ "$?" != 0 ]]; then
|
|
echo "Failed after $i attempts" && break;
|
|
fi
|
|
done
|