Commit Graph

12475 Commits

Author SHA1 Message Date
Raphael Speyer
51bf3da977
precommit: add check for modified files under packages with main-only targets. (#17993)
Since https://github.com/digital-asset/daml/pull/17989

A simple heuristic to remind you to consider adding `run-all-tests: true` to your commit message if making changes in corners of the codebase most likely affected.
2023-12-08 18:35:54 +11:00
Moisés Ackerman
4794454a70
Platform independence pre-check (#17955)
* Rename //bazel_tools:match-{cabal=>golden}-file

* Generate and check hash file for contents of //compiler/damlc/tests:platform-independence.dar

* Add pre-commit hook to test //compiler/damlc/tests:platform-independence-dar-hash-file-matches

* Print info when //bazel_tools:match-golden-file fails

* platform-independence-dar-check pre-commit hook runs depending on env var

* Skip platform-independence-check if RUN_PLATFORM_INDEPENDENCE_CHECK is unset

* Document dar_hash_file rules

* move platform-independence-checks warning to .envrc

* implement generate_dar_hash_file genrule in python

in particular, this allows us to produce the same output on all platforms

* fix windows

* Update rules_daml/daml.bzl

* bytes.replace does not operate in place
2023-12-07 18:18:24 +01:00
azure-pipelines[bot]
f678ad1808
update canton to 20231206.11921.0.va3021807/2.8.0-snapshot.20231206.11618.0.vd015b3cb/3.0.0-snapshot.20231206.11921.0.va3021807 (#17994)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2023-12-07 13:58:21 +01:00
Gary Verhaegen
b6ba1ec69a
2.8.0-rc2 (#17988) 2023-12-06 22:10:21 +00:00
dylant-da
96485898f4
Fix issues with damlc with custom release version querying network (#17991)
Co-authored-by: Samuel Williams <samuel.williams@digitalasset.com>
2023-12-06 19:35:10 +00:00
Paul Brauner
4d0ecd7285
Accept a run-all-tests commit trailer (#17989)
* Accept a run-all-tests commit trailer

* Address comments
2023-12-06 15:36:14 +00:00
Samuel Williams
9cc0a654d7
Fix missing name error when using multi-build with sdk-version daml.yaml (#17986)
* Fix `missing name` error when using multi-build with sdk-version daml.yaml

* Update with better warning
2023-12-06 12:28:32 +00:00
Paul Brauner
56018b5d6e
do a proper canton 3.x code drop in the canton-3x directory (#17980)
* do a proper canton 3.x code drop in the canton-3x directory

* copy the code from canton3

* address Gary's comments

* fix canton-3x
2023-12-06 10:47:47 +01:00
azure-pipelines[bot]
aa67b0bf30
bump blackduck script to bee7a8c6 (#17984)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-12-06 10:47:10 +01:00
azure-pipelines[bot]
4a4584d254
update NOTICES file (#17985)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-12-06 10:40:04 +01:00
dependabot[bot]
db3b29ec45
Bump ch.qos.logback:logback-classic (#17979)
Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.2.3 to 1.3.12.
- [Commits](https://github.com/qos-ch/logback/compare/v_1.2.3...v_1.3.12)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 23:41:14 +00:00
dylant-da
40b5eb8476
Fix split release for deps (#17968)
* Resolve release version for sdk build checks

* lint

* lint

run-full-compat: true

* Simple test for using daml-script in release versions

* Fix build issues in tests using pSdkVersion

run-full-compat: true

* Fix build issues with DamlcIntegration

* fix bad sdk version being an invalid version

run-full-compat: true

* Fix the linux "mmap 4096 bytes at (nil): Cannot allocate memory" error

* Fix compat tests on Windows

run-full-compat: true

* test windows os correctly

run-full-compat: true

* temporarily disable canton_3x

run-full-compat: true

---------

Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2023-12-05 23:46:27 +01:00
Gary Verhaegen
c6e439b862
clean-up docs & fix BlackDuck (hopefully) (#17975) 2023-12-05 16:20:44 +01:00
Paul Brauner
1794212369
build canton 3x in the CI (#17966)
* build canton 3.x in build.yml

* Apply suggestions from code review

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* Apply suggestions from code review

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* apply suggestions

---------

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-12-05 15:18:35 +00:00
Remy
96f16df3c0
remove script/trigger/cantonFixture deps on scala-bindings (#17954)
Basically we remove the dependency of different components on "//language-support/scala/bindings" by:

- replacing com.daml.ledger.api.refinements.ApiTypes.Party by com.daml.lf.data.Ref.Party
- replacing com.daml.ledger.api.refinements.ApiTypes.ApplicationId by Option[com.daml.lf.data.Ref.ApplicationId] (here we use option as ApiTypes.ApplicationId allows empty string while Ref.ApplicationId does not).
- adding rounding logic for timestamp in com.daml.lf.data.Time.Timestamp and use it instead of the one from com.daml.api.util.TimestampConversion

Note we did not clean daml-sript export as it have never pass the alpha stage and will be dropped with the 3.x fork.
2023-12-05 15:08:09 +00:00
Simon Maxen
935b351f74
Enable shared keys for vDev (#17946) 2023-12-05 13:48:06 +00:00
azure-pipelines[bot]
6629254717
update canton to 20231204.11608.0.v7e37cf1d/2.8.0-snapshot.20231204.11608.0.v7e37cf1d (#17970)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-12-05 13:55:55 +01:00
Paul Brauner
543bc4e2ab
fix the canton 3.x bazel build (#17967) 2023-12-05 12:29:14 +00:00
Paul Brauner
a3ee8e4a6b
Revert "Update rotation (#17940)" (#17973)
This reverts commit 38cd3cc724.
2023-12-05 12:32:16 +01:00
Paul Brauner
95bf44e923
fix tag_filter in build.sh (#17969) 2023-12-05 10:05:17 +01:00
Remy
d79514d37a
fix canton-3x bazel (#17961) 2023-12-04 15:17:39 +00:00
mziolekda
34743570bd
Rewire the build to use ledger-api within canton (#17959)
* Rewire the build to use ledger-api within canton

* same for canton-3

* fix buf

* fix buf again

* remove references to canton from canton-3x
2023-12-04 16:11:13 +01:00
Paul Brauner
dbeb172e07
Make more tests main-only (#17963) 2023-12-04 15:37:36 +01:00
Paul Brauner
33155748df
Fix main-only bug in build.sh (#17964) 2023-12-04 13:53:43 +01:00
dylant-da
4d8e4995df
Add --install-with-custom-version, rename --allow-install-non-release (#17931)
* Add --install-with-custom-version, rename --allow-install-non-release

* Test install tarball via custom version in compatibility tests

run-full-compat: true
2023-12-04 10:31:28 +00:00
azure-pipelines[bot]
d054187b5e
update canton to 20231201.11605.0.vdef89654/2.8.0-snapshot.20231201.11605.0.vdef89654 (#17960)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-12-04 10:53:00 +01:00
Paul Brauner
e22f8bebd9
Run costly tests after only after merging (#17956)
* do not run pr-only tests on main, do not run main-only tests on prs

* split data dep tests into main-only and pr-only

* run non-dev conformance tests on main only
2023-12-04 10:52:33 +01:00
Andreas Triantafyllos
65cfe19f29
Fixed ParticipantPruningIT test. (#17957) 2023-12-04 10:15:00 +01:00
mziolekda
b050cee3a6
Remove canton's dependency on scala-bindings (#17958)
* Remove canton's dependency on scala-bindings

* Same for canton-3
2023-12-01 17:56:19 +01:00
mziolekda
7e2aa7cece
Adopt the repository to the movement of java bindings (#17913)
* Make java bindings compile in new place

* fix a mysterious grpcurl error
2023-11-30 22:43:35 +01:00
azure-pipelines[bot]
6ea7721313
update compat versions (2023-11-30) (#17951)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-30 15:05:24 +01:00
azure-pipelines[bot]
e01401ffe6
update NOTICES file (#17952)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-11-30 15:05:08 +01:00
Gary Verhaegen
faf7211c6b
bump python to make dependabot less sad (#17953)
Python 3.8 was published on Oct 14, **2019**.
2023-11-30 14:58:58 +01:00
azure-pipelines[bot]
e14a9a8fed
update canton to 20231129.11598.0.v78e63449/2.8.0-snapshot.20231129.11598.0.v78e63449 (#17950)
* update canton to 20231129.11598.0.v78e63449/2.8.0-snapshot.20231129.11598.0.v78e63449

CHANGELOG_BEGIN
CHANGELOG_END

* Add missing dependency

* Update canton/BUILD.bazel

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Simon Maxen <simon.maxen@digitalasset.com>
Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2023-11-30 14:26:07 +01:00
Johan Sjödin
72cefd6f09
Daml Finance: update version (#17948) 2023-11-29 21:01:45 +01:00
dependabot[bot]
69cff5d606
Bump webpack from 5.54.0 to 5.76.0 in /navigator/frontend (#17947)
Bumps [webpack](https://github.com/webpack/webpack) from 5.54.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.54.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 20:02:54 +01:00
Moisés Ackerman
c1f7a87572
Add feature flag for scenarios (off in LFv2) (#17927)
* Add feature flag for scenarios (off in LFv2)

* whitespace

* Use rule for old-proj-2.1.dar
2023-11-29 17:01:44 +00:00
Paul Brauner
bead02a686
publish versions 2.1 and 2.dev of ledger-test-tool on maven (#17945) 2023-11-29 16:43:05 +00:00
Andreas Triantafyllos
b8eebc6ddd
Convert conformance tests to use java bindings (#17894) 2023-11-29 16:34:06 +00:00
Paul Brauner
38cd3cc724
Update rotation (#17940)
Swap Bas and myself
2023-11-29 16:18:40 +00:00
dependabot[bot]
75413dd0d4
Bump protobufjs from 6.11.3 to 6.11.4 in /language-support/ts/packages (#17942)
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.3 to 6.11.4.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/commits)

---
updated-dependencies:
- dependency-name: protobufjs
  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-29 16:58:39 +01:00
Paul Brauner
9dbb53e97e
introduce lf_version_default_or_latest in bazel and use it everywhere were I had replaced the implicit default version with 'latest' (#17930) 2023-11-29 15:53:53 +01:00
dependabot[bot]
d2ffbe90ee
Bump @babel/traverse from 7.14.0 to 7.23.4 in /navigator/frontend (#17939)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.14.0 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-29 14:01:31 +01:00
Paul Brauner
754c252eaf
Remove now unused by Canton LanguageVersion.DevVersions (#17935) 2023-11-29 10:34:13 +01:00
dependabot[bot]
ce5f045de4
Bump @babel/traverse in /language-support/ts/packages (#17936)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.16.0 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-29 08:46:40 +01:00
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