Commit Graph

12415 Commits

Author SHA1 Message Date
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
Remy
ff7b5c7d51
[Daml-Script] minimal support for explicit disclosure (#17818)
Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
2023-11-17 11:30:08 +01:00
Remy
1caad8f26c
on-demand snapshot (#17854) 2023-11-16 17:59:06 +00:00
Gary Verhaegen
e0b772ddc5
limit release deletion (#17853) 2023-11-16 14:07:43 +00:00
azure-pipelines[bot]
a821d52fe1
rotate release duty after 2023-11-15 (#17836) 2023-11-16 13:37:48 +00:00
Moisés Ackerman
9e9ffea143
Remove unvalidated damlc integration tests (#17832)
* Remove tests '//compiler/damlc/tests:integration-unvalidated-v{115,1dev,2dev}'

* Use mangle_for_damlc for consistency

* remove outdated comments
2023-11-16 12:01:24 +01:00
azure-pipelines[bot]
d7fe830340
update canton to 20231115.11540.0.v04fd0a59/2.8.0-snapshot.20231115.11540.0.v04fd0a59 (#17847)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-16 09:08:05 +00:00
Marton Nagy
474bf990e6
Upgrade Sangria GraphQL library from 2.0.1 to 4.0.2 (#17844)
* Adapt library dependencies
* Re-enable GraphQLSchemaSpec
* Pin dependencies
2023-11-16 08:51:04 +01:00
mziolekda
8e0b71bb15
clean up test common (#17846)
* move stuff around inside test-common

* move timeout stuff to lapitt, where it is used

* move logging stuff to ledger/error

* move StreamConsumer to libs-scala/grpc-test-utils

* remove dead usages of test-common

* move SimpleHttpServer to a dedicated lib

* format

* final cleanup of the test-common

* add new libraries to maven
2023-11-15 22:36:03 +00:00
Remy
420b8c52ad
Mark gatling dependencies as deprecated (#17820)
This changes guarantees akka does not appear in maven_install_2.13.json

    we add a new maven depo deprecated_maven
    we add gatling to deprecated_maven
    we reactive gatling-utils and http-json-perf
    we move gatling-utils in ledger-service/http-json-perf/ (we do not want new component to use gatling)
2023-11-15 18:22:54 +00:00
azure-pipelines[bot]
b21491555a
update NOTICES file (#17838)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-15 17:42:48 +01:00
Johan Sjödin
b62db55ad8
Daml Finance: update version (#17845) 2023-11-15 16:36:12 +00:00
Samuel Williams
6d05c355ce
Warn on import of internal daml-script module (#17816)
* Warn on import of internal daml-script module

* Fix tests

* Address comment
2023-11-15 14:04:46 +00:00
Samuel Williams
f9308520e4
Added assertions that failing tests do fail (#17833)
* Added assertions that failing tests do fail

* failing -> broken
2023-11-15 14:04:25 +00:00
Paul Brauner
393b930286
no more bazel clean in build.ps1 (#17841) 2023-11-15 14:55:38 +01:00
mziolekda
9773450ae0
make testing-utils independent of ledger-api (#17842)
move non ledger-api stuff to libs-scala

remove some dead code + move classes to simplify deps
2023-11-15 14:43:44 +01:00