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

Remove needless sierra saving #2637

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Conversation

piotmag769
Copy link
Member

@piotmag769 piotmag769 commented Nov 2, 2024

Closes #2355

I was bored during a weekend, don't ask xD

Introduced changes

  • Stop saving sierra for no reason - it made sense in the past, now Scarb gives us sierra files with only relevant VersionedProgram out of the box.

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Performed self-review of the code
  • Added changes to CHANGELOG.md

Copy link
Contributor

@ddoktorski ddoktorski left a comment

Choose a reason for hiding this comment

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

Generally the change looks good, but it seems to break coverage as it currently relies on the Sierra path to get the project root so it would be necessary to address this first

@piotmag769
Copy link
Member Author

@ksew1 is supposed to fix this

@cptartur
Copy link
Member

@piotmag769 @ksew1 Please re-request review as related issue is resolved and tests are passing

ksew1 added a commit to software-mansion/cairo-coverage that referenced this pull request Nov 18, 2024
)

<!-- Reference any GitHub issues resolved by this PR -->

Related foundry-rs/starknet-foundry#2637

## Introduced changes

<!-- A brief description of the changes -->

- Allowed raw sierra to be in `target/dev` directory
- Updated error messages

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [ ] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
Copy link
Member Author

@piotmag769 piotmag769 left a comment

Choose a reason for hiding this comment

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

LGTM (my PR)

crates/forge/src/test_filter.rs Show resolved Hide resolved
Copy link
Member

@cptartur cptartur left a comment

Choose a reason for hiding this comment

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

👍
image

But please address the comment about Default

@cptartur
Copy link
Member

cc @ddoktorski

@ddoktorski
Copy link
Contributor

But please address the comment about Default

#2775

@ddoktorski ddoktorski added this pull request to the merge queue Dec 13, 2024
Merged via the queue into master with commit f754b9f Dec 13, 2024
26 checks passed
@ddoktorski ddoktorski deleted the remove-needless-sierra-saving branch December 13, 2024 13:14
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.

Refactor snforge to Reuse Existing Sierra File Paths for cairo-profiler Input
4 participants