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

E2E o1VM testing with cached artifacts. #2700

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

E2E o1VM testing with cached artifacts. #2700

wants to merge 21 commits into from

Conversation

shimkiv
Copy link
Member

@shimkiv shimkiv commented Oct 10, 2024

Closes #2693

@shimkiv shimkiv self-assigned this Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

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

Project coverage is 72.51%. Comparing base (7592142) to head (ad4bdf1).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
o1vm/src/interpreters/mips/witness.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2700      +/-   ##
==========================================
- Coverage   72.52%   72.51%   -0.02%     
==========================================
  Files         247      247              
  Lines       57706    57707       +1     
==========================================
- Hits        41851    41845       -6     
- Misses      15855    15862       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shimkiv shimkiv marked this pull request as ready for review October 21, 2024 13:17
@shimkiv
Copy link
Member Author

shimkiv commented Oct 21, 2024

workflow_dispatch:
pull_request:
paths:
- "o1vm/**"
Copy link
Member

Choose a reason for hiding this comment

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

When we do modify other parts of the code, like poly-commitment and co, we should also run it.

echo "Preparing the file system..."
echo ""
zip -r -q o1vm-e2e-testing-cache.zip op-program-db-for-latest-l2-block \
env-for-latest-l2-block.sh \
Copy link
Member

Choose a reason for hiding this comment

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

Nit: could we instead use the block number in the name?
I know it is annoying to rebuild the docker image, so maybe later if one day we change the data.

@@ -10,6 +10,10 @@ set -u

source $FILENAME

./run-op-program.sh
./run-cannon.sh
if [ -d "op-program-db-for-latest-l2-block" ] && [ -f "env-for-latest-l2-block.sh" ] && [ -f "snapshot-state-3000000.json" ] && [ -f "meta.json" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit against this. Having this condition doesn't mean we don't want to get the latest data. I would keep this file simple.


cargo run --bin ${BINARY_FLAVOR} \
if [ -d "op-program-db-for-latest-l2-block" ] && [ -f "snapshot-state-3000000.json" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

Same as above. I would simply change how the env file is generated in the CI (?) to keep it simple.

export L2_RPC="http://localhost:8765"
fi

RUST_BACKTRACE=full cargo run --bin ${BINARY_FLAVOR} \
Copy link
Member

Choose a reason for hiding this comment

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

I would remove RUST_BACKTRACE=full.

@@ -1286,7 +1286,10 @@ impl<Fp: Field, PreImageOracle: PreImageOracleT> Env<Fp, PreImageOracle> {
let insn = self.get_opcode().unwrap();

// Approximate instruction per seconds
let how_many_steps = step as usize - start.step;
let how_many_steps = (step as usize)
Copy link
Member

Choose a reason for hiding this comment

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

You still need this even with the latest changes on master? 🤔

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.

Limit the external dependencies to be used during the E2E testing (reuse oracle / block data)
2 participants