Commit Graph

6494 Commits

Author SHA1 Message Date
Remy
ddde5f51f4
LF: Check we can handle template with at least 120 fields. (#8822)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-11 18:29:03 +00:00
nickchapman-da
fa97743520
Renaming, prep for exceptions in speedy PR. (#8818)
Renaming:

    `SECatch` --> `SECatchSubmitMustFail`
    `tryHandleException` --> `tryHandleSubmitMustFail`
    `KCatch` --> `KCatchSubmitMustFail`

These existing types/functions are renamed to make it clear they *dont* relate to our _new_ exceptions, but are part of the legacy mechanism for handling _scenario/submit-must-fail_.

changelog_begin
changelog_end
2021-02-11 17:36:11 +00:00
Robin Krom
49d957bec1
damlc: show test coverage (#8810)
* damlc: show test coverage

We add output to show percentage of created templates and executed
choices for `damlc test`.

This fixes #6370.

CHANGELOG_BEGIN
[damlc] Feature: Test coverage is reported for `damlc test`.
CHANGELOG_END

* added a test

* Update compiler/damlc/lib/DA/Cli/Damlc/Test.hs

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

* suggestions

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
2021-02-11 17:08:41 +01:00
azure-pipelines[bot]
ef6191131d
update compat versions for 1.10.0-snapshot.20210209.6265.0.19bf4031 (#8797)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2021-02-11 16:39:18 +01:00
Gary Verhaegen
7c671037de
try to improve macOS install instructions (#8764)
* try to improve macOS install instructions

Based on [feedback from Khuram] on the forum.

[feedback from Khuram]: https://discuss.daml.com/t/my-feedback-on-daml-in-general-and-documentation-as-a-non-coder/2043/6?u=gary_verhaegen

CHANGELOG_BEGIN
CHANGELOG_END

* .

* .

* mention code is not required

* undo changes to vscode install docs

* remove echo $0
2021-02-11 14:04:41 +00:00
Bernhard Elsner
a1b4db86f3
Turn all Daml Intro templates into full projects (#8814)
* Turn all Daml Intro templates into full projects

CHANGELOG_BEGIN
CHANGELOG_END

* Fix paths
2021-02-11 13:07:50 +00:00
Moritz Kiefer
9dc3d2ace4
Upgrade to Bazel 4.0 (#8798)
* Upgrade to Bazel 4.0

changelog_begin
changelog_end

* Go back to default assignment

changelog_begin
changelog_end
2021-02-11 10:08:47 +01:00
Gary Verhaegen
eb14dcf6e9
bump check_releases timeout (#8812)
It's become quite flaky at just 4h.

Yes, I do plan to actually fix it, but it may take a while.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 22:45:25 +00:00
Brian Healey
dd73af06fb
replace deprecated blackduck property (#8811)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 19:54:31 +00:00
Samir Talwar
8cc63c4858
kvutils/tools: Make it clear that IntegrityChecker.run exits. (#8809)
By renaming the function to `runAndExit`.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 18:21:32 +00:00
Gary Verhaegen
95c2184dcc
bump disk cleanup threashold (#8807)
I've seen [a build] failing with "disk full" after starting with 41GB
free.

[a build]: https://dev.azure.com/digitalasset/daml/_build/results?buildId=69270&view=logs&j=870bb40c-6da0-5bff-67ed-547f10fa97f2&t=deecee86-545a-596e-8b0d-fb7d606fe9f2

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 13:39:29 +00:00
Remy
c5f0b3636c
LF: Refactor PartialTransaction Context (#8804)
This prepares the introduction of rollback node.

This is part of #8020.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 14:12:57 +01:00
Gary Verhaegen
8c45fd6afd
Revert "Disable MacOS CI jobs" (#8806)
This closes INCIDENT-126. Thanks @nycnewman!

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-10 12:59:03 +01:00
Gary Verhaegen
bdf4095735
docs: remove references to create-daml-app repo (#8805)
* docs: remove references to create-daml-app repo

Hopefully that's all of them. Thanks to Alexander Bernauer for reporting
on [the forum].

[the forum]: https://discuss.daml.com/t/type-script-support-dropped-with-sdk-1-9-0/2054/6?u=gary_verhaegen

CHANGELOG_BEGIN
CHANGELOG_END

* remove template link
2021-02-10 11:45:59 +00:00
azure-pipelines[bot]
6289b610ec
update NOTICES file (#8801)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2021-02-10 12:22:33 +01:00
Moritz Kiefer
e196a7cc73
Clarify documentation around --project-root (#8790)
fixes #8783

changelog_begin
changelog_end
2021-02-10 12:03:59 +01:00
azure-pipelines[bot]
45810f15be
rotate release duty after 1.10.0-snapshot.20210209.6276.0.6ba86850 (#8800)
@SamirTalwar-DA is taking care of 1.10.0-snapshot.20210209.6276.0.6ba86850 (#8799), so they get pushed back to the end of the line.

Please do not merge this before #8799.

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2021-02-10 10:25:56 +00:00
Moritz Kiefer
f14a8c14dd
Disable MacOS CI jobs (#8803)
* Disable MacOS CI jobs

5/6 macos nodes are down and we cannot fix it quickly, so to unblock
everyone, let’s disable those jobs for now.

I deliberately did not remove MacOS from releases. Those really should run on MacOS.

changelog_begin
changelog_end

* Undo unnecessary changes

changelog_begin
changelog_end

* Allow skipping macos jobs

changelog_begin
changelog_end
2021-02-10 10:29:21 +01:00
azure-pipelines[bot]
6ba868509a
update NOTICES file (#8787)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <support@digitalasset.com>
2021-02-09 17:16:04 +01:00
Gary Verhaegen
8c13dab5cc
docs: try to improve script --input-file (#8793)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 14:14:35 +00:00
Moritz Kiefer
9bf6935774
Clarify docs around --contract-id-seeding=no (#8796)
changelog_begin
changelog_end
2021-02-09 14:02:12 +00:00
Moritz Kiefer
8747b056a3
Factor out shared DAR encoder (#8794)
* Factor out shared DAR encoder

changelog_begin
changelog_end

* Update daml-lf/archive/encoder/BUILD.bazel

Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>

* Add a version of encode that takes a Path and document stream closing

changelog_begin
changelog_end

Co-authored-by: Andreas Herrmann <42969706+aherrmann-da@users.noreply.github.com>
2021-02-09 13:53:46 +00:00
Moritz Kiefer
b66f1ba269
Delete unused python36 nix derivations (#8795)
changelog_begin
changelog_end
2021-02-09 13:36:06 +01:00
Moritz Kiefer
40e1a39f2c
Port //triggers/... to Scala 2.13 (#8781)
changelog_begin
changelog_end
2021-02-09 13:35:05 +01:00
Samir Talwar
d4e0d8b8be
Release 1.10.0-snapshot.20210209.6265.0.19bf4031. (#8791)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 12:34:17 +00:00
Sofia Faro
2943c4089c
Pick up user-defined exceptions in LFConversion. (#8777)
This uses a "DamlException" tag to annotate which types should
be exported as exceptions. This tag will be added during the
desugaring of exceptions.

The code that scrapes for the HasMessage instance is based on the
corresponding template instance scraping code, but simplified since
we only have to pick up one instance. If we decide to pack more
information into the DefException structure in the future, we can
easily extend this.

This PR also adds a small test to make sure that a user-defined
exception is exported as such.

changelog_begin
changelog_end
2021-02-09 12:27:09 +00:00
Moritz Kiefer
dded2bdd80
Upgrade jest to address node-notifier security vulnerability (#8792)
Versions < 8.0 are vulnerable. Jest pulls this in as a transitive dependency.

changelog_begin
changelog_end
2021-02-09 13:07:51 +01:00
Gary Verhaegen
cd33c2015c
ci: use setvar to set variables (#8664)
My goal here is to investigate the new warning Azure has been showing
for the past few days:

> ##[warning]%25 detected in ##vso command. In March 2021, the agent command parser will be updated to unescape this to %. To opt out of this behavior, set a job level variable DECODE_PERCENTS to false. Setting to true will force this behavior immediately. More information can be found at https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/design/percentEncoding.md

As far as I'm aware we are not deliberately passing in any `%25` in any
of our `vso` commands, so I was a bit surprised by this.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 11:42:34 +01:00
Gary Verhaegen
2143862a79
ci/prs: add artifactory credentials (#8752)
Changes already made on both Artifactory and Azure; this is mainly to
test.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 10:36:15 +00:00
Gerolf Seitz
19bf4031f5
Instrument Ledger API and DbDispatcher threadpools (#8789)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 10:05:49 +00:00
Moritz Kiefer
75fded8b75
Bump marked dependency (#8788)
There is a security vulnerability in the older version.

changelog_begin
changelog_end
2021-02-09 09:47:05 +00:00
Samir Talwar
31b122f745
integrity-checker: Reintroduce an interface for comparing write sets. (#8786)
Apparently this is used, just outside of this repository. Sorry for
breaking it.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-09 08:38:20 +00:00
Remy
1d415b9117
Fix Codec Benchmark for LF 1.12 (#8784)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-08 21:45:02 +01:00
Gary Verhaegen
01b242789d
ts: remove mention of create-daml-app (#8782)
Thanks to Alexander Bernauer for reporting this on [the forum].

[the forum]: https://discuss.daml.com/t/type-script-support-dropped-with-sdk-1-9-0/2054/4

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-08 17:28:17 +00:00
Gary Verhaegen
cfae2d88f5
update Terraform files to match reality (#8780)
* fixup terraform config

Two changes have happened recently that have invalidated the current
Terraform files:

1. The Terraform version has gone through a major, incompatible upgrade
   (#8190); the required updates for this are reflected in the first
   commit of this PR.
2. The certificate used to serve [Hoogle](https://hoogle.daml.com) was
   about to expire, so Edward created a new one and updated the config
   directly. The second commit in this PR updates the Terraform config
   to match that new, already-in-prod setting.

Note: This PR applies cleanly, as there are no resulting changes in
Terraform's perception of the target state from 1, and the change from 2
has already been applied through other channels.

CHANGELOG_BEGIN
CHANGELOG_END

* update hoogle cert
2021-02-08 17:25:04 +00:00
Robin Krom
8145f0b94f
npm: check that package-lock.json gets updated (#8758)
This adds a test to see that package.lock gets updated if a package gets
added in the generated js dependencies.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-08 18:16:19 +01:00
Moritz Kiefer
90068b00cd
Release another 1.10 snapshot (#8778)
changelog_begin
changelog_end
2021-02-08 18:15:52 +01:00
Moritz Kiefer
61feb5bf2b
Fix Daml Script dump integration tests (#8779)
Hardcoded 0.0.0 breaks on the release build :(

changelog_begin
changelog_end
2021-02-08 16:54:46 +01:00
Moritz Kiefer
beb8a2a9ba
Port parts of //ledger-service to Scala 2.13 (#8776)
Unfortunately missing the actual interesting part since porting
`partitionBimap` seems to be rather annoying but this at least gets us
started on the easy parts.

changelog_begin
changelog_end
2021-02-08 11:27:50 +00:00
Moritz Kiefer
773ddada04
Upgrade nixpkgs (#8190)
* Upgrade nixpkgs

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* No ibazel

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* Switch agent pool

changelog_begin
changelog_end

* .

* .

changelog_begin
changelog_end
2021-02-08 11:12:07 +00:00
Remy
110c4a32e2
Participant: Log when the system block on gathering entropy (#8759)
CHANGELOG_BEGIN
CHANGELOG_END
2021-02-08 10:41:57 +01:00
Samir Talwar
e2f5aa1b07
ledger-api-test-tool: Increase the dedup time in CommandDeduplicationIT. (#8765)
The deduplication time was hard-coded to 3 seconds, which can be too
short for some ledgers; the command may have expired by the time it gets
to the commit stage.

In order to avoid spurious errors, this multiplies the deduplication
time by the timeout scale factor, allowing the ledger operator to
control the deduplication timeouts in the same way as all test timeouts.

CHANGELOG_BEGIN
- [Ledger API Test Tool] The CommandDeduplicationIT now sets the
  deduplication timeout on commands using the parameter passed to
  `--timeout-scale-factor`, allowing it to run on ledger configurations
  that require more than 3 seconds to commit a submission.
CHANGELOG_END
2021-02-05 19:24:18 +00:00
Robert Autenrieth
cd66cfcb5a
Run the ledger api test tool with dev packages (#8695)
* Add CLI options to enable daml-lf dev version

* Compile test-common with multiple compiler versions

* Run the ledger API test tool with multiple compiler versions

changelog_begin
changelog_end

* Fix scaladoc issues

* Apply reviewer comments

regarding lf_preview_version
2021-02-05 17:53:31 +01:00
Moritz Kiefer
6c29f95c61
Add a CI job for testing against Oracle DB (#8763)
* Add a CI job for testing against Oracle DB

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* Cleanup

changelog_begin
changelog_end

* .

changelog_begin
changelog_end

* debug

changelog_begin
changelog_end

* no debugging

changelog_begin
changelog_end
2021-02-05 17:36:56 +01:00
Moritz Kiefer
cf3d0876af
Add a prototype for DAML Script dumps (#7934)
* Add a prototype for DAML Script dumps

This is still fairly rough unfortunately but it does at least have
some tests and it doesn’t interact with anything else, so hopefully we
can land this and then parallelize the work from there on.

changelog_begin
changelog_end

* Update daml-script/dump/src/main/scala/com/daml/script/dump/Encode.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* view all the things

changelog_begin
changelog_end

* Update daml-script/dump/src/main/scala/com/daml/script/dump/Dependencies.scala

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>

* Fixup the switch to exists

changelog_begin
changelog_end

Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2021-02-05 13:19:20 +01:00
Remy
e2c7dd05cc
tag the docker image build locally (#8760)
This was forgotten in #8745

also add a missing ''\" in the bash script.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-05 11:07:07 +01:00
Samir Talwar
9c477ffdf5
ledger-on-memory: Only support pre-execution. [KVL-821] (#8757)
* ledger-on-memory: Rename `PreExecutingOwner` to just `Owner`.

* ledger-on-memory: Push the committer execution context up a little.

* ledger-on-memory: Use pre-execution in tests, not batching.

* ledger-on-memory: Remove support for batching submissions.

Pre-execution is pretty much always faster; let's use it.

CHANGELOG_BEGIN
CHANGELOG_END

* ledger-on-memory: Simplify construction.

Now we only support pre-execution, we can be less general.
2021-02-05 08:56:55 +00:00
Robin Krom
e79966b890
ghcide: cached goto definitions (#8751)
We update ghcide, which enables cached goto definitions that keep
working when the document doesn't compile anymore. This also adds a test
to lsp-tests for this feature.

CHANGELOG_BEGIN
CHANGELOG_END
2021-02-04 21:05:12 +01:00
Stefano Baghino
2dbeb7e27c
Fix typos in docs (#8761)
Originally reported in https://discuss.daml.com/t/my-feedback-on-daml-in-general-and-documentation-as-a-non-coder/2043

Standardise (sic) to US English spelling. ;-)

Typos

acessToken -> accessToken
assignement -> assignment
calulated -> calculated
certicates -> certificates
comitted -> committed
commited -> committed
conctract -> contract
corrseponding -> corresponding
couteroffer -> counteroffer
Decmial -> Decimal
desireable -> desirable (archaic)
Distpute -> Dispute
encoutered -> encountered
enviroment -> environment
Exercse -> Exercise
exeuction -> execution
familiarise -> familiarize (British spelling)
fistName -> firstName
follwing -> following
fullfil -> fulfill (fulfil would be British spelling)
intepretation -> interpretation
leger -> ledger
lookupBeyKey -> lookupByKey
Messsaging -> Messaging
mimick -> mimic
Modelling -> Modeling (British spelling)
occured -> occurred
Partipant -> Participant
partiuclarly -> particularly
possibiy -> possibly
PostreSQL -> PostgreSQL
preceed -> precede
preceeding -> preceding
preferrable -> preferable
programatically -> programmatically
prohibitied -> prohibited
readyness -> readiness
Readyness -> Readiness
resepond -> respond
similiar -> similar
snipppets -> snippets
somone -> someone
succintly -> succinctly
transacion -> transaction
transfering -> transferring
transferrable -> transferable

I was surprised by the last two.

I hope this commit message does not contain any typo.

changelog_begin
changelog_end
2021-02-04 19:44:15 +01:00
Samir Talwar
c212fe9407
integrity-checker: Switch to pre-execution. [KVL-822] (#8743)
* kvutils: Extract out a `WriteSetSelector`.

We want to replace this with one that's always successful in the
integrity checker.

* integrity-checker: Better logging when the write sets are different.

* integrity-checker: Switch to pre-execution.

The batching support is still there for now, just unused.

Tests are now run using pre-execution exports.

CHANGELOG_BEGIN
CHANGELOG_END

* integrity-checker: Attempt to fix the Scala 2.13 build.

* integrity-checker: Improve comments.

Co-authored-by: Fabio Tudone <fabio.tudone@digitalasset.com>

* kvutils: Rename a couple of parameters.

* integrity-checker: Pull out write set comparison functions into a class.

And move all the tests to its test class.

* integrity-checker: Fix logging output.

We don't need all those DEBUG logs.

* integrity-checker: Add tests for pre-execution committing.

* integrity-checker: Be friendly towards Windows newlines in tests.

Co-authored-by: Fabio Tudone <fabio.tudone@digitalasset.com>
2021-02-04 15:32:42 +00:00