Commit Graph

27 Commits

Author SHA1 Message Date
dylant-da
069f1c060a
Upgrade validation warnings to errors flag (#19259)
* Split errors into errors that can turn into warnings (or vice versa)

* Add warn-bad-interface-instances flag

* fix compilation errors, finish implementation of swap

* Add tests for warn-bad-interface-instances flag

* Bump - try to rebuild?

run-all-tests: true

* Don't do single-package checks if typecheck-upgrades: true

* Fix tests that break on warn-bad-interface-instances

* Lint

* Move WEWarningToError to Error type, remove commented code

Also:
- Mark integration tests as flaky again
- Whitespace

* Check errors & warns aren't emitted when upgrades/typechecking disabled

* Update error message & expected error message
2024-07-10 14:44:29 +00:00
Remy
34034d3d0e
[LF] use stable Tuple for fecth_by_key primitive (#19537) 2024-07-10 15:45:37 +02:00
Remy
2871090358
move proto archive in com.digitalasset (#19497) 2024-07-09 17:15:30 +02:00
azure-pipelines[bot]
6996fa07c1
update canton to 20240708.13628.v22bd0def (#19536)
* update canton to 20240708.13628.v22bd0def

tell-slack: canton

* merge fix

* participant got renamed to participant_uid in proto

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Bas van Gijzel <bas.vangijzel@digitalasset.com>
2024-07-09 15:39:12 +01:00
Simon Maxen
9f1b9886e2
Rename com.daml.lf to com.digitalasset.daml.lf (#19431)
* Rename com.daml => com.digitalasset.daml for lf
2024-06-25 18:20:04 +00:00
azure-pipelines[bot]
679bdc9cd2
update canton to 20240618.13495.v4816e0c2 (#19407)
* update canton to 20240618.13495.v4816e0c2

tell-slack: canton

* fix build

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2024-06-19 15:12:29 +02:00
Carl Pulley
dcb8588a65
Script should rely on the ledger to manager max message size (#19402) 2024-06-18 16:51:14 +01:00
azure-pipelines[bot]
ce50fa26b1
update canton to 20240606.13448.v43783c88 (#19344)
* update canton to 20240606.13448.v43783c88

tell-slack: canton

* Commit to cherry-pick.

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Andreas Triantafyllos <andreas.triantafyllos@digitalasset.com>
2024-06-10 00:03:29 +02:00
azure-pipelines[bot]
ce8f2ff7ca
update canton to 20240604.13433.v3a5bd3e2 (#19336)
* update canton to 20240604.13433.v3a5bd3e2

tell-slack: canton

* Fix compilation issue due to admin API change

* Fix DisclosedContract processing by using correct TransactionVersion

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Marton Nagy <marton.nagy@digitalasset.com>
Co-authored-by: Tudor Voicu <tudor.voicu@digitalasset.com>
2024-06-05 18:18:17 +02:00
Remy
b06a9e836e
[LF] add packageVersion to Create Node, and Contract Instance (#19243) 2024-05-22 15:40:13 +02:00
Samuel Williams
c584588a81
Daml-Script changes for 2.9 (forward port) (#19223)
* First set of tweaks

* Implement package preference in daml3-script
2024-05-22 10:56:18 +01:00
azure-pipelines[bot]
1064fff281
update canton to 20240516.13312.vd8490aac (#19227)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Marcin Ziolek <marcin.ziolek@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-05-17 11:22:43 +00:00
Paul Brauner
31453459fe
Fix disclosure bug in the presence of upgrades (#19167)
* repro of #19162 as a test and fix for daml3

* use a different party for exercising a choice on the disclosed contract

* factorize TemplateTypeRep svalue creation

* Move makePair/makeTriplet to Converter.makeTuple
2024-05-14 15:51:50 +00:00
Simon Maxen
283e801c8f
Sync package name and directory (#19129)
* Add scala subdirectory for consistency

* Move files to match package
2024-05-02 09:27:19 +01:00
azure-pipelines[bot]
71cea0bd86
update canton to 20240426.13186.vafd3a931 (#19106)
* update canton to 20240426.13186.vafd3a931

tell-slack: canton

* Fix Tls dependencies

* Expect updated format for upgrade error message from canton #18816

* Fix release artifacts

* add maven coordinates to tls

* hopefully the final fix of the tls project

* disable test on Arm Linux

* lint

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Marcin Ziolek <marcin.ziolek@digitalasset.com>
Co-authored-by: Dylan Thinnes <dylan.thinnes@digitalasset.com>
2024-04-29 17:56:28 +02:00
azure-pipelines[bot]
5ac359d446
update canton to 20240423.13156.v75d9d2d6 (#19088)
* update canton to 20240423.13156.v75d9d2d6

tell-slack: canton

* handle pagination in ListKnownParties

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2024-04-24 18:36:04 +02:00
Simon Maxen
05212c9fd4
Cleanup GlobalKey use (#19027)
* Cleanup GlobalKey use

* With canton one line fix

* Update with review comments

* Add packageName to GlobalKey.toString
2024-04-18 15:00:52 +01:00
Remy
54cfdfb5de
[Engine] Simplify Compiled packages (#19007) 2024-04-16 16:06:42 +02:00
azure-pipelines[bot]
0ec879853e
update canton to 20240405.13039.vc7eec3f0 (#18948)
* update canton to 20240405.13039.vc7eec3f0

tell-slack: canton

* fix build

* remove usages of tink in the canton config

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2024-04-08 15:31:20 +02:00
Remy
9c3ceab776
Test for LF V1 Archive Reader (#18946)
* Test for LF V1 Archive Reader

* Update sdk/daml-lf/api-type-signature/src/test/scala/lf/typesig/reader/SignatureReaderSpec.scala
2024-04-08 11:00:42 +02:00
Simon Maxen
6eb409f898
Pass package-name into GlobalKey construction (#18927)
* Pass package-name into GlboalKey construction
2024-04-08 09:36:38 +01:00
Paul Brauner
cf2b387c3b
Disallow keys in LF 2.1 in the compiler (#18886)
* Disable keys in LfConversion.

* fix UnusedMatchTests.daml in integration-v21

* fix //compiler/damlc/tests:upgrades

* stop compiling daml tests that use keys with 2.1

* migrate the upgrade examples to 2.dev as they use keys

* only compile daml-script/tests dar using keys to 2.dev

* do not compile daml-script/test daml files that use keys to 2.1

* fix //docs:bindings-java-daml-test

* add TODOs everywhere tests need to be split

* add a tests that checks that contract keys are rejected for LF<2.dev

* remove keys from compatibility tests

* Add the qualified template name to the keys not supported error message
2024-04-03 16:24:22 +02:00
Remy
e378a0f221
partial revert of [LF] drop retroactive interface instance #18282 (#18876)
* refactor bazel LF versions

* partial revert of [LF] drop retroactive interface instance #18282

recover retroacive instance in
- AST
- api-type-signature

* fmt

* Apply suggestions from code review

Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>

* address Paul's review

---------

Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>
2024-04-02 10:11:36 +00:00
Remy
24a9e9f99f
Recreate LF major version 1 (#18833) 2024-03-26 09:06:35 +01:00
azure-pipelines[bot]
e09d7c3d6e
update canton to 20240325.12966.v2a7db959 (#18859)
* update canton to 20240325.12966.v2a7db959

tell-slack: canton

* Remove enable-contract-upgrading flag from Canton runner

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Tudor Voicu <tudor.voicu@digitalasset.com>
2024-03-25 21:15:37 +01:00
Simon Maxen
6e5763b40f
Port upgrading changes from 2.x (#18733)
Includes:
Pass package resolution into reinterpret (#18286)
Enable upgrading based on language version (#18239)
2024-03-22 12:12:15 +00:00
Gary Verhaegen
e40aad897f
move to subdir 3.0 (#18520)
* move most files

* update CI configuration
2024-03-22 02:27:46 +01:00