Commit Graph

7348 Commits

Author SHA1 Message Date
Moritz Kiefer
8834ac375b Build SDK release tarball on Windows (#597) 2019-04-18 17:22:12 +00:00
Gary Verhaegen
a150048697 run perf tests separately (#605) 2019-04-18 16:46:02 +00:00
Gerolf Seitz
7f8dbfeca0 Add CreateAndExercise command throughout the stack (#563)
* Add release notes entry

* Add CreateAndExercise command to Java Bindings data layer

* Add CreateAndExercise command to DAMLe

The CreateAndExerciseCommand allows users to create a contract and
exercise a choice on it within the same transaction. Users can use this
method to implement "callable update functions" by creating a template
that calls the update function in a choice body.

Fixes #382.

* Add CreateAndExercise command handling to the sandbox

* Add CreateAndExercise command to the Ledger API
2019-04-18 16:05:16 +00:00
Gary Verhaegen
0081fd6ea6 bump macOS builders to 10.14 Mojave (#600) 2019-04-18 15:22:10 +00:00
Robin Krom
d4b87897be language: fix: accidentally removed project database (#598)
This adds the local project database back to the checked package
database. It was accidentally removed in an earlier commit.
2019-04-18 14:27:54 +00:00
Leonid Shlyapnikov
f39b7a5d3f Update Scala Codegen SBT Example (#558)
* Update scala codegen sbt  example to use the latest codegen binaries

Use DAR to generate Scala code, no reason to unzip DALFs.

* Add support for `DA.sdkVersion` system property.

To override the default sdkVersion:
```
> sbt -DDA.sdkVersion=100.12.6 compile
```

* Simplify the way examples run
2019-04-18 13:49:53 +00:00
gleber
91843213bc Ledger API test tool (#496)
* ledger-api-test-tool: create with self-contained tests

Based on code by Tim Williams <tim.williams@digitalasset.com>

* ledger-api-test-tool: added an extract operation for resources

* api-server-damlonx: make ReferenceServer command-line-configurable.

This includes:
- port
- list of dars to load
- enable bad read service

* ledger-api-test-tool: Add test against Reference server.

* ledger-api-test-tool: allow all semantic tests.

* ledger-api-test-tool: move into //ledger/ledger-api-test-tool.

* ledger-api-test-tool: Add README

* ledger-api-test-tool: improve README according to the code review.

* ledger-api-test-tool: language and structure improvements to readme.

Based on review by bethaitman@digitalasset.com.
2019-04-18 13:06:02 +00:00
Jonas Chevalier
4184867916 bazel: move .bazelrc back to the repo root (#596)
It turns out that bazel still loads the .bazelrc file even if an
explicit --bazelrc argument is passed to it.
2019-04-18 12:04:23 +00:00
Jonas Chevalier
3b8ae1ff86 infra: add a VSTS windows agents (#368) 2019-04-18 11:20:57 +00:00
Andreas Herrmann
fbade2e815 Build //daml-assistant:daml on Windows (#595)
* haskell: windows: always link system libraries

Modifies the patch to rules_haskell so that Windows system library are
not only applied to grpc, but to all targets on Windows.

* windows: test //daml-assistant:daml on CI
2019-04-18 10:37:03 +00:00
Moritz Kiefer
6c06dbd730 Support package_app on windows (#594)
* Support package_app on windows

* Fix formatting
2019-04-18 09:26:41 +00:00
Gabor Aranyossy
879edf5911 running sandbox performance tests with SQL backend (#580)
* running sandbox performance tests with SQL backend

* adding docs
2019-04-18 07:45:42 +00:00
Shayne Fletcher
a30aab77de Integrate ghc-lib-0.20190417 (#588)
* Integrate ghc-lib-0.20190417.1

* update Desugar.daml, tests, and release notes
2019-04-18 00:11:23 +00:00
Bernhard Elsner
aa247e4db6 Embryonic math library for DAML (#419)
* First versions of taylor series based power and log functions

* Improve precision by switching exp algo and shifting points

* Code comments for the math library

* Trig functions

* Update daml-foundations/daml-ghc/daml-stdlib-src/DA/Math.daml

Co-Authored-By: bame-da <40762178+bame-da@users.noreply.github.com>

* More efficient integer exponentiation

* Make Powerable the typeclass for (^) only.

* Move `(^)` to `Multiplicative` and fix package-database

* Round all Decimal literals to 10 digits

* Add release notes

* Update daml-foundations/daml-ghc/daml-stdlib-src/DA/Math.daml

Co-Authored-By: bame-da <40762178+bame-da@users.noreply.github.com>

* Add comment on performance

* Remove default definition for `(^)`

* Fix comments

* Fix scenario-error test

* Fix tests again
2019-04-17 21:15:25 +00:00
Nicolas Mattia
f57c74d706 Build and run damlc on Windows (#568)
* Fix network build on Windows

Some files were not added to the build, which led missing symbols at
link time.

* Drop dll.a files from Windows GHC bindist

Those files greatly confuse GHC when linking statically.

* Add some Windows system libraries

These libraries are needed when linking GRPC.

* Statically link pthread on Windows

Otherwise the executables fail at runtime because they cannot find the
shared object.

* Build and run damlc on CI

* Try to fix package_db/* nullglob error

* Fix powershell command

* Cleanup package db rule

* Make formatting ugly again
2019-04-17 20:37:35 +00:00
Anup Kalburgi
29123c7ec0 Adding more consuming pre-consuming and post consuming keywords (#586) 2019-04-17 19:38:47 +00:00
Shayne Fletcher
d1fd9b79d2 Implement post-consuming choices (#574)
* Implement postconsuming choices

* Update daml-foundations/daml-ghc/src/DA/Daml/GHC/Compiler/Convert.hs

Co-Authored-By: shayne-fletcher-da <shayne.fletcher@digitalasset.com>

* Update daml-foundations/daml-ghc/tests/ConsumingTests.daml

Co-Authored-By: shayne-fletcher-da <shayne.fletcher@digitalasset.com>

* incorporate review suggestions

* one or two more tests

* formatting tweak

* remove a comment that has been proven wrong

* reinstate lambda and comment
2019-04-17 18:46:17 +00:00
Anup Kalburgi
7afd2bc27c VS code extension - syntax highlighter dev guide (#555)
* VS code extenstion dev guide

* Adding annotated file

* Correcting the comment about scopes and the mention of the test file

* Pending tasks to github issues

* Blank lines are not needed

* Oerder is important

* adding copyright to daml test file

* Adding comment example
2019-04-17 18:21:07 +00:00
Martin Huschenbett
7d346e2299 Rename DA.Private.TextMap into DA.TextMap (#573)
* Rename DA.Private.TextMap into DA.TextMap

Also clean up the code a bit.

* Add Ord instance for TextMap back

* Fix language server test
2019-04-17 17:51:36 +00:00
Moritz Kiefer
a8b16832e7 Split mvn step in quickstart example in two commands (#578)
This should hopefully make those commands seem a bit less like a
blackbox and help users understand why the second command might fail.
2019-04-17 17:21:46 +00:00
Gabor Aranyossy
1b56d4385e Extracting large command test from TransactionServiceIT (#566)
* extracting large command test from TransactionServiceIT

* make `preprocessCommands` more performant (see comment)

* fix duplicated command generation in `preprocessCommands`

* enable in-memory test-fixture as well
2019-04-17 16:20:56 +00:00
Gary Verhaegen
1697e764bd
release 0.12.7 (#579) 2019-04-17 16:41:35 +01:00
Remy
de69ed61db
Leger Api. Simplify Ledger Api domain (#577)
* drop domain.Identifier in favor of Ref.Identifier
* drop domain.Party in favor of Ref.Party
2019-04-17 17:03:23 +02:00
Neil Mitchell
87d0330f50
Reorganize damlc to put the test stuff in a separate module (#569)
* Reorgnaise damlc to put the test stuff in a separate module

* Clean up now-redundant block comments

* HLint

* Fix a changed import
2019-04-17 15:14:31 +01:00
Gary Verhaegen
d1fd0c039b
strictify mergify (#576) 2019-04-17 14:25:36 +01:00
Martin Huschenbett
a657960ac0
Implement TextMap.toList (2nd attempt) (#508)
Implement the compiler logic needed to expose DAML-LF's `MAP_TO_LIST` as
`TextMap.toList` in the surface language.

This is part of #409. The type definition and module need to be put in the
right place before I consider this done. Once it's done, I'll add it to the
release notes.
2019-04-17 13:28:38 +02:00
Michał Majcherski
e8e5c3e42e
windows: full build; more targets (#529) 2019-04-17 10:56:28 +02:00
Francesco Mazzoli
96eb060a22
no strict merge in mergify (see comment) (#565) 2019-04-17 10:40:42 +02:00
Jussi Mäki
5233574d38 Add semantic test for the reference server (#424)
* Add semantic test for the reference server

Currently the semantic test is failing. Likely due to the
location annotation changes.

* Do not compare location annotations in isReplayedBy

The location annotations may not, and do not need to, match due to the
fact that the reconstructed update expression may not exactly match
the original one, and since the interpreter currently picks the closest
location annotation we cannot guarantee that they exactly match.

* scalafmt.

* buildifier.

* client_server_test: Increase timeout to 60s

Spawning a JVM-based server can easily take a long time on a very
loaded system (e.g. when running `bazel test //ledger/...` with enough
parallelism), so better have a high default timeout.

* ledger/api-server-damlonx: Address code review

* Fix client_server_test runner compilation. Bump timeout.

* Mark the reference server semantic test exclusive

* fmt reference/BUILD.bazel
2019-04-17 10:35:47 +02:00
Gabor Aranyossy
2ffe3fe8b4 making SQL Ledger reset-able (#559)
* making SQL Ledger resetable

* fixing compile errors

* enabling the test for the SQL Ledger
2019-04-17 08:30:16 +00:00
Moritz Kiefer
b206d0d8ac Add reference for passing -j 200 to Bazel (#562) 2019-04-17 09:46:43 +02:00
Rohan Jacob-Rao
7c473ab185
Improve error message for ambiguous data types (#518)
Use the type and data constructor names that the user actually wrote in the error message, instead of using the data Foo = Foo example.
2019-04-17 12:20:59 +10:00
Bernhard Elsner
b2062e6ee9
Explain failure of fetch in StdLib docs (#490)
* Explain failure of `fetch` in StdLib docs

* Explain `fetch` failure in DAML Reference docs

* bump integration tests timeout further, still seems to be flaky
2019-04-16 19:53:51 +02:00
Gary Verhaegen
84099b1f93 fix the other typo in build.sh (#554) 2019-04-16 17:39:14 +00:00
Gary Verhaegen
0b41238438
enable mergify (#553) 2019-04-16 18:16:30 +01:00
Remy
e6dbb07921
language-support: fix ScalaCodeGenIT test (#425) 2019-04-16 19:03:15 +02:00
Gabor Aranyossy
d7966eb440
porting ResetServiceIT to the common testing suite (#552) 2019-04-16 18:40:09 +02:00
Leonid Shlyapnikov
d0d691765b
Remove compiler option that turned off fatal-warnings (#549)
* Remove compiler option that turned off fatal-warnings

The deprecated calls have been already addressed by someone
else.

* Remove `-deprecation` it is enforced throught common_scalacopts
2019-04-16 12:27:39 -04:00
Gary Verhaegen
b85c54074c
fix typo in build script (#551) 2019-04-16 17:26:56 +01:00
Moritz Kiefer
01602036f1
Build project automatically in "daml start" (#545)
* Build project automatically in "daml start"

This gives us an interface that more closely resembles "da start" and
is also more convenient for users.

* Make it clear what DamlAssistantPath points to
2019-04-16 18:12:31 +02:00
Bernhard Elsner
88ffcdbdc3
I change all the curl commands in quickstart to use correct port (#534)
* I change all the `curl` commands in quickstart to use correct port

* Fix up quickstart
2019-04-16 17:57:22 +02:00
Gary Verhaegen
5995084eba
fix azure syntax for release job (#546) 2019-04-16 16:56:50 +01:00
Francesco Mazzoli
9fd5b525b5
store sandbox perf test results as artifacts (#540) 2019-04-16 17:43:29 +02:00
Fran
463029a078
Added daml assistant exec command. (#543)
* Added daml assistant exec command.

* Fix lint.

* Forward -h and --help as well.
2019-04-16 17:24:54 +02:00
Bolek@DigitalAsset
40d77c3b9d
webide: update docker image to handle typescript (#516) 2019-04-16 15:02:11 +00:00
Remy
6d96433044 improve command compilation (#426)
* daml engine: improve command compilation performance
2019-04-16 16:51:25 +02:00
Gary Verhaegen
bef7f758cb
release 0.12.6 (#539) 2019-04-16 15:44:20 +01:00
Robin Krom
9a2a8a50d7
language: don't check for deprecated pkgDb anymore (#538)
This removes a left over check in Compiler/Options for the deprecated
package db that has been removed.
2019-04-16 16:31:00 +02:00
Robert Autenrieth
e2c79b27cf Fix broken link (#530)
* Fix broken link

* remove old daml-lf spec
2019-04-16 16:14:43 +02:00
Gary Verhaegen
2eeba4180e
add extension to build artifacts (#515) 2019-04-16 15:00:17 +01:00