-
Notifications
You must be signed in to change notification settings - Fork 205
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
LF: Drop Builtin Exceptions completly #9790
Conversation
782436d
to
e31aaec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
daml-lf/archive/src/main/protobuf/com/daml/daml_lf_dev/daml_lf_1.proto
Outdated
Show resolved
Hide resolved
@@ -176,15 +176,14 @@ private[speedy] sealed abstract class SBuiltin(val arity: Int) { | |||
) | |||
} | |||
|
|||
final protected def getSException(args: util.ArrayList[SValue], i: Int): SException = | |||
final protected def getSException(args: util.ArrayList[SValue], i: Int): SAnyException = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth renaming this function getSAnyException
daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/SValue.scala
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The one issue in this approach that I could come up with after thinking about it for a while is that if we start exposing unhandled exceptions on the ledger API we will produce values for which the ledger might not have a Dalf. I don’t expect that to be that big of an issue in practice but it is a bit annoying.
daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/SValue.scala
Show resolved
Hide resolved
daml-lf/interpreter/src/main/scala/com/digitalasset/daml/lf/speedy/SValue.scala
Show resolved
Hide resolved
CHANGELOG_BEGIN CHANGELOG_END
…_1.proto Co-authored-by: Sofia Faro <sofia.faro@digitalasset.com>
e295910
to
e7e78dc
Compare
e7e78dc
to
b44f8b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR has been created by a script, which is not very smart and does not have all the context. Please do double-check that the version prefix is correct before merging. @cocreature is in charge of this release. Commit log: ``` 7d716e6 Try to unflake JSON API failure tests (#9855) 2d49939 Fix the notion of transaction equivalence in the ledger model for exceptions. (#9850) fd8f8a6 Daml-lf suffixCid ignores V0 contract ids rather than erroring (#9867) e38bb4a Make data-deps exception tests version-aware. (#9870) 94129b2 Add tests for decoding of UpdateTryCatch (#9865) 1cc0906 Adda test for an unhandled builtin exception to ExceptionTest.scala (#9866) d7c60f5 resources: Only mutate test mock objects inside `synchronized` blocks. (#9869) 3a0b2f9 remove 2x 8020 todo tags (#9868) 1595f06 Special case _tryCatch @update in LFConversion. (#9864) c0359ac Add trace context propagation in CommandClient.trackCommandsUnbounded [KVL-961] (#9833) 2a1e1ba Add a Foldable instance for Set (#9860) 590b8b3 Reshuffle tests for AnyExceptionMessage (#9863) 89bd478 Reenable AnyException tests in ExceptionTest.scala (#9861) 1573984 Include rollback nodes in danglingRefGenNode (#9851) e5d4553 Remove flyway warning when using the append-only schema (#9840) a4e33c9 Add metrics to parallel indexer (#9841) 972af2a Test To/FromAnyException primitives in DecodeV1Spec (#9852) 5f4f019 update NOTICES file (#9859) f5f2a8a Remove obsolete transaction todo (#9853) 8fc4543 Uniform configuration of the command service across all ledgers (#9839) 1f4a958 ledger-api-bench-tool - single-value metrics (#9822) 6a1c797 ledger-api-bench-tool: TLS support (#9824) 5528347 Test TransactionsReader.getContractStateEvents within the JDBC DAO suite (#9849) 6af6c93 Fix behavior of Math.sqrt at 0 (#9818) (#9828) 7855ea5 Switch to Ubuntu 20.04 nodes for ghc lib (#9838) c0fccfc Switch Scala version Bazel config (#9848) e033277 Switch to our own nodes for releases (#9845) b6a89a6 Bump ws to address security advisory (#9844) 25b7e54 Only resolve template id once (#9837) a645971 Enable mutable-contract-state-cache for ledger-on-SQL append-only tests (#9836) dcd33a7 Add a section on exceptions to the Daml intro (#9832) 859cae3 [Mutable contract state cache] Tests for contract/key state new methods in ContractsReader (#9825) ffe5586 Track oldChild in PartialTransaction context (#9815) 6e17e2d [In memory fan-out] Transaction log updates stream implementation (#9792) a0373c4 Ledger model section on transaction normalization. (#9816) f355931 Fix typeclass detection in data-dependencies (#9830) 9626a59 Speedy: Clean SBuiltin (#9829) 269237e Fix authorization in try contexts (#9823) cb06fb3 `ledger-api-bench-tool` - min consumption speed SLO [DPP-401] (#9808) 0868324 update NOTICES file (#9827) a166e79 Added maxlength information to id string (#9826) 63bc0d1 EventsBuffer implementation for in-memory fan-out for Ledger API serving (#9775) 0c12259 Speedy: Use SAny instead of SAnyException to reperesent AnyExcpetion (#9819) 6caa61c participant-state: rejection reason abstractions (#9764) 63c471f Upgrade protobuf-java and scalapb. [KVL-938] (#9713) f177c1a `ledger-api-bench-tool` - Moved classes to individual files [DPP-401] (#9803) a3b10dc LF: fix parser (#9809) 9f55da8 update NOTICES file (#9812) 6846dbf update compat versions for 1.14.0-snapshot.20210526.7024.0.aedb9a82 (#9806) 1f021b2 LF: Drop Builtin Exceptions completly (#9790) ea5b710 rotate release duty after 1.14.0-snapshot.20210525.7017.0.2710fad0 (#9795) 0c7b149 Add reference docs for exceptions (#9807) 6b67ba0 LF: SBAnyExceptionMessage queries for unknown packages. (#9804) fdab1e6 Parallelize daml-assistant integration tests. (#9802) 2e9c56e DPP-393 Activate JdbcLedgerDao suite for the append-only schema (#9793) 274fcae release 1.14.0-snapshot.20210525.7017.0.2710fad0 (#9801) 3241ad6 `ledger-api-bench-tool` - updated metrics reporting model [DPP-400] (#9749) ``` Changelog: ``` Modify command line options of the ledgers based on the kvutils/app library: - Remove max-commands-in-flight sub-option from the participant group. - Add command service configuration options in line with sandbox and daml-on-sql: max-commands-in-flight, max-parallel-submissions, input-buffer-size - [Integration Kit] - TLS support for the ledger-api-bench-tool [Daml Compiler] Ensure that sqrt(0.0) == 0 and 0 ** 0 == 1 - [Integration Kit] - ledger-api-bench-tool - new consumption speed service-level objective for the ledger-api-bench-tool, configurable with a CLI parameter --min-consumption-speed - Participant-state: Introduced versioned form of rejection reason - [Integration Kit] - ledger-api-bench-tool - new parameter max-delay for specifying the service-level objective for max delay ``` CHANGELOG_BEGIN CHANGELOG_END
This PR has been created by a script, which is not very smart and does not have all the context. Please do double-check that the version prefix is correct before merging. @cocreature is in charge of this release. Commit log: ``` 7d716e6 Try to unflake JSON API failure tests (#9855) 2d49939 Fix the notion of transaction equivalence in the ledger model for exceptions. (#9850) fd8f8a6 Daml-lf suffixCid ignores V0 contract ids rather than erroring (#9867) e38bb4a Make data-deps exception tests version-aware. (#9870) 94129b2 Add tests for decoding of UpdateTryCatch (#9865) 1cc0906 Adda test for an unhandled builtin exception to ExceptionTest.scala (#9866) d7c60f5 resources: Only mutate test mock objects inside `synchronized` blocks. (#9869) 3a0b2f9 remove 2x 8020 todo tags (#9868) 1595f06 Special case _tryCatch @update in LFConversion. (#9864) c0359ac Add trace context propagation in CommandClient.trackCommandsUnbounded [KVL-961] (#9833) 2a1e1ba Add a Foldable instance for Set (#9860) 590b8b3 Reshuffle tests for AnyExceptionMessage (#9863) 89bd478 Reenable AnyException tests in ExceptionTest.scala (#9861) 1573984 Include rollback nodes in danglingRefGenNode (#9851) e5d4553 Remove flyway warning when using the append-only schema (#9840) a4e33c9 Add metrics to parallel indexer (#9841) 972af2a Test To/FromAnyException primitives in DecodeV1Spec (#9852) 5f4f019 update NOTICES file (#9859) f5f2a8a Remove obsolete transaction todo (#9853) 8fc4543 Uniform configuration of the command service across all ledgers (#9839) 1f4a958 ledger-api-bench-tool - single-value metrics (#9822) 6a1c797 ledger-api-bench-tool: TLS support (#9824) 5528347 Test TransactionsReader.getContractStateEvents within the JDBC DAO suite (#9849) 6af6c93 Fix behavior of Math.sqrt at 0 (#9818) (#9828) 7855ea5 Switch to Ubuntu 20.04 nodes for ghc lib (#9838) c0fccfc Switch Scala version Bazel config (#9848) e033277 Switch to our own nodes for releases (#9845) b6a89a6 Bump ws to address security advisory (#9844) 25b7e54 Only resolve template id once (#9837) a645971 Enable mutable-contract-state-cache for ledger-on-SQL append-only tests (#9836) dcd33a7 Add a section on exceptions to the Daml intro (#9832) 859cae3 [Mutable contract state cache] Tests for contract/key state new methods in ContractsReader (#9825) ffe5586 Track oldChild in PartialTransaction context (#9815) 6e17e2d [In memory fan-out] Transaction log updates stream implementation (#9792) a0373c4 Ledger model section on transaction normalization. (#9816) f355931 Fix typeclass detection in data-dependencies (#9830) 9626a59 Speedy: Clean SBuiltin (#9829) 269237e Fix authorization in try contexts (#9823) cb06fb3 `ledger-api-bench-tool` - min consumption speed SLO [DPP-401] (#9808) 0868324 update NOTICES file (#9827) a166e79 Added maxlength information to id string (#9826) 63bc0d1 EventsBuffer implementation for in-memory fan-out for Ledger API serving (#9775) 0c12259 Speedy: Use SAny instead of SAnyException to reperesent AnyExcpetion (#9819) 6caa61c participant-state: rejection reason abstractions (#9764) 63c471f Upgrade protobuf-java and scalapb. [KVL-938] (#9713) f177c1a `ledger-api-bench-tool` - Moved classes to individual files [DPP-401] (#9803) a3b10dc LF: fix parser (#9809) 9f55da8 update NOTICES file (#9812) 6846dbf update compat versions for 1.14.0-snapshot.20210526.7024.0.aedb9a82 (#9806) 1f021b2 LF: Drop Builtin Exceptions completly (#9790) ea5b710 rotate release duty after 1.14.0-snapshot.20210525.7017.0.2710fad0 (#9795) 0c7b149 Add reference docs for exceptions (#9807) 6b67ba0 LF: SBAnyExceptionMessage queries for unknown packages. (#9804) fdab1e6 Parallelize daml-assistant integration tests. (#9802) 2e9c56e DPP-393 Activate JdbcLedgerDao suite for the append-only schema (#9793) 274fcae release 1.14.0-snapshot.20210525.7017.0.2710fad0 (#9801) 3241ad6 `ledger-api-bench-tool` - updated metrics reporting model [DPP-400] (#9749) ``` Changelog: ``` Modify command line options of the ledgers based on the kvutils/app library: - Remove max-commands-in-flight sub-option from the participant group. - Add command service configuration options in line with sandbox and daml-on-sql: max-commands-in-flight, max-parallel-submissions, input-buffer-size - [Integration Kit] - TLS support for the ledger-api-bench-tool [Daml Compiler] Ensure that sqrt(0.0) == 0 and 0 ** 0 == 1 - [Integration Kit] - ledger-api-bench-tool - new consumption speed service-level objective for the ledger-api-bench-tool, configurable with a CLI parameter --min-consumption-speed - Participant-state: Introduced versioned form of rejection reason - [Integration Kit] - ledger-api-bench-tool - new parameter max-delay for specifying the service-level objective for max delay ``` CHANGELOG_BEGIN CHANGELOG_END Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
part of #8020.
Pull Request Checklist
CHANGELOG_BEGIN
andCHANGELOG_END
tagsNOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with
/AzurePipelines run
totrigger the build.