Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI - Prover Performance metric fix - 2 #584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

MdTeach
Copy link
Contributor

@MdTeach MdTeach commented Jan 2, 2025

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency Update

Notes to Reviewers

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.

Related Issues

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 56.50%. Comparing base (7b9d76c) to head (e2a15f4).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
provers/perf/src/main.rs 0.00% 4 Missing ⚠️
@@           Coverage Diff           @@
##             main     #584   +/-   ##
=======================================
  Coverage   56.50%   56.50%           
=======================================
  Files         314      316    +2     
  Lines       31957    31983   +26     
=======================================
+ Hits        18057    18073   +16     
- Misses      13900    13910   +10     
Files with missing lines Coverage Δ
provers/perf/src/main.rs 0.00% <0.00%> (ø)

... and 24 files with indirect coverage changes

.github/workflows/prover.yml Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jan 3, 2025

Commit: 292bdb9

SP1 Performance Test Results

program cycles success
BTC_BLOCKSPACE 7,251,326
EL_BLOCK 100,761
CL_BLOCK 55,512
L1_BATCH 23,221
L2_BATCH 11,446
CHECKPOINT 16,119

@MdTeach MdTeach marked this pull request as ready for review January 3, 2025 14:15
@MdTeach MdTeach requested review from a team as code owners January 3, 2025 14:15
@MdTeach MdTeach requested a review from storopoli January 3, 2025 15:46
Copy link
Member

@storopoli storopoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think is possible to save the "mustached" stuff ${{ foo.BAR }} in an env then use that env instead in

- name: Run performance evaluation
run: |
cargo run --profile prover-ci -- \
--post-to-gh \
--github-token "${{ secrets.GITHUB_TOKEN }}" \
--pr-number "${{ github.event.pull_request.number }}" \
--commit-hash "${{ github.sha }}" \
working-directory: provers/perf
env:
RUSTFLAGS: "-C target-cpu=native -C link-arg=-fuse-ld=lld"

We use that in

env:
NIGHTLY_DATE: ${{ env.nightly_date }}
with:
author: Update Nightly Rustc Bot <[email protected]>
committer: Update Nightly Rustc Bot <[email protected]>
title: Automated update to rustc (to nightly-$NIGHTLY_DATE)
body: |
Automated update to Rust nightly by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: Automated update to Rust nightly-$NIGHTLY_DATE
branch: create-pull-request/automated-nightly-update

This will greatly reduce the command injection attack surface.

See https://woodruffw.github.io/zizmor/audits/#template-injection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants