Commit Graph

10060 Commits

Author SHA1 Message Date
Andreas Herrmann
9ba81d1596
Document how to x64 binaries on M1 MacOS. (#14138)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-06-09 14:50:54 +02:00
Moritz Kiefer
b451edbc66
Add PoC implementation of interface views to Daml Engine (#14116)
changelog_begin
changelog_end
2022-06-09 13:46:27 +02:00
Andreas Herrmann
e8001fc4ff
Speed up ghc-lib(-parser) sdist generation (#14076)
* Update ghc-lib to speed up sdist generation

To incorporate https://github.com/digital-asset/ghc-lib/pull/379, which
is a more generic version of the changes introduced in
41ab1c2cba
to speed-up ghc-lib(-parser) sdist generation in Daml.

The slowest step in the ghc-lib(-parser) sdist generation is the
generation of `.hs` files from `.hsc` files via `hsc2hs` and from `.x`
or `.y` files via `alex` or `happy`. The reason that it's slow is that
`ghc-lib-gen` performs these through GHC's build system, hadrian, and
these steps require almost a full stage1 GHC build.

The `.hs` files are only needed to enable dependency discovery through
`ghc -M`, as it doesn't understand `.hsc|.x|.y` files. Apart from that
we can use the original `.hsc|.x|.y` files in the final sdist.

With this update `ghc-lib-gen` finds all relevant `.hsc|.x|.y` files
and replaces them with dummy `.hs` files that have the same module name
and the same imports. These dummy files are only used for the purposes
of dependency discovery via `ghc -M` and are not included in the final
sdist.

With this update the sdist generation is sped up between 4.3 to 4.5
times:
- ghc-lib-parser: 3m2s down to 42.04s (4.3x)
- ghc-lib: 3m5s down to 40.96s (4.5x)

I've applied `diffoscope` to the generated sdist tarballs with and
without this update to ensure that no unexpected differences are
introduced with this change.

https://github.com/digital-asset/ghc-lib/pull/379 reports a less
dramatic speed up of about a third reduction in build time for `stack
runhaskell CI.hs`. The reason for the discrepancy is that `CI.hs`
performs more steps than just the sdist generation, e.g. checking out
GHC's source tree, or building hadrian. These steps are not included in
the above benchmarks, because they are executed in separate Bazel
actions and can be cached separately.

CHANGELOG_BEGIN
CHANGELOG_END

* Update Cabal files

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-06-09 09:15:19 +02:00
azure-pipelines[bot]
23ef356a61
bump canton to 20220608 (#14136)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-09 08:50:11 +02:00
Nicu Reut
944cc3142a
Remove package restriction for min/max time methods [kvl-1430] (#14131) 2022-06-08 16:22:24 +00:00
Sergey Kisel
1afd0bf479
Sandbox Classic dependency removal from daml-script integration test (#14128)
* Sandbox Classic dependency removal from daml-script integration test

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-06-08 15:09:08 +00:00
tudor-da
fc47a8995c
[LLP] Implement the possibility to have a shared StringInterningView [DPP-1042] (#14062)
* Allow the possibility to have a shared StringInterningView

changelog_begin
changelog_end

* Solve TODO in RecoveringIndexerIntegrationSpec

* Addressed Marton's review comments

* Added thread-safety mentionsin string interning interfaces
2022-06-08 16:13:31 +02:00
Gary Verhaegen
d81b4a7071
ci: pin Linux image to yesterday's because today's is broken (#14126)
Running the `docker` command on today's Ubuntu images crashes the
kernel. (Which is super reassuring from a security pov.)

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 14:08:23 +00:00
Sergey Kisel
f36252ff55
Removal of unused file daml-platform.sh. (#14125)
Does not seem to be used, as well as refers to deprecated sandbox-classic

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 16:04:42 +02:00
Sergey Kisel
c41e2c9d1b
Removal of navigator-test as not functional (#14122)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 16:03:46 +02:00
Stephen Compall
1d20cbf887
hide unresolved/resolved states in lf/interface library (#14115)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 13:44:56 +00:00
Gary Verhaegen
56096652e9
docs: fix two code snippets (#14123)
There seems to have been some mixup in which snippets to show for these
two cases.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 13:33:51 +00:00
Sergey Kisel
18a6f30dc3
daml-script test removal dependency to sandbox-classic (#14121)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-08 13:33:08 +00:00
azure-pipelines[bot]
2095333468
bump canton to 20220607 (#14117)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-08 13:27:00 +00:00
azure-pipelines[bot]
e80b9f11a2
update NOTICES file (#14119)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-08 13:26:47 +00:00
azure-pipelines[bot]
5f5aa4aa82
rotate release duty after 2022-06-08 (#14118)
@nickchapman-da is taking care of [testing](https://github.com/digital-asset/daml/blob/main/release/RELEASE.md) today's release, so they get pushed back to the end of the line.

Please do not merge this before the release is fully tested.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-08 15:25:38 +02:00
carrielaben-da
7f8bbdff24
Update redirects.map (#14110)
* Update redirects.map

Updated to redirect from outdated versions of the Daml ledgers page to the newest version.

[CHANGELOG_BEGIN]
[CHANGELOG_END]

* Update docs/redirects.map

[CHANGELOG_BEGIN]
[CHANGELOG_END]

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

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2022-06-08 09:21:33 -04:00
Stephen Compall
4075389f92
remove inherited choices from Scala codegen, test interface/template IDs (#14113)
* inherited choices are gone, convert to interface
* use toInterface for conformance tests on interfaces

CHANGELOG_BEGIN
- [Scala codegen] Interface choices can no longer be invoked directly on
  template IDs, or via ``createAnd`` or ``key`` directly.  Instead, use
  ``toInterface[Ifn]`` before calling the relevant ``exercise*`` method.

  The resulting ledger commands now contain the correct interface ID
  rather than template ID for looking up the choice, but see #13993 for
  a caveat regarding create-and-exercise and exercise-by-key.
CHANGELOG_END
2022-06-08 08:37:56 -04:00
Sergey Kisel
1d8f195438
Sandbox Classic Removal in Tests (#13934)
CHANGELOG_BEGING
CHANGELOG_END
2022-06-07 19:54:52 +00:00
Stephen Compall
15b82efb87
toInterface and unsafeToTemplate in Scala codegen (#13991)
* Template.Implements marker, and toInterface for contract IDs
* unsafeToTemplate for interface contract IDs
* toInterface for create-and-exercise, exercise by key

CHANGELOG_BEGIN
- [Scala codegen] Template contract IDs and interface contract IDs have
  new coercion methods, ``toInterface`` and ``unsafeToTemplate``,
  respectively.

  ``toInterface`` can also be used with ``createAnd`` as well as ``key``
  for create-and-exercise and exercise-by-key respectively; however, see
  #13993 for a caveat regarding ledger API support.
CHANGELOG_END
2022-06-07 16:55:19 +00:00
azure-pipelines[bot]
cc2160bc52
update NOTICES file (#14111)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 15:57:32 +00:00
Stephen Compall
4341130fe0
interface contract ID types in Scala codegen (#13975)
* define Interface and InterfaceCompanion parent classes
* generate package ID aliases for interface-only modules
* generate choice methods for interfaces
* include all interfaces in what to write from Scala codegen
* handle interface references in variance resolution

CHANGELOG_BEGIN
- [Scala codegen] Interface contract ID types, and references to them in
  serializable types, are now supported, as is exercise of interface
  choices on interface contract IDs.  To support this, ``DomainCommand``
  now includes a ``ContractTypeCompanion``, which may describe either a
  template or an interface, rather than a ``TemplateCompanion``.
CHANGELOG_END
2022-06-07 14:30:11 +00:00
Stephen Compall
9a086ec225
remove two-argument fromIdAndRecord from Java codegen output (#14104)
CHANGELOG_BEGIN
- [Java codegen] The two-argument overload for ``fromIdAndRecord``,
  deprecated since SDK 0.12.18, has been removed.  Code that still uses
  this should use either ``fromCreatedEvent``, or the remaining overload
  of ``fromIdAndRecord`` if no ``CreatedEvent`` is available.
CHANGELOG_END
2022-06-07 08:58:27 -04:00
Stephen Compall
7c23420876
use more domain models for json-api response tests (#14101)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 08:57:17 -04:00
Andreas Lochbihler
2ac54ce1f4
add advance to contract state machine (#14077)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 12:09:58 +02:00
Moisés Ackerman
3255dccfc9
Qualify interface name in _requires_ markers (#14054)
* Add failing test
* update ghc patch
* Update *.EXPECTED.desugared-daml daml-test-files
2022-06-07 10:00:36 +00:00
Gary Verhaegen
4bb1cc9a06
add new-joiners to the release rotation (#14102)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-07 09:30:42 +00:00
azure-pipelines[bot]
1306c8e27d
update NOTICES file (#14106)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 09:54:46 +02:00
azure-pipelines[bot]
8448dba544
bump canton to 20220606 (#14105)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-07 07:26:17 +00:00
tudor-da
ce98be8627
Extract ContractStateCaches from MutableCacheBackedContractStore (#14058)
changelog_begin
changelog_end
2022-06-06 16:12:40 +00:00
Bernhard Elsner
c154b2f769
Add system architecture (Canton) FAQ to docs (#14088)
* Add system architecture (Canton) FAQ to docs

CHANGELOG_BEGIN
CHANGELOG_END

* Apply suggestions from code review

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: daravep <ratko@digitalasset.com>

* Incorporate feedback

Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
Co-authored-by: daravep <ratko@digitalasset.com>
2022-06-06 08:47:02 +00:00
azure-pipelines[bot]
fdf792b062
update NOTICES file (#14095)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-06 10:06:13 +02:00
azure-pipelines[bot]
1a0432484b
bump canton to 20220603 (#14094)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-06 10:05:52 +02:00
Marton Nagy
a939f7d76e
Refactoring: cleanup appendonly leftovers (#14096)
* Renames appendonlydao test directory
* Inlines JdbcAppendOnlyTransactionInsertion

changelog_begin
changelog_end
2022-06-05 00:07:54 +02:00
Marton Nagy
ec4f9850ba
ACS ID fetching enhancements [DPP-1058] (#14027)
* Adds exponential ID page retrieval to aid low stream initialization
* Adds Working-Memory concept to calculate parameters to aid guaranteed memory footprint
* Switches to dynamic BatchN batching instead of static grouping to aid stream initialization

changelog_begin
changelog_end
2022-06-04 14:42:28 +00:00
Moisés Ackerman
ee394702b8
Add CoImplements to DefInterface in protobuf (#14053)
* Update docstring for TemplateImplements.tpiMethods
    * The change happend on https://github.com/digital-asset/daml/pull/13142

* Add CoImplements to DefInterface in protobuf
    * Also adds encoding/decoding logic in the haskell side

* Part of https://github.com/digital-asset/daml/issues/14047

changelog_begin
changelog_end
2022-06-03 16:05:18 +00:00
Moisés Ackerman
cd6ae5dddc
Use -DDAML_PRIM cpp flag for building ghc-lib{,-parser} (#14074)
* Use -DDAML_PRIM cpp flag for building ghc-lib{,-parser}

changelog_begin
changelog_end
2022-06-03 15:04:23 +00:00
Stephen Compall
eef97d04d2
remove inherited exercise methods from Java codegen (#14078)
* stop resolving in Java codegen, and use direct choices only
* wrong issue reference in Scala codegen

CHANGELOG_BEGIN
- [Java codegen] Direct invocation of interface exercise methods on
  templates is no longer supported, and the ``exercise*`` methods, which
  could generate invalid commands in some cases anyway, are removed.
  Use ``toInterface`` to access interface exercise methods.
CHANGELOG_END
2022-06-03 09:08:24 -04:00
Gary Verhaegen
928e2b8464
split releases: add parameter (#14032)
This adds parameters to the "split release" job. At the moment, when
run, the job just builds the current commit with a snapshot version.
With this change, we'll be able to build a split release for any commit
with any version tag.

The reason for this change is we want to trigger this job from the
assembly repo, to reduce the number of manual interventions needed in
the release process.

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-03 11:40:48 +02:00
azure-pipelines[bot]
ebeb998d42
update NOTICES file (#14087)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-03 11:40:22 +02:00
Brian Healey
28e3990e57
update oracle client 19.14.0 (#14085)
CHANGELOG_BEGIN
Update Oracle client version to 19.14.0
CHANGELOG_END
2022-06-03 09:51:40 +02:00
Andreas Herrmann
520578a8d5
Remove absolute paths to execroot (#14072)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
2022-06-03 09:17:20 +02:00
azure-pipelines[bot]
22c9355ef6
bump canton to 20220602 (#14086)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2022-06-03 06:54:25 +00:00
Brian Healey
4de1a5dc59
upgrade to latest released oracle 19.15 (#14079)
CHANGELOG_BEGIN
Update to ensure compatibility with Oracle 19.15
CHANGELOG_END
2022-06-02 18:33:54 -04:00
Remy
ae8f50dbb8
LF: drop inheretedChoices from Implements (#14068)
part of #13653

CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 18:48:54 +00:00
Stephen Compall
eb3425b6c6
don't exclude interface-only modules in JS codegen (#14003)
* reproduce

This produces no files for EmptyIfaceOnly and yields the error

src/__tests__/test.ts(571,39): error TS2339: Property 'EmptyIfaceOnly' does not
exist on type 'typeof import(".../node_modules/@daml.js/build-and-lint-1.0.0/lib/Lib/index")'.

* generate files with no serializable types, but interfaces
- fixes parent test

CHANGELOG_BEGIN
- [codegen js] Files are now generated for Daml modules with interfaces
  even if no serializable types are present, and the module contents are
  generally propagated as if they had serializable types in them.
CHANGELOG_END
2022-06-02 11:17:59 -04:00
Robin Krom
3ff8c1055e
disclosures: fix buildDiscTable (#14071)
* disclosures: fix buildDiscTable

This removes the pattern match on the template id for the argument
record in buildDiscTable. The arguments don't contain the template id
any longer.

CHANGELOG_BEGIN
CHANGELOG_END

* Update daml-lf/engine/src/main/scala/com/digitalasset/daml/lf/engine/Engine.scala

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2022-06-02 14:56:06 +00:00
Remy
09034a265d
ScenarioRunner: move the building of the speedy machine (#14024)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:40:48 +02:00
Remy
cd24aa7522
update CODEOWNERS (#14064)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:26:05 +02:00
Remy
f2888f52ec
LF: update governance (#14065)
CHANGELOG_BEGIN
CHANGELOG_END
2022-06-02 16:20:59 +02:00