Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Get back coverage data using cardano-ledger.#801

Merged
8 commits merged intomainfrom
coverage-bug
Nov 7, 2022
Merged

Get back coverage data using cardano-ledger.#801
8 commits merged intomainfrom
coverage-bug

Conversation

@ghost
Copy link

@ghost ghost commented Nov 3, 2022

In #642 we have switched to cardano-ledger validation rules and we had to turn off the gathering of coverage data as it was unavailable for us anymore since we haven't been running scripts by ourselves — we were using the cardano-ledger library instead.

This PR bumps the cardano-ledger to a version with evaluateTransactionExecutionUnitsWithLogs — function that exports the trace logs from the scripts executed during the validation phase and reintegrates back the logs into our pipeline.

Fixes #768.

Starts tracking the release/1.0.x-plutus-tools branch.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reference the ADR in the PR and reference the PR in the ADR (if revelant)
    • Reviewer requested

@ghost ghost marked this pull request as ready for review November 7, 2022 11:20
@ghost ghost requested review from berewt, koslambrou and sjoerdvisscher November 7, 2022 11:27
@@ -1,4 +1,4 @@
Slot 0: TxnValidate 43ba666cc8a22a04b63a3b605ce14146dfa5ed999986625ad90c1bc16dabdd84
Slot 0: TxnValidate 43ba666cc8a22a04b63a3b605ce14146dfa5ed999986625ad90c1bc16dabdd84 [ ]
Copy link
Contributor

@sjoerdvisscher sjoerdvisscher Nov 7, 2022

Choose a reason for hiding this comment

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

Why is this [ ] and not []? Did we log spaces?

Copy link
Author

Choose a reason for hiding this comment

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

That's interesting, I don't see tracing in the crowdfunding contract.

@ghost ghost merged commit 97b4c1d into main Nov 7, 2022
@ghost ghost deleted the coverage-bug branch November 7, 2022 16:45
@ghost ghost mentioned this pull request Nov 15, 2022
8 tasks
@ghost ghost mentioned this pull request Mar 13, 2023
8 tasks
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage Reports No Longer Working for Contract Models

1 participant