Commit Graph

12877 Commits

Author SHA1 Message Date
Paul Brauner
516b456a49
Read an env var to reject keys during decoding (#18497) 2024-02-16 14:35:06 +01:00
Gary Verhaegen
92fcbb6a3b
remove canton ee integration (#18501) 2024-02-16 13:30:55 +01:00
azure-pipelines[bot]
c37a25e25b
update canton to 3.0.0-snapshot.100000000.20240215.12572.0.v575f829e (#18495)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-16 10:42:40 +00:00
azure-pipelines[bot]
1dec7e7441
update NOTICES file (#18496)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-16 11:33:34 +01:00
Remy
190eefe266
rationalize transaction proto (#18490) 2024-02-16 08:49:00 +01:00
dependabot[bot]
26fd657b5c
Bump follow-redirects from 1.15.3 to 1.15.5 (#18493)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.5.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.5)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-15 20:58:55 +01:00
azure-pipelines[bot]
6f3d415672
update canton to 3.0.0-snapshot.100000000.20240214.12557.0.v052dc804 (#18485)
* update canton to 3.0.0-snapshot.100000000.20240214.12557.0.v052dc804

tell-slack: canton

* Fix Canton code drop

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Tudor Voicu <tudor.voicu@digitalasset.com>
2024-02-15 20:56:23 +01:00
Remy
a2a1e91bdc
[LF] drop LF 1.x stable archive proto (#18489) 2024-02-15 18:15:37 +01:00
Remy
f5d41362af
[LF] ignore en/decoder ID paramaters in TransactionCoder (#18486) 2024-02-15 18:15:21 +01:00
Remy
dc26ca1e47
[LF] make Id en/decoder optional in TransactionCoder (#18482)
First step to remove completly them without breaking canton
2024-02-15 15:09:30 +01:00
Remy
2e0cc79c83
[LF] Drop transaction versions V14 and V15 (#18475) 2024-02-15 15:08:32 +01:00
Gary Verhaegen
17f37c7d23
cron: new canton snapshot format (#18483) 2024-02-15 14:31:06 +01:00
Gary Verhaegen
b9b3c16fbf
check if m1 became more stable (#18476) 2024-02-15 12:00:15 +01:00
Remy
09d09b0761
ad-hoc release (#18480) 2024-02-15 10:28:10 +00:00
azure-pipelines[bot]
307b621e6a
update canton to 3.0.0-snapshot.20240213.12548.0.vbb64a1d2 (#18469)
tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Marton Nagy <marton.nagy@digitalasset.com>
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
2024-02-14 20:35:37 +00:00
tudor-da
e134fd920c
Make packageName non-optional (#18417)
* Make packageName non-optional

* Apply suggestions from code review

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Addressed review comments and ready-to-merge

---------

Co-authored-by: Remy <remy.haemmerle@daml.com>
2024-02-14 20:52:34 +01:00
dylant-da
f99991c333
Upgrades Participant API - Enable Tests (#18431)
* add back tests, rewrite for new error structure

* lint

* Close cantonLog file after reading it

* remove unnecessary self-type
2024-02-14 15:56:17 +00:00
Remy
706788ac2f
[LF] move scenario in 2.dev (#18473) 2024-02-14 14:43:23 +00:00
Remy
8512a63b05
[damlc] Resurrect scenarios (#18467)
It is mainly a revert of 384111d806 with
the following change Scneario are put in DA.Scenario module instead of
Prelude
2024-02-14 15:37:26 +01:00
Raphael Speyer
b9fe360ae6
Java Codegen: better disambiguation between fields and packages (#18418)
We can currently have a problem where we can generate code that the java compiler chokes on.

This occurs when we have a generated class with a field, say `public final Integer foo;`, and it needs to call the `jsonDecoder` static method of a class under a package which begins with "foo", e.g. `foo.bar.Baz.jsonDecoder()`

Java sees the `foo.bar` and interprets that as an attempt to access the `bar` field on the local `foo` variable, and fails with `symbol not found`, not understanding that `foo.bar` is simply the package qualifier of the `Bar` class. When hand-writing code, we can avoid this by importing `foo.bar.Baz`, and then calling the method with `Baz.jsonDecoder()`, but when generating code, the JavaPoet library seems to opt for using fully qualified references to these static methods, which is when we can hit the problematic expressions.

This workaround generates a class nested within `Baz` a la

    public static class JsonDecoder$ { public JsonLfDecoder<Baz> get() { return jsonDecoder(); } }

which simply forwards the call on. However it means that we can avoid the ambiguious parsing context at the call side by invoking the method via `new foo.bar.Baz.JsonDecoder$().get()`. Using the `new` keyword clarifies that the next thing is a type, and javac correctly resolves `foo.bar` as a package name.

I benchmarked the changes with `bazel run language-support/java/codegen:from-json-bench` and there was no appreciable impact on performance.

We had previously avoided this issue by using `.simpleName` on the class used for `jsonDecoder()` to explicitly drop the package name, but that won't work once we start supporting decoding of choice arguments and results, as the relevant types typically won't have already been imported.

This workaround would be unnecessary if JavaPoet would reliably import all referenced types, and then refer to the class name unqualified. It would also be unnecessary if javac were a bit smarter about its parsing. However as of this PR, that does not seem to be the behaviour.
2024-02-14 14:40:39 +11:00
Remy
1459f084c9
[LF] move BigNumeric to 2.dev (#18459)
* [LF] move BigNumeric to 2.dev

* fix

* fix integration test

* fix damlc test

* lsp-test

* fix round

* cosmetic

* typo

* cosmetic
2024-02-13 16:51:00 +00:00
dylant-da
a5ad105167
Remove --activate flag - deprecated since 2019 (#18464) 2024-02-13 15:25:13 +00:00
Remy
94dc60935f
drop minExplicitDisclosure TransactionVersion (#18454) 2024-02-13 15:27:56 +01:00
dylant-da
74a9d98a1f
Support split release artifactory, improve missing connection errors (#18271)
* Add resolution via artifactory, handle HTTP errors

* Replace origin with wrapErr in resolveReleaseVersionUnsafe

* Handle broken connections (e.g. no internet)

* drop comment, fix foldMap id to fold

* remove debugging writeFile calls

run-all-tests: true

* Rename partial field damlPath to damlPathUnsafe and add safe function

* support multiple possible installation locations

* update alternatives

* Wrap CouldNotResolveReleaseVersion into AssistantError in unsafe resolve
2024-02-13 12:28:32 +00:00
azure-pipelines[bot]
b0006c84d6
update NOTICES file (#18462)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-13 10:51:07 +01:00
Paul Brauner
10502f8997
Create manual snapshot of pb/move-my-by-key-flag-to-dev (#18451) 2024-02-12 18:18:27 +00:00
Gary Verhaegen
e95821c2ec
fix build for snapshots (#18455) 2024-02-12 18:12:06 +01:00
Remy
efcdf6aab2
[LF] erase nat type (#18453) 2024-02-12 14:41:11 +00:00
Gary Verhaegen
0ae0108aea
allow ancillary snapshots (#18452) 2024-02-12 13:40:16 +00:00
Remy
933886f199
remove Legacy Numeric builtins for scala (#18450)
* remove Legacy Numeric builtins for scala

* fix

* fix

* fix

* fix

* fix test
2024-02-12 13:31:00 +00:00
Remy
71f0183b7a
[LF] Remove last remaining of Decimal (#18438) 2024-02-12 13:16:52 +00:00
Remy
2a7d9715ed
remove Legacy Numeric builtins for the compiler (#18447) 2024-02-12 12:14:29 +01:00
Paul Brauner
7612f5cb0d
remove the upgrades flag from the engine (#18436) 2024-02-12 11:55:21 +01:00
azure-pipelines[bot]
93604ebba7
update canton to 3.0.0-snapshot.20240209.12523.0.v2fa088f9 (#18444)
* update canton to 3.0.0-snapshot.20240209.12523.0.v2fa088f9
---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Andreas Triantafyllos <andreas.triantafyllos@digitalasset.com>
2024-02-12 11:13:02 +01:00
Paul Brauner
d0639566a2
remove the minInterfaces feature flag in TransactionVersion (#18446) 2024-02-12 10:05:47 +00:00
Paul Brauner
f42a6d526e
remove USoftFetch and USoftExercize in the compiler (#18440)
* Remove USoftFetch

* Remove USoftExercise
2024-02-12 10:43:47 +01:00
Remy
a6677fe9ff
Remove unused deps (#18442)
* Remove unused deps

* fix
2024-02-12 09:44:12 +01:00
Paul Brauner
499cb7f618
Remove the TransactionVersion.minExceptions flag (#18441) 2024-02-09 18:25:23 +00:00
Paul Brauner
beb4ad605e
fix splitNameAndVersion test (#18437) 2024-02-09 16:41:57 +01:00
azure-pipelines[bot]
acb4b785fe
update canton to 3.0.0-snapshot.20240208.12514.0.v683212b4 (#18433)
* update canton to 3.0.0-snapshot.20240208.12514.0.v683212b4

tell-slack: canton

* commit to cherry-pick on canton upgrade

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Marcin Ziolek <marcin.ziolek@digitalasset.com>
2024-02-09 14:05:08 +00:00
azure-pipelines[bot]
5c6718636a
update NOTICES file (#18434)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-09 11:12:22 +01:00
Gary Verhaegen
fbbce80443
standardize nix-shell (#18381)
I'd like to remove `dev-env`. It's served us well, but its original
ambitions were to go way beyond a simple `nix-shell` equivalent, and now
that it's all we're using it for it doesn't really add much anymore.

Using a standard nix-shell setup would reduce the complexity of this
repo and make it easier for other developers to jump in. It would also
somewhat reduce the dev-env verbosity, which is a minor annoyance.

This is, however, a big change, and I don't think trying to do it in one
go is a great idea. So instead I'm setting a foundation in this PR and
plan to move step by step over several follow-up PRs. In this one I just
add a small default nix-shell configuration and add it to `.envrc`. In
follow-up PRs, I'll be moving paclages over from the dev-env
configuration to the nix shell, up to the point where dev-env is just an
empty shell that we can easily remove.

This PR also serves as a not-so-implicit way of gathering support for
this plan.
2024-02-09 11:11:01 +01:00
Paul Brauner
2046a3c89b
remove the featurePackageUpgrades flag from the compiler (#18424)
* remove the featurePackageUpgrades flag from the compiler

* fix //compiler/damlc/tests:platform-independence-dar-hash-file-matches

* fix Daml[23]ScriptTestRunner
2024-02-09 10:57:33 +01:00
azure-pipelines[bot]
02ffc1e2c4
update canton to 3.0.0-snapshot.20240207.12502.0.va204c7cf (#18420)
* update canton to 3.0.0-snapshot.20240207.12502.0.va204c7cf

tell-slack: canton

* Fix DamlLfVersionToProtocolVersions in canton.

Will be needed until https://github.com/DACH-NY/canton/pull/16992 goes through.

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2024-02-08 18:09:36 +01:00
Paul Brauner
6291abbe7a
Remove the V1 major language version from engine (#18400) 2024-02-08 16:09:47 +01:00
Gary Verhaegen
d23a603549
bump copyright notice in README (#18427) 2024-02-08 14:00:55 +00:00
azure-pipelines[bot]
28e5a86b12
update NOTICES file (#18421)
Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2024-02-08 12:04:59 +01:00
Paul Brauner
743961bf0f
remove unused flags (#18415)
* remove unused flag

* remove also unused package metadata flag
2024-02-08 08:22:50 +00:00
Paul Brauner
ff5d3acf90
Remove the choiceObservers feature flag in the engine (#18368)
* Remove the choiceObservers feature flag in the engine

* apply suggestion
2024-02-07 17:54:36 +00:00
Paul Brauner
5bbc4159c6
remove the any type feature flag from the engine (#18351) 2024-02-07 17:14:31 +00:00