Commit Graph

12580 Commits

Author SHA1 Message Date
Gary Verhaegen
3dc20a4d0e
start 2.7.6 (#17900) 2023-11-29 08:38:46 +01:00
azure-pipelines[bot]
cd189081e5
update canton to 20231127.11587.0.v94729874/2.8.0-snapshot.20231127.11587.0.v94729874 (#17933)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-28 13:04:13 +00:00
Gary Verhaegen
af2a8167f1
2.8.0-rc1 take 2 (#17932) 2023-11-28 11:52:02 +01:00
Paul Brauner
c85eb0e59b
Test LF v2 in ShakeIdeClient.hs (#17922)
* Test LF v2 in ShakeIdeClient.hs

* Handle daml3-script conversion errors in scenario.Context
2023-11-28 11:36:30 +01:00
Raphael Speyer
bb3af2bcf2
JSON API: add new PrunedOffset error for websocket queries that attempt to use an offset that has been pruned (#17905)
This means that if a websocket query is initiated with an explicit offset, and the ledger returns an error reporting that the offset has been pruned, the websocket query will be terminated with an error containing a status of `410` (Gone) and a message indicating that the offset has been pruned.

The client will need to react to this by clearing any state that had been incrementally built based on updates, and refresh with current version of ledger state.

This is related to https://github.com/digital-asset/daml/issues/13788 and https://github.com/digital-asset/daml/issues/13680

As discussed there, the existing akka APIs do not support setting the websocket close code and reason. The approach taken here is to return a single message with a custom error and close the websocket.
2023-11-28 13:34:31 +11:00
Raphael Speyer
b5aa167a97
LT-36: remove java bindings for deprecated ContractMetadata (#17914)
ContractMetadata is deprecated and has been replaced with an opaque byte array, in a field called `created_event_blob` in the api protos, and a column called `metadata` in Scribe. I don't think we need a wrapper type for this data. When reading out of scribe, we'd typically be using it to build a `DisclosedContract`, and we have a Java type for that, so I think that would be the anchor we'd use when reading.
2023-11-28 13:33:58 +11:00
Samuel Williams
be831c6716
Remove "lax" from call to IDE. (#17928) 2023-11-27 18:20:20 +00:00
Gary Verhaegen
9d0ac21c86
cron: fix canton3 checkout (#17926)
Turns out CI doesn't have `pull.default = current`.
2023-11-27 15:44:43 +00:00
Gary Verhaegen
6cb6e72335
manual snapshot (#17921) 2023-11-27 16:27:26 +01:00
Paul Brauner
562b303a9b
clean up some comments (#17925) 2023-11-27 15:12:54 +00:00
Samuel Williams
aa2ea1b285
Fix mangled name test to run quick (#17919)
Improve failing test assertions
2023-11-27 14:22:16 +00:00
Gary Verhaegen
bab1cd43b6
cron/canton3: build with current main (#17920) 2023-11-27 14:08:07 +01:00
azure-pipelines[bot]
59ebefde3a
update NOTICES file (#17915)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-27 12:09:30 +01:00
tudor-da
6706a81c51
Add missing dep to canton3x (#17917) 2023-11-27 11:01:11 +00:00
Gary Verhaegen
6f457e872b
Allow install non release does not look for matching version (#17909) (#17918)
Co-authored-by: dylant-da <106664681+dylant-da@users.noreply.github.com>
2023-11-27 12:00:49 +01:00
tudor-da
e9c4feb562
Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions (#17916)
* Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions

* No need to add the cloned sources to git
2023-11-27 10:08:58 +00:00
azure-pipelines[bot]
9c85632f62
update canton to 20231124.11584.0.v33f28bad/2.8.0-snapshot.20231124.11584.0.v33f28bad (#17911)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-27 08:20:40 +01:00
Gary Verhaegen
5775dc1fd5
start 2.8.0 rc1 (#17893) 2023-11-25 13:24:00 +01:00
Remy
fae0a18def
[LF] limit length of package name (#17903) 2023-11-25 07:37:11 +01:00
Paul Brauner
646a74e25a
Also test LF v2 in //compiler/damlc/tests:script-service (#17904)
* Also test LF v2 in //compiler/damlc/tests:script-service

* move setEnv TASTY_NUM_THREADS outside of defaultMain

* Track end of cleanup in withResourceCps
2023-11-24 10:45:06 +01:00
Raphael Speyer
dd98b77fc7
Java codegen: better naming hygiene (#17861)
* ensure we java-sanitise the names of type variables when building identifiers for JSON decoding and encoding these types
* avoid name clashes (obscuring) when the package-qualified name of a type begins with the same identifier as a field name
2023-11-24 20:12:02 +11:00
azure-pipelines[bot]
99c7dec51d
update canton to 20231123.11580.0.v1dd021e2/2.8.0-snapshot.20231123.11580.0.v1dd021e2 (#17906)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-24 08:11:28 +00:00
Raphael Speyer
115a99e419
Java bindings: add options to JSON encode numeric and int64 as string, and make that the default (#17868)
Fixes https://github.com/digital-asset/daml/issues/17761
2023-11-24 14:40:33 +11:00
dylant-da
7070966b5c
Enable multi-package by default (#17901)
* Enable --enable-multi-package by default

* Make flags for multi-package visible in help
2023-11-23 17:06:45 +00:00
dylant-da
8faad711fe
Fix split release breaking create-daml-app test (#17898)
Adding --allow-install-non-release=yes to withSdkResource fixes issues with integration tests in 2.8.0 release
2023-11-23 11:36:08 +00:00
Paul Brauner
a572eeabf8
Replace 2.dev with 2.1 everywhere in the engine (#17878)
* re-enable v2 tests temporarily

* replace 2.dev with 2.1 where it makese sense

* replace more 2.dev with 2.1

* Re-disable the long V2 tests
2023-11-23 10:17:54 +00:00
Bas van Gijzel
ecff4ac0d8
Clean up UNRELEASED.md (#17895) 2023-11-23 09:19:44 +00:00
Paul Brauner
2b28e59017
Introduce LF 2.1 (#17865) 2023-11-23 08:59:14 +01:00
Paul Brauner
18e0e9e656
Test that canton 3.x builds with bazel hourly (#17876)
* introduce a canton2 directory

* rename to canton-3x and only keep the bazel rules

* add canton-3x to bazelignore

* fix visibility rules

* add a build-canton-3x script

* add build-canton-3x.sh temporarily to prs.yml to test it out

* try sending a message to stack when failing

* backport 243125adee

* restore prs.yml and add the job to azure-cron.yml

* restore tell-slack-failed condition

* address comments

* display the revision at which canton was cloned, to ease debugging
2023-11-23 08:54:35 +01:00
Erwin Ramirez
fc03cef4d6
LT-32: events by x support in java (#17879)
* added event query service java bindings

* fixed typo

* formatting

* address comments
2023-11-23 14:42:21 +11:00
Gary Verhaegen
d435a9c9df
bump nightly prefix to avoid confusion (#17892) 2023-11-22 17:05:43 +01:00
azure-pipelines[bot]
81e3ed1d9d
update canton to 20231121.11586.0.v594bc0d8/3.0.0-snapshot.20231121.11586.0.v594bc0d8 (#17881)
* update canton to 20231121.11586.0.v594bc0d8/3.0.0-snapshot.20231121.11586.0.v594bc0d8

CHANGELOG_BEGIN
CHANGELOG_END

* Stop downloading the canton opensource jar (#17877)

* stop downloading the canton opensource jar

* udpate obsolete README

* fix one remaining mention of @canton

* remove all mentions of canton_dep.bzlP

* Fix bazel rules

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Paul Brauner <141240651+paulbrauner-da@users.noreply.github.com>
Co-authored-by: Rafael Guglielmetti <rafael.guglielmetti@digitalasset.com>
2023-11-22 16:53:32 +01:00
dylant-da
45e730b92a
Remove leftover artifacts for Windows compatibility tests compatibility/test-all-installs.sh (#17891)
* Output daml_install_output in install_from_version

* Remove leftover artifacts for Windows
2023-11-22 15:06:08 +00:00
dependabot[bot]
dd63487bfc
Bump @babel/traverse in /language-support/ts/codegen/tests/ts (#17883)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.13 to 7.23.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.4/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 15:52:16 +01:00
dylant-da
234d003f0c
Supporting version splitting in Daml Assistant and Daml Compiler (#17682)
* initial implementation supporting version splitting in assistant

stubbed out implementations of resolveReleaseVersion/other resolution

* implement resolveReleaseVersionFromGithub

* continue work on fixing SDK/release version split

* First commit that successfully runs `daml-head install <split version>`

* fix tests

* Ignore snapshot/metadata for isHeadVersion

* remove log debugging

* Fix tests for getSdk

* refactor DA.Daml.Project.Types.defaultSdkPath

* enable incremental changes to version cache

* Allow resolveReleaseVersionFromGithub to fail via Either

* Split getSdkVersionFromSdkPath into get{Sdk,Release}VersionFromSdkPath

* Add resolveReleaseVersionFromDamlPath/Github to resolveReleaseVersion

* Add mock sdk config with version

* Remove getInstalledSdkVersions dependency on Cache

* add override for github version api endpoint, useful for mocking

* Add alternate-download to provide alternate tarball install resolution

* initial work on comprehensive autotester

* Copyright header

* fix build generation to have valid Main.daml

* improve error message for check_daml_install_nonzero

* Make killing miniserve processes more robust

* remove breakpoint

* Implement `daml build` tests

* Solve TODO in installExtracted to resolve sourceSdkVersion coherently

Supply useful error message with it.

* Return SdkVersion from sdkVersionFromReleaseVersion for typechecking

* Finish tests for tarball build, drop installed_already_behaviour

* Try to force-reload cache on tar failure, fix `Possible fix:` notes

* Add AllowInstallNonRelease as a flag

* Test allow_nonrelease, refactor, clean up setup_sandbox

* Move no_cache_override_github_endpoint API response into file

* Remove dead code, vestigial code

* Remove TODOs that no longer are relevant

* fix iAllowInstallNonRelease in InstallOptions for autoInstall

* Refactor alternateVersionLocation

* (Try to) lint language-support/ts/codegen/BUILD.bazel

* fix daml-assistant/test

* Enable allow_nonrelease post-build checks

* Remove writeFile debugging from DA.Daml.Assistant.Version

* Replace ../test-daml-yaml-install/test.sh with test-all-installs.sh

* lint

* more lint

run-full-compat: true

* Stop tracking API response in test-daml-yaml-install

* Move ReleaseResolution into Version

* remove extra deps, fixes daml-project-config-cabal-file-matches

* Move InstallLocation to minimize changes to DA.Daml.Project.Types

run-full-compat: true

* Create cachePath in daml-assistant tests that need it

* Bind to unused ports in test-all-installs.sh

run-full-compat: true

* Override via files instead of just URLs

run-full-compat: true

* Remove unused RELEASES_ENDPOINT

* Use dict keys instead of hardcoding in test-all-installs listing

* Refactor to remove check_daml_install_from_tarball_after_cache_reload

* Improve comment on update_cache

* Move shift before cases

* Add comment for unsafeParseReleaseVersion

* Rename unsafeParseReleaseVersion into unsafeParseOldReleaseVersion

* remove done todo

* Add some hungarian notation to resolveReleaseVersionFromDamlPath

* drop redundant let

* Define ordering over ReleaseVersion

run-full-compat: true

* use sdkVersion for codegen

* Use `urls` attribute in http_file, `url` is unsupported on Windows (!)

run-full-compat: true

* Remove unnecessary check for cache reload

run-full-compat: true

* Try use daml executable directly without daml-sdk-0.0.0

run-full-compat: true

* try force daml.exe to daml

run-full-compat: true

* Use daml.exe when windows is detected

* add windows tarballs for snapshots

* Fix most tests on windows, "line too long" breaks some tarball tests

run-full-compat: true

* Point to more recent snapshot post Moises's fixes

* Add os-specific tarball paths and alternate-download

run-full-compat: true

* Fix windows autoinstall with 0.0.0

run-full-compat: true

* Fix error message, remove daml_install_output catching

* Detect "The input line is too long" in other post_failed commands

* Fix missing releases endpoint, handle "cannot find the path specified"

run-full-compat: true
2023-11-22 14:24:13 +00:00
dependabot[bot]
8e3ab3be0b
Bump browserify-sign from 4.2.1 to 4.2.2 (#17744)
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 14:39:51 +01:00
Johan Sjödin
dd068212b5
Daml Finance: Update version (#17874) 2023-11-22 11:55:38 +01:00
Paul Brauner
ca31b1beab
restrict code drop and canton jars to 2.x (#17882) 2023-11-22 11:19:22 +01:00
Paul Brauner
f7dd1e6124
Stop downloading the canton opensource jar (#17877)
* stop downloading the canton opensource jar

* udpate obsolete README

* fix one remaining mention of @canton

* remove all mentions of canton_dep.bzlP
2023-11-22 08:36:41 +00:00
Remy
6eaf5081b8
[LF] cleanup transaction doc (#17857) 2023-11-21 17:09:13 +00:00
Paul Brauner
fa8d1dc1be
Refactor LF decoding in the compiler (#17864)
* Refactor decoding in compiler

* remove obsolete comment

* factorize -decodeLf2Version and decodeLf1Version

* call the right decodeScenarioModule depending on the target LF version, update incremental build tests

* split encoding into two modules, call the right encodeScenarioModule in writeDalfFile

* delegate to EncodeV2.hs in Encode.hs

* remove noisy type signature, was there initially to guide me but I think it adds more confusions than it clears up things
2023-11-21 15:41:09 +00:00
mziolekda
2533965c8d
Add config parameter for custom scopes in http-json (#17727)
* Add config parameter for custom scopes in http-json

* fix daml-script

* Add tests

* fixes from code review
2023-11-21 14:07:11 +01:00
azure-pipelines[bot]
44599e8904
update NOTICES file (#17870)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-21 11:09:56 +01:00
Paul Brauner
931214fb18
Refactor package decoding. (#17863) 2023-11-20 16:18:29 +01:00
Paul Brauner
558b5d8adb
disable V2 load testing tests for now (#17866) 2023-11-20 16:18:16 +01:00
Samuel Williams
d7b63f9c42
Multi-package CLI changes (#17850)
* Allow cyclic multi-package
Fix test --output error

* Backup damlc arg parser with build options when daml.yaml args used

* Apply review suggestions

* Add tests for changed cli behaviour
2023-11-20 14:25:39 +00:00
Raphael Speyer
97c04f6f4c
JSON API: switch to a keystore-based config for HTTPS (#17839) 2023-11-20 21:02:57 +11:00
Raphael Speyer
7d302e4ef3
Java codegen: avoid clashes between template names and nested classes. (#17848) 2023-11-20 20:21:22 +11:00
azure-pipelines[bot]
86cb8054ec
update canton to 20231117.11560.0.v57ba6d0f/2.8.0-snapshot.20231117.11560.0.v57ba6d0f (#17859)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-18 12:21:20 +00:00
azure-pipelines[bot]
9e9902b6f5
update canton to 20231116.11559.0.vb76f36d5/2.8.0-snapshot.20231116.11559.0.vb76f36d5 (#17855)
* update canton to 20231116.11559.0.vb76f36d5/2.8.0-snapshot.20231116.11559.0.vb76f36d5

* fix bazel rules

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2023-11-17 10:50:53 +00:00