Commit Graph

23 Commits

Author SHA1 Message Date
Gary Verhaegen
8539873d84
document shared memory segment issue (#6546)
document shared memory segment issue

After discussion with @SamirTalwar-DA, we agree the CI script to clear
memory segments is a bit too dangerous to make it easy to run on
developer machines. Still, developers may run into similar issues if
they run lots of tests and/or do not reboot their laptop frequently.
On developer laptops, we  usually spawn one PostgreSQL instance per
build/test that needs it (as opposed to CI where we create a single one
for the entire build; see `build.sh`), so they can actually build up
fairly quickly in some scenarios.

As an alternative, I have added a section to the README to cover what to
do if that issue happens.

CHANGELOG_BEGIN
CHANGELOG_END
2020-06-30 17:48:14 +02:00
Moritz Kiefer
2c1d4cb805
Fix nix installation (#6400)
Nix now requires -L, I’ve gone ahead and just normalized everything to
use -sfL which we were already using in one place.

changelog_begin
changelog_end
2020-06-18 10:34:08 +02:00
Brian Healey
46e81d99a4
Trivial whitespace change to readme to trigger updated changelog entry (#6393)
CHANGELOG_BEGIN
[DAML Integration Kit]
- LfValueTranslation.Cache now requires separate configuration of lfValueTranslationEventCache and lfValueTranslationContractCache
CHANGELOG_END

Signed-off-by: Brian Healey <brian.healey@digitalasset.com>
2020-06-18 08:12:14 +02:00
Gary Verhaegen
878429e3bf
update copyright notices to 2020 (#3939)
copyright update 2020

* update template
* run script: `dade-copyright-headers update .`
* update script
* manual adjustments
* exclude frozen proto files from further header checks (by adding NO_AUTO_COPYRIGHT files)
2020-01-02 21:21:13 +01:00
Brian Healey
2caa0dbfc5 README reformat on line break (#3892)
CHANGELOG_BEGIN
- [DAML Ledger Integration Kit] Move to asyncronous package management service (#3806)
- [DAML Ledger Integration Kit] Fix indexer crash on duplicate submission.  See #3847
- [DAML Ledger Integration Kit] Standardize and cleanup metric names to use underscores that are compatible with Prometheus
- [DAML Ledger Integration Kit] Add FailingCommandsIT and CommandSubmissionCompletion to Ledger test tool suite. Some of the tests previously part of the CommandService Ledger API Test Tool suite have been moved to a new home in CommandSubmissionCompletion to reflect the fact that those use the submission/completion workflow instead of leveraging the submit-and-wait alternatives.
CHANGELOG_END

Signed-off-by: Brian Healey <brian.healey@digitalasset.com>
2019-12-18 15:22:49 +00:00
Andreas Herrmann
33e47828e3
Bazel 1.1 (#3249)
* bazel: 0.28.1 --> 1.1.0

* bazel-watcher sha256

* Fix missing line in patch

* proto_source_root --> strip_import_prefix

See https://github.com/bazelbuild/bazel/issues/7153 for details.

* Update rules_nixpkgs

Required to avoid errors of the form
```
ERROR: An error occurred during the fetch of repository 'node_nix':
   parameter 'sep' may not be specified by name, for call to method split(sep, maxsplit = None) of 'string'
```

and
```
ERROR: An error occurred during the fetch of repository 'node_nix':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 149
		_execute_or_fail(repository_ctx, <3 more arguments>)
	File "/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 318, in _execute_or_fail
		fail(<1 more arguments>)

Cannot build Nix attribute 'nodejs'.
Command: [/Users/runner/.nix-profile/bin/nix-build, /private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/node_nix/nix/bazel.nix, "-A", "nodejs", "--out-link", "bazel-support/nix-out-link", "-I", "nixpkgs=/private/var/tmp/_bazel_runner/17d2b3954f1c6dcf5414d5453467df9a/external/nixpkgs/nixpkgs"]
Return code: 1
Error output:
src/main/tools/process-tools.cc:173: "setitimer": Invalid argument
```

* Update rules_scala

* .proto has been removed, use [ProtoInfo] instead

See
https://docs.bazel.build/versions/1.1.0/be/protocol-buffer.html#proto_library

* python3_nix add nix_file attribute

To avoid the following error

```
ERROR: /home/aj/tweag.io/da/da-bazel-1.1/BUILD:66:1: //:nix_python3_runtime depends on @python3_nix//:bin/python in repository @python3_nix which failed to fetch. no such package '@python3_nix//': Traceback (most recent call last):
        File "/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 149
                _execute_or_fail(repository_ctx, <3 more arguments>)
        File "/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/io_tweag_rules_nixpkgs/nixpkgs/nixpkgs.bzl", line 318, in _execute_or_fail
                fail(<1 more arguments>)

Cannot build Nix attribute 'python3'.
Command: [/home/aj/.nix-profile/bin/nix-build, "-E", "import <nixpkgs> { config = {}; overlays = []; }", "-A", "python3", "--out-link", "bazel-support/nix-out-link", "-I", "nixpkgs=/home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/nixpkgs/nixpkgs"]
Return code: 1
Error output:
error: anonymous function at /home/aj/.cache/bazel/_bazel_aj/5f825ad28f8e070f999ba37395e46ee5/external/nixpkgs/nixpkgs.nix:3:1 called with unexpected argument 'config', at (string):1:1
```

* rules_haskell unnamed string.split(_, maxsplit = _)

The keyword argument may no longer be named.

* string.replace(_, _, maxsplit = _) may not be named

* Move proto sources from deps to data

Fixes

```
ERROR: /home/aj/tweag.io/da/da-bazel-1.1/daml-lf/archive/BUILD.bazel:150:1: in deps attribute of scala_test rule //daml-lf/archive:daml_lf_archive_reader_tests_test_suite_src_test_scala_com_digitalasset_daml_lf_archive_DecodeV1Spec.scala: '//daml-lf/archive:daml_lf_1.6_archive_proto_srcs' does not have mandatory providers: 'JavaInfo'. Since this rule was created by the macro 'da_scala_test_suite', the error might have been caused by the macro implementation
```

* Define sha256 for haskell_ghc__paths

Bazel 1.1.0 fails on missing hashes.

* Disable --incompatible_windows_native_test_wrapper

* //compiler/daml-extension don't modify sources

Modifying sources in-place can cause issues on Windows, where build
actions are not sandboxed and changes on sources can affect other build
steps.

* bazel-genfiles --> bazel-bin

The bazel-genfiles symlink has been removed since Bazel 1.0.
See https://github.com/bazelbuild/bazel/issues/8651

* Mark dev_env_tool repository rule as configure

See
https://docs.bazel.build/versions/1.1.0/skylark/lib/globals.html#repository_rule

* Move data deps into data attribute

* Mark dev_env_tool as local = True

* Manually fetch @makensis_dev_env
2019-11-11 10:06:03 +01:00
Darko Pilav
1a84c007e5
Minor Docs fixes (#2277)
* Fix typo in README.md and stale link in CONTRIBUTING.md

* Fix minor typos in quickstart

* Fix various minor typos/mistakes in DAML Intro

* Make DAML code in quickstart-java example cleaner

Also update module hash as well as screenshots in docs
2019-07-25 16:02:42 +02:00
Moritz Kiefer
c66211d034
Document Haskell profiling and default to -fprof-auto (#1971) 2019-07-02 14:51:09 +02:00
Stefano Baghino
2bb9276ba7 Replace download shield in README (#1968) 2019-07-02 13:48:46 +01:00
Moritz Kiefer
7848b760d5 Update the state of the Windows SDK (#1773)
The defender warning seems to be gone in my tests.
2019-06-20 07:25:51 +00:00
Sofus Mortensen
3cfa0f7499 added tip/hack on how to get build working first time on mac (thx mor… (#1693)
* added tip/hack on how to get build working first time on mac (thx morritz)

* fix da-sdk-head -> daml-sdk-head
2019-06-17 11:03:02 +02:00
DavidM-D
4d83ff2c58 Fixed the windows installation instructions (#976) 2019-05-09 08:38:29 +02:00
Neil Mitchell
63c153ab3a
Update the README with instructions to install and use a local version (#688)
* Update the README with instructions to install and use a local version

* Add a warning about Windows earlier
2019-04-25 12:10:44 +01:00
Brian Healey
aa35cf676d
***NO_CI*** download sdk badge (#269)
* ***NO_CI*** download sdk badge

* correct download sdk link
2019-04-12 13:16:15 -04:00
Brian Healey
abede0923b
Apache2 badge (#272) 2019-04-05 20:48:32 -04:00
Brian Healey
550dde579c
Azure badges for daml (#267)
* Azure badges for daml

* Azure badges for damli correct linkwqs
2019-04-05 16:43:18 -04:00
Beth Aitman
be177b39d9
Make it clearer which are end user and contrib sections (#253) 2019-04-05 16:35:22 +02:00
Beth Aitman
8ab830a93d
Add mention of cd to setup instructions (#245)
* Add mention of cd to setup instructions

* Making instructions unambiguous

* Even clearer instructions

Co-Authored-By: bethaitman-da <42940582+bethaitman-da@users.noreply.github.com>
2019-04-05 14:40:15 +02:00
Remy
7a5dc1ba18
minor README.md improvment (#228)
* add a more visible link to www.daml.com
* add a short description about what is daml.
2019-04-05 08:55:39 +02:00
Beth Aitman
35a84c362d
Correct details about what bazel is doing (#227) 2019-04-04 22:18:06 +02:00
Beth Aitman
40ad0026ba
Tidying up the README (#196)
* Tidying up the README

* Tidying contributing page as well

* Apply review suggestion

Co-Authored-By: bethaitman-da <42940582+bethaitman-da@users.noreply.github.com>

* Address more review comments

* Address review comment
2019-04-04 18:04:12 +02:00
Tom Payne
c9147ed0da Fix repo path 2019-04-04 14:34:31 +02:00
Digital Asset GmbH
05e691f558 open-sourcing daml 2019-04-04 09:33:38 +01:00