GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — RustPython/.github/workflows/codspeed.yaml at main · RustPython/RustPython 114 lines (99 loc) · 4.21 KB / Copy pathcodspeed.yamlFile metadata and controls114 lines (99 loc) · 4.21 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 on: push: branches: [main] pull_request: types: [unlabeled, opened, synchronize, reopened] merge_group: # `workflow_dispatch` allows CodSpeed to trigger backtest # performance analysis in order to generate initial data. workflow_dispatch: name: CodSpeed permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true env: CARGO_INCREMENTAL: 0 CARGO_TERM_COLOR: always CI: true jobs: benchmarks: if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }} name: Run benchmarks runs-on: ubuntu-latest timeout-minutes: 90 permissions: contents: read id-token: write # for OpenID Connect authentication with CodSpeed env: CACHE_PATHS: | # https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci ~/.cargo/.crates2.json ~/.cargo/.crates.toml ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: dtolnay/rust-toolchain@stable # The benchmarks are linked against libpython through the pyo3 dev-dependency. - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - name: Restore the machine main last measured on # A recording that cannot be fetched is read as "none yet", which the step # below treats as nothing to disagree with. Failing here instead would # turn a cache outage into a red benchmark job. continue-on-error: true uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: build/codspeed-environment-reference.json key: codspeed-environment-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }} restore-keys: codspeed-environment-${{ runner.os }}-${{ runner.arch }}- - name: Name the machine this run drew id: environment shell: bash run: | reference=build/codspeed-environment-reference.json if [ "$GITHUB_REF" = refs/heads/main ]; then args=(--record "$reference") else args=(--record build/codspeed-environment.json --reference "$reference") fi python3 scripts/codspeed-environment.py "${args[@]}" --github-output - name: Restore cache if: ${{ steps.environment.outputs.match != 'false' }} uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.CACHE_PATHS }} key: codspeed-v2-${{ hashFiles('**/Cargo.lock') }} restore-keys: codspeed-v2- continue-on-error: true - name: Install cargo-codspeed if: ${{ steps.environment.outputs.match != 'false' }} run: cargo install cargo-codspeed --locked --version ^5 - name: Build the benchmark targets if: ${{ steps.environment.outputs.match != 'false' }} run: cargo codspeed build --locked --measurement-mode simulation -p rustpython -p rustpython-sre_engine - name: Save cache if: ${{ github.ref == 'refs/heads/main' }} # only save on main uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.CACHE_PATHS }} key: codspeed-v2-${{ hashFiles('**/Cargo.lock') }} continue-on-error: true - name: Run the benchmarks if: ${{ steps.environment.outputs.match != 'false' }} uses: CodSpeedHQ/action@61efe07e57e55bedeab750c434504de272a56e8c # v5.6.1 with: mode: simulation run: cargo codspeed run -p rustpython -p rustpython-sre_engine - name: Record the machine this baseline was measured on if: ${{ success() && github.ref == 'refs/heads/main' }} uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: build/codspeed-environment-reference.json key: codspeed-environment-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }} |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |