Commit Graph

12546 Commits

Author SHA1 Message Date
Remy
2df23a6378
2.8.0 snapshot release (#17808) 2023-11-13 14:26:53 +01:00
mziolekda
255da35e2b
Remove deprecated fields (#17740)
* align canton bazel rule with DACH-NY/canton#15189

* formatting

* modify grpc

* fix LAPITT

* make triggers and java bindings compile

* fix compatibility
run-full-compat: true

---------

Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2023-11-13 13:58:58 +01:00
Samuel Williams
0e574dbd29
Further upgrades tests (#17735)
* Further upgrades tests

* Add ticket to TODO
2023-11-13 09:05:02 +00:00
Raphael Speyer
454159e445
http-json-perf: simplify BUILD file and remove dep on akka Uri type (#17804)
* simplify BUILD file and remove dep on akka Uri type

* put scalacopts back

---------

Co-authored-by: = <=>
2023-11-13 09:10:40 +01:00
Marton Nagy
78cc750714
Scala upgrade to 2.13.11 (#17803) 2023-11-13 09:05:39 +01:00
Paul Brauner
7d1521eeca
Port daml repl to LF2 (#17750)
* add an lf-major-version flag to the repl service and pass it from the haskell client

* test LF2 in the daml-repl tests

* formatting

* formatting

* remove obsolete TODO

* fix //compiler/damlc/tests:repl

* port repl-functests to LF v2

* do not assume that LFV2 => dev

* address Moises' comments
2023-11-10 18:17:48 +00:00
Paul Brauner
e61edb80f4
Revert "Support both LF v1 and v2 in triggers. (#17586)" (#17802)
This reverts commit 0850566553.
2023-11-10 17:52:57 +00:00
Moisés Ackerman
d52a42ff52
Handle fetch node actors correctly in scenario-service (#17734)
* Add failing tests

"'bank' fetches" should be "'alice' fetches" in the ledger output when 'alice' is the divulging party

* Handle fetch node actors correctly in scenario-service

* Handle fetch node actors correctly in lf-interpreter pretty printer
2023-11-10 14:17:23 +00:00
Samuel Williams
efbe746554
Fix daml3-script 1.dev error (#17801) 2023-11-10 14:17:09 +00:00
Raphael Speyer
c19f52ce38
remove build dependency on akka from http-json-perf tests (#17798)
In doing so, we disable the automatic production of the extra reports from gatling results.
These can be re-enabled in future if they're considered valuable.
2023-11-10 21:38:35 +11:00
Paul Brauner
0850566553
Support both LF v1 and v2 in triggers. (#17586) 2023-11-10 11:34:20 +01:00
azure-pipelines[bot]
bbca149164
update canton to 20231109.11499.0.v631cbdc5/2.8.0-snapshot.20231109.11499.0.v631cbdc5 (#17799)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-10 08:16:31 +00:00
Remy
6ef062dac9
Revert "Nmarton/pekko rebased (#17789)" (#17796)
This reverts commit d310692d1b.

@remyhaemmerle-da messed up and merged the PR too fast.
2023-11-09 21:23:18 +00:00
Marton Nagy
d310692d1b
Nmarton/pekko rebased (#17789)
* Scala upgrade to 2.13.11
* Switch from akka to pekko
* Also disable gatling based libs to start from a clean stage
2023-11-09 18:17:33 +01:00
Moisés Ackerman
495c0a0192
Fix daml3-script query question timeouts (#17792)
* Add failing test

* Add failing daml3-script+grpc test

* ScriptF:parse expects 'QueryACS' instead of 'Query' for 'query' question
2023-11-09 17:12:09 +01:00
azure-pipelines[bot]
f768a3348f
update canton to 20231108.11487.0.vf0edabf4/2.8.0-snapshot.20231108.11487.0.vf0edabf4 (#17787)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
Co-authored-by: Marcin Ziolek <marcin.ziolek@digitalasset.com>
2023-11-09 17:05:19 +01:00
Paul Brauner
b31eb7f12f
Bump netty to 4.1.100 (#17791) 2023-11-09 17:03:03 +01:00
Paul Brauner
060932499b
Bump gRPC-haskell and delete obsolete patches (#17790) 2023-11-09 14:27:44 +01:00
Samuel Williams
d1f46a3e23
Implement tryCommands for internal testing (#17715) 2023-11-09 12:35:41 +00:00
azure-pipelines[bot]
1aa89f9420
update NOTICES file (#17788)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-09 11:37:02 +01:00
Paul Brauner
32c662671e
bump proto3 suite (#17780)
* rename daml_lf_{n}.proto to daml_lf{n}.proto

* bump proto3-suite to the latest version

* pin stackage packages on windows
2023-11-08 20:12:03 +01:00
Gary Verhaegen
444536ba24
fix daily canton bump (#17781) 2023-11-08 16:30:00 +00:00
Simon Maxen
ba34290e23
Inject language version lookup into gRPC error parsing (#17767) 2023-11-08 14:49:53 +00:00
Gary Verhaegen
5e6a985ee0
nix: bump pg to 12 (#17779)
Bringing it in line with the one on Windows.
2023-11-08 14:57:25 +01:00
Gary Verhaegen
e8ef96fdc5
infra: update gcp permissions (#17778) 2023-11-08 11:35:27 +00:00
azure-pipelines[bot]
cb5315ea03
update NOTICES file (#17776)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-08 11:05:54 +01:00
Remy
ac2250712f
"[LF] drop transaction version < 14 (#17690) 2023-11-08 08:54:38 +01:00
Remy
03a51e65c9
[Speedy] add an activness check before inserting a Lookup node. (#17768)
We are already checking for activeness when we insert are a Fetch or an Exercise 
node, for consistency we add the check when inserting Lookup node.

Note that, as for the Fetch and Exercise node, this is a sanity check, the engine 
should never try to insert a successful lookup node for a contract that is inactive
2023-11-07 22:03:23 +00:00
Remy
851ac87015
fix typo "sey" in a message error (#17764)
Co-authored-by: Meriam Lachkar <meriam.lachkar@digitalasset.com>
2023-11-07 20:55:23 +01:00
Paul Brauner
313b789731
Bump netty and grpc-netty (#17770)
* pin dependencies to json and add missing dep

* fix cyclic dep

* remove unused dep

* add missing dep to //ledger-api/testing-utils:testing-utils

* remove unused dep in //ledger/ledger-api-auth:ledger-api-auth

* remove more unused deps

* more dep fixes

* yet more dep fixing

* more fixing..

* more of the same

* hopefully the last deps to fix

* Bump the version of protobuf and fix everything that depends on it. Took shortcuts that I need to fix in a next commit, but would like to run the CI on this now that it compiles

* don't error out in the grpc-haskell patch

* remove obsolete patch

* patch absl to compile on mingw

* Add a patch to recognize the compiler

* Define _DNS_SD_LIBDISPATCH for macOS gRPC

* bump netty_tcnative_version according to https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty

* pin maven deps

* Fix macos linking errors 'dyld[xxx]: missing symbol called'

* Skip Darwin frameworks in package-app.sh

* pin stackage packages

* pin stackage windows deps

* use the netty version agreed on

* bump the windows global cache to try and debug the upb issue

* restart the CI after timeout

* clean up

* disable failing tests for now

* comment out unused code

* reset the windows machine name to 'default'

---------

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2023-11-07 19:35:50 +01:00
Remy
a83a84b326
Add support for explicit disclosure in daml script 3 (#17723) 2023-11-07 15:46:20 +00:00
Remy
dfeb788e8b
[Upgrade] make exercise upgradabale (#17752) 2023-11-07 15:27:16 +00:00
dylant-da
bb5ae76cd9
Warn instead of errors for expression changes in templates (#17609)
* Add warnings to Gamma

* Warn instead of error for changed template expressions

* lint

* Errors and warnings for key types

* add context to warnings where relevant

* Add warning logic to DamlcUpgrades, fix errors that are now warnings

* Add tests for key errors and warnings (signatories, expression, type)

* Refactor expression extraction, fix extract key expression/maintainers

* satisfy lint, trigger test restart

* Test error for dropped key and warning for added key

* Warn for extraction issue instead of erroring out

* Change `cannot change` error-wording with `has changed` warning-wording

* comments for extractors
2023-11-07 12:32:04 +00:00
Gary Verhaegen
442c57b5f4
docker: switch to jammy (#17766) 2023-11-07 12:39:32 +01:00
Remy
44169064ea
fix update_canton_ jobs (#17762) 2023-11-07 11:51:45 +01:00
tudor-da
93653b4335
Add CreatedEvent.createdAt in Java bindings (#17741)
* Add CreatedEvent.createdAt in Java bindings

* Fix TransactionsClientImplTest

* Update language-support/java/bindings/src/main/java/com/daml/ledger/javaapi/data/CreatedEvent.java

Co-authored-by: Raphael Speyer <raphael.speyer@digitalasset.com>

---------

Co-authored-by: Raphael Speyer <raphael.speyer@digitalasset.com>
2023-11-07 07:42:19 +00:00
Simon Maxen
ae5e9feda9
Allow for the construction of shared GlobalKeys.
* Revert "Add SharedGlobalKey"

This reverts commit 6592cb7bd5.

* Adding shared flag to GlobalKey

* Remove shared flag from GlobalKey

* Support old and new grcp error parsing

* Add tests for hashContractKey
2023-11-06 20:00:38 +00:00
Gary Verhaegen
f6d213a085
2.7.6 snapshot for docs (#17759)
It looks like the release may be a bit delayed, so I'd like to have a
snapshot to point the docs repo to in order to include #17711.
2023-11-06 18:16:13 +01:00
Gary Verhaegen
00b28969b2
re-start publishing daml-sdk image (#17760)
Turns out some people depend on it. I still think they shouldn't, and we
should work with them to help them move away, but short-term the right
thing to do is to not block their upgrade.
2023-11-06 17:58:23 +01:00
Remy
dc0b2f71a6
mege bump_canton and update_canton_sources jobs (#17757) 2023-11-06 17:37:31 +01:00
azure-pipelines[bot]
54e70ad3b5
update canton to fb08d63d (#17756)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-06 17:07:23 +01:00
azure-pipelines[bot]
9ea0c3089f
update canton to fd561690 (#17754)
* update canton to fd561690

CHANGELOG_BEGIN
CHANGELOG_END

* Disable explicit setting of explicit disclosure

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Tudor Voicu <tudor.voicu@digitalasset.com>
2023-11-06 11:05:44 +00:00
Remy
6af384a840
make changing default scalacopts a bit nicer (#17751) 2023-11-03 15:16:00 +00:00
Samuel Williams
637ff67ea0
Upgrades testing via daml-script (#17610)
* Implement vetDar and unvetDar
Blocked by canton not returning uploaded dars

* Upgrades testing infra/IT

* Fix HttpServiceTestFixture

* Fix some tests

* Fix cantonRunner for windows

* Add delay after vet actions so topology transactions can land

* Implement invalid data upgrades tests

* Add temporary internal setContractUpgradingEnabled flag to daml-script

* Switch to setProvidePackageId

* Write choice and multi-participant tests

* Formatting

* Remove unused import

* Address reviews

* Update errors

* Fix canton runner for windows

* Address review comments

* Add new proto to artifacts

* avoid pushing canton admin proto as maven artifact (#17742)

---------

Co-authored-by: Remy <remy.haemmerle@daml.com>
2023-11-03 14:10:15 +00:00
azure-pipelines[bot]
fb2e7d4818
update canton to 8f372600 (#17748)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-03 08:03:52 +00:00
Paul Brauner
ac19422024
Add paul to daml-lf code owners (#17747)
I'd like to get notified that a review is required.
2023-11-02 21:53:27 +01:00
azure-pipelines[bot]
262305dd2a
update compat versions (2023-11-02) (#17738)
* update compat versions (2023-11-02)

CHANGELOG_BEGIN
CHANGELOG_END

* bump install exclusion as backports are pending

run-full-compat: true

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-11-02 16:49:57 +01:00
Gary Verhaegen
355a6f7a1b
on-demand snapshot (#17739)
By the way, I don't have any special powers here. I'm just running:
```
./release.sh snapshot 42581f2961 2.8.0
```
and putting the result at the top of the `LATEST` file.
2023-11-02 13:54:52 +00:00
tudor-da
445a037c3e
Adapt JSON API server to the new explicit disclosure Ledger API interface (#17684)
* Adapt JSON API write path to the new explicit disclosure Ledger API interface

* Address review comments

* Switch to vanilla Base64 for createdEventBlob instead of Base64Url

* update TypeScript bindings of DisclosedContract to use the createdEventBlob field instead of payload, payloadBlob and metadata, and short-circuit a test which depends on canton populating the createdEventBlob field

* get TypeScript integration tests to use transaction service to get created_event_blob data

---------

Co-authored-by: = <=>
2023-11-02 12:35:03 +00:00
azure-pipelines[bot]
10b640bf46
update canton to 55ce363d (#17736)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-02 12:47:27 +01:00