fix: fan class-module entity args over scope descendants (#629) #957
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: benchmark | |
| on: | |
| pull_request: | |
| types: [labeled, opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| WARM: 2 | |
| RUNS: 3 | |
| NIX_PATH: "nixpkgs=https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz" | |
| jobs: | |
| allow-bench: | |
| name: allow-bench | |
| runs-on: ubuntu-latest | |
| outputs: | |
| allowed: ${{ steps.check.outputs.allowed }} | |
| steps: | |
| # labels queried live, not from github.event: re-runs reuse the payload | |
| # frozen at trigger time and would never see a label added afterwards | |
| - id: check | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels --jq '.[].name' | grep -qx 'allow-bench'; then | |
| echo "allowed=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "allowed=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| benchmark: | |
| needs: [allow-bench] | |
| if: ${{needs.allow-bench.outputs.allowed == 'true'}} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: wimpysworld/nothing-but-nix@v10 | |
| - uses: cachix/install-nix-action@v31 | |
| - uses: DeterminateSystems/magic-nix-cache-action@v13 | |
| - uses: actions/checkout@v6 | |
| - run: git fetch origin ${{github.base_ref}} --depth 1 | |
| - run: nix develop -c just -- bench --head HEAD --base origin/${{github.base_ref}} --warm "$WARM" --runs "$RUNS" -- --show-output 2>&1 | tee "$GITHUB_STEP_SUMMARY" /tmp/den-bench.log | |
| - env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| if gh api repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels --jq '.[].name' | grep -qx 'bench-skip'; then | |
| exit 0 | |
| fi | |
| grep "faster than base" "/tmp/den-bench.log" |