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

Fix failing tests #4

Merged
merged 29 commits into from
Jun 6, 2024
Merged

Fix failing tests #4

merged 29 commits into from
Jun 6, 2024

Conversation

whichqua
Copy link
Contributor

@whichqua whichqua commented Jun 3, 2024

Type

  • feature
  • bugfix
  • dev (no functional changes, no API changes)
  • fmt (formatting, renaming)
  • build
  • docs
  • testing

Description

This attempts to get all the tests passing.

Pending Tasks

  • Get all the tests passing.
  • Add sub-module for cairo-programs to allow external deps

Breaking changes?

  • yes
  • no

odesenfans and others added 24 commits May 23, 2024 11:13
Problem: Starkware devs want to use the bootloader with upstream
cairo-vm for their own use case.

Solution: migrate all hints from our fork of `cairo-vm` and add a
`BootloaderHintProcessor` struct that users can then import and add to
their own hint processing logic.

Limitations:
* the tests do not work yet, we need to modify test code that relies on
  internal cairo-vm test macros.
* the bootloader is not yet compiled and provided as part of the
  library.
Problem: Starkware devs want to use the bootloader with upstream
cairo-vm for their own use case.

Solution: migrate all hints from our fork of `cairo-vm` and add a
`BootloaderHintProcessor` struct that users can then import and add to
their own hint processing logic.

Limitations:
* the tests do not work yet, we need to modify test code that relies on
  internal cairo-vm test macros.
* the bootloader is not yet compiled and provided as part of the
  library.
@whichqua whichqua marked this pull request as ready for review June 5, 2024 13:56
Copy link
Contributor

@odesenfans odesenfans left a comment

Choose a reason for hiding this comment

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

Good work! What remains:

  1. Seems like you had some issues in your rebase, lots of code that remains from my initial branch but was refactored on main in the meantime.
  2. Clean up the macros

resources/bootloader-0.13.1.json Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
scripts/compile-bootloader.sh Outdated Show resolved Hide resolved
scripts/compile-bootloader.sh Outdated Show resolved Hide resolved
src/hints/hint_processor.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@whichqua whichqua requested a review from odesenfans June 6, 2024 10:25
Copy link
Contributor

@odesenfans odesenfans left a comment

Choose a reason for hiding this comment

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

One more macro to remove, all good besides that!

src/macros.rs Outdated
}};
}
#[macro_export]
macro_rules! references {
Copy link
Contributor

Choose a reason for hiding this comment

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

This macro is unused.

@odesenfans odesenfans merged commit 9b3715c into main Jun 6, 2024
4 checks passed
@odesenfans odesenfans deleted the feat/fix-tests branch June 6, 2024 13:04
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.

2 participants