Skip to content
Myr

ci: Type check perf (#3406)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* chore: add scripts to monitor type check performance * chore: add jobs for type-check-perf-monitoring * chore: rm a comment * refactor: mv type-check-perf perf-measures/type-check * rm .eslintrc.cjs * chore: ignore *result.txt

authored by m-shaka · committed by GitHub · parent dfbd717 · Browse files · 9 files+120 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+120 added−0 removed

  • other:+120 added−0 removed

9 files+120 added−0 removed

modified:.github/workflows/ci.yml+51 added
175 unmodified lines
176 - uses: actions/upload-artifact@v4177 with:178 name: coverage-lambda-edge179 path: coverage/180181 perf-measures-type-check-on-pr:182 runs-on: ubuntu-latest183 permissions:184 contents: 'read'185 pull-requests: 'write'186 if: github.event_name == 'pull_request'187 steps:188 - uses: actions/checkout@v4189 - uses: oven-sh/setup-bun@v1190 - run: bun install191 - uses: actions/cache/restore@v4192 with:193 path: perf-measures/type-check/previous-result.txt194 restore-keys: |195 type-check-perf-previous-result-196 key: type-check-perf-previous-result-197 - run: bun scripts/generate-app.ts198 working-directory: perf-measures/type-check199 - run: bun tsc -p tsconfig.build.json --diagnostics > result.txt200 working-directory: perf-measures/type-check201 - run: |202 {203 echo 'COMPARISON<<EOF'204 bun scripts/process-results.ts205 echo 'EOF'206 } >> "$GITHUB_ENV"207 working-directory: perf-measures/type-check208 - run: echo "$COMPARISON"209 # remove the comment out after we make sure that caching is working210 # - uses: thollander/actions-comment-pull-request@v2211 # with:212 # comment_tag: perf-measures/type-check213 # message: ${{ env.COMPARISON }}214215216 perf-measures-type-check-on-main:217 runs-on: ubuntu-latest218 if: github.ref == 'refs/heads/main'219 steps:220 - uses: actions/checkout@v4221 - uses: oven-sh/setup-bun@v1222 - run: bun install223 - run: bun scripts/generate-app.ts224 working-directory: perf-measures/type-check225 - run: bun tsc -p tsconfig.build.json --diagnostics > previous-result.txt226 working-directory: perf-measures/type-check227 - uses: actions/cache/save@v4228 with:229 path: perf-measures/type-check/previous-result.txt230 key: type-check-perf-previous-result-${{ github.sha }}
added:perf-measures/type-check/generated/.gitkeep
added:perf-measures/type-check/scripts/generate-app.ts+25 added
added:perf-measures/type-check/scripts/process-results.ts+18 added
added:perf-measures/type-check/.gitignore+4 added
1generated2!generated/.gitkeep3trace4*result.txt
added:perf-measures/type-check/client.ts+4 added
added:perf-measures/type-check/tsconfig.build.json+4 added
added:perf-measures/tsconfig.json+13 added
modified:vitest.config.ts+1 added
20 unmodified lines
21 'benchmarks',22 'runtime-tests',23 'build.ts',24 'src/test-utils',25 'perf-measures',2627 // types are compile-time only, so their coverage cannot be measured28 'src/**/types.ts',29 'src/jsx/intrinsic-elements.ts',
6 unmodified lines