From 62b90b9499dd7a8946285fc48832831aa2ed554f Mon Sep 17 00:00:00 2001 From: Matt Page Date: Thu, 21 Nov 2024 16:36:19 -0800 Subject: [PATCH] Regenerate workflows CI threw a warning about need to regenerate workflows, so do that. --- .github/workflows/_benchmark.yml | 10 ++++++++-- .github/workflows/_find_failures.yml | 4 ++-- .github/workflows/_generate.yml | 5 +++-- .github/workflows/_nightly.yml | 4 ++-- .github/workflows/_notify.yml | 6 ++++-- .github/workflows/_publish.yml | 26 +++++++------------------- .github/workflows/_pystats.yml | 7 +++++-- .github/workflows/_weekly.yml | 5 +++-- .github/workflows/benchmark.yml | 7 +++++-- .github/workflows/ci.yml | 4 ++-- 10 files changed, 41 insertions(+), 37 deletions(-) diff --git a/.github/workflows/_benchmark.yml b/.github/workflows/_benchmark.yml index f14c823d..535e6bfa 100644 --- a/.github/workflows/_benchmark.yml +++ b/.github/workflows/_benchmark.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _benchmark on: workflow_call: @@ -107,6 +107,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: ${{ inputs.fork }}/cpython path: cpython ref: ${{ inputs.ref }} @@ -126,6 +127,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: pyston/python-macrobenchmarks path: pyston-benchmarks ref: ${{ env.PYSTON_BENCHMARKS_HASH }} @@ -133,6 +135,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: mdboom/pyperformance path: pyperformance ref: ${{ env.PYPERFORMANCE_HASH }} @@ -215,6 +218,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: ${{ inputs.fork }}/cpython path: cpython ref: ${{ inputs.ref }} @@ -234,6 +238,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: pyston/python-macrobenchmarks path: pyston-benchmarks ref: ${{ env.PYSTON_BENCHMARKS_HASH }} @@ -241,6 +246,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: mdboom/pyperformance path: pyperformance ref: ${{ env.PYPERFORMANCE_HASH }} diff --git a/.github/workflows/_find_failures.yml b/.github/workflows/_find_failures.yml index ce45462c..7c1e1784 100644 --- a/.github/workflows/_find_failures.yml +++ b/.github/workflows/_find_failures.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _find_failures on: schedule: diff --git a/.github/workflows/_generate.yml b/.github/workflows/_generate.yml index 39b1e6ea..b835b214 100644 --- a/.github/workflows/_generate.yml +++ b/.github/workflows/_generate.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _generate on: workflow_call: @@ -36,6 +36,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: python/cpython path: cpython - name: Setup system Python diff --git a/.github/workflows/_nightly.yml b/.github/workflows/_nightly.yml index f126e84c..03cabe1f 100644 --- a/.github/workflows/_nightly.yml +++ b/.github/workflows/_nightly.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _nightly on: schedule: diff --git a/.github/workflows/_notify.yml b/.github/workflows/_notify.yml index 79ecdd51..8dc24273 100644 --- a/.github/workflows/_notify.yml +++ b/.github/workflows/_notify.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _notify on: workflow_call: @@ -37,6 +37,8 @@ jobs: - uses: technote-space/workflow-conclusion-action@v3 - name: Checkout benchmarking uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup system Python uses: actions/setup-python@v5 with: diff --git a/.github/workflows/_publish.yml b/.github/workflows/_publish.yml index 4b72b764..faf10f83 100644 --- a/.github/workflows/_publish.yml +++ b/.github/workflows/_publish.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _publish on: workflow_call: @@ -25,24 +25,12 @@ jobs: - name: Checkout benchmarking uses: actions/checkout@v4 with: - path: private ref: main - fetch-depth: 0 - - name: Checkout benchmarking-public - uses: actions/checkout@v4 - with: - path: public - ref: main - repository: ${{ github.repository }}-public + # This has to be enough depth to handle since the last time we published. + # As a rule of thumb, (number of machines * 2, plus the generated stuff) * 2 + fetch-depth: 20 token: ${{ secrets.BENCHMARK_MIRROR }} - name: Mirror run: | - cd public - git remote add upstream $PWD/../private - git fetch upstream - git reset --hard upstream/main - - name: Push - if: ${{ !inputs.dry_run }} - run: | - cd public - git push origin main + git remote add public https://github.com/${{ github.repository }}-public + git push -f public main diff --git a/.github/workflows/_pystats.yml b/.github/workflows/_pystats.yml index 7cebc36f..015eb33e 100644 --- a/.github/workflows/_pystats.yml +++ b/.github/workflows/_pystats.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _pystats on: workflow_dispatch: @@ -86,6 +86,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: ${{ inputs.fork }}/cpython ref: ${{ inputs.ref }} path: cpython @@ -104,6 +105,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: pyston/python-macrobenchmarks path: pyston-benchmarks ref: ${{ env.PYSTON_BENCHMARKS_HASH }} @@ -111,6 +113,7 @@ jobs: uses: actions/checkout@v4 if: ${{ steps.should_run.outputs.should_run != 'false' }} with: + persist-credentials: false repository: mdboom/pyperformance path: pyperformance ref: ${{ env.PYPERFORMANCE_HASH }} diff --git a/.github/workflows/_weekly.yml b/.github/workflows/_weekly.yml index c058d2ae..10506108 100644 --- a/.github/workflows/_weekly.yml +++ b/.github/workflows/_weekly.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: _weekly on: schedule: @@ -20,6 +20,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: python/cpython path: cpython ref: main diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 89293aae..c1b043df 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: benchmark run-name: benchmarking ${{ inputs.fork }}/${{ inputs.ref }} ${{ inputs.tier2 == true && 'T2' || '' }} ${{ inputs.jit == true && 'JIT' || '' }} ${{ inputs.nogil == true @@ -63,6 +63,8 @@ jobs: steps: - name: Checkout benchmarking uses: actions/checkout@v4 + with: + persist-credentials: false - name: Setup system Python uses: actions/setup-python@v5 with: @@ -71,6 +73,7 @@ jobs: - name: Checkout CPython uses: actions/checkout@v4 with: + persist-credentials: false repository: ${{ inputs.fork }}/cpython path: cpython ref: ${{ inputs.ref }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81841dd2..4051b635 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,8 @@ # Generated file: !!! DO NOT EDIT !!! --- env: - PYPERFORMANCE_HASH: ebb37f3583e26ea22cee34126b3b8a815112370b - PYSTON_BENCHMARKS_HASH: 004743ccbd9e54598c543d7eb71fd3b8e10d5750 + PYPERFORMANCE_HASH: 9164273e5504c410a5be08d8753c91be708fdd9a + PYSTON_BENCHMARKS_HASH: 265655e7f03ace13ec1e00e1ba299179e69f8a00 name: ci on: pull_request: