Skip to content

Commit d3cdec0

Browse files
test change
Signed-off-by: Spencer Schrock <[email protected]>
1 parent b1866d4 commit d3cdec0

File tree

3 files changed

+25
-35
lines changed

3 files changed

+25
-35
lines changed

.github/workflows/bench.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
with:
5656
containerfiles: |
5757
./benchmarks/Containerfile
58-
image: ghcr.io/sigstore/model-transparency-benchmarks
58+
image: ghcr.io/spencerschrock/model-transparency-benchmarks
5959
tags: "latest ${{ steps.config.outputs.head }}"
6060
archs: amd64
6161
oci: false
@@ -75,26 +75,26 @@ jobs:
7575
image: ${{ steps.build_image.outputs.image }}
7676
tags: ${{ steps.build_image.outputs.tags }}
7777
registry: ghcr.io
78-
submit-cloud-batch:
79-
needs: publish-benchmark-container
80-
runs-on: ubuntu-latest
81-
permissions:
82-
id-token: 'write'
83-
env:
84-
TAG: ${{needs.publish-benchmark-container.outputs.head}}
85-
steps:
86-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
87-
with:
88-
ref: ${{needs.publish-benchmark-container.outputs.head}}
89-
- uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
90-
with:
91-
workload_identity_provider: projects/306323169285/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
92-
service_account: 'model-transparency-gha@sigstore-infra-playground.iam.gserviceaccount.com'
93-
- run: |
94-
gcloud batch jobs submit \
95-
--job-prefix=bench \
96-
--project sigstore-infra-playground \
97-
--location us-central1 \
98-
--config - <<EOF
99-
$(envsubst '$TAG' < benchmarks/cloud_batch.json)
100-
EOF
78+
# submit-cloud-batch:
79+
# needs: publish-benchmark-container
80+
# runs-on: ubuntu-latest
81+
# permissions:
82+
# id-token: 'write'
83+
# env:
84+
# TAG: ${{needs.publish-benchmark-container.outputs.head}}
85+
# steps:
86+
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
87+
# with:
88+
# ref: ${{needs.publish-benchmark-container.outputs.head}}
89+
# - uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
90+
# with:
91+
# workload_identity_provider: projects/306323169285/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
92+
# service_account: 'model-transparency-gha@sigstore-infra-playground.iam.gserviceaccount.com'
93+
# - run: |
94+
# gcloud batch jobs submit \
95+
# --job-prefix=bench \
96+
# --project sigstore-infra-playground \
97+
# --location us-central1 \
98+
# --config - <<EOF
99+
# $(envsubst '$TAG' < benchmarks/cloud_batch.json)
100+
# EOF

benchmarks/cloud_batch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"runnables": [
66
{
77
"container": {
8-
"imageUri": "ghcr.io/sigstore/model-transparency-benchmarks:${TAG}",
8+
"imageUri": "ghcr.io/spencerschrock/model-transparency-benchmarks:${TAG}",
99
"entrypoint": "/bin/sh",
1010
"commands": [
1111
"-c",

benchmarks/exp_hash.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ def build_parser() -> argparse.ArgumentParser:
5858
return parser
5959

6060

61-
def _human_size(size: int) -> str:
62-
if size >= GB:
63-
return str(size / GB) + " GB"
64-
elif size >= MB:
65-
return str(size / MB) + " MB"
66-
elif size >= KB:
67-
return str(size / KB) + " KB"
68-
return str(size) + " B"
69-
70-
7161
def _get_hasher(hash_algorithm: str) -> hashing.StreamingHashEngine:
7262
# TODO: Once Python 3.9 support is deprecated revert to using `match`
7363
if hash_algorithm == "sha256":

0 commit comments

Comments
 (0)