daml/compiler
Moritz Kiefer 15b1058a3f
Fix race in doctest integration tests (#6364)
Doctests generate a temporary file in .daml/generated. This works fine
as long as you only run one instance at the same time. However, those
tests here run in parallel and they run in the same working directory
even though we create a temporary directory for the source file. This
means that occasionally (very rarely, I still haven’t managed to
reproduce it locally) the two tests overwrote each other’s file and
you end up with a mess.

There are two solutions here:

1. Disable parallel tests.
2. Remove the working directory as global state and instead use tmpDir
   as the working directory.

Nobody likes global state so I went with 2.

I ran 500 iterations of this test on CI on all 3 platforms and got not
a single failure so I’m reasonably confident this fixes the issue.

changelog_begin
changelog_end
2020-06-16 13:46:32 +02:00
..
daml-extension update various yarn lock and package json files to resolve security vulnerabilities (#6319) 2020-06-12 11:35:37 -04:00
daml-lf-ast damlc inspect: Add output modes with less details (#6280) 2020-06-10 08:12:07 +00:00
daml-lf-proto Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
daml-lf-reader replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
daml-lf-tools damlc: Run simplifier on templates as well (#6286) 2020-06-15 11:24:25 +00:00
daml-lf-verify damlc: Run simplifier on templates as well (#6286) 2020-06-15 11:24:25 +00:00
daml-licenses replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
damlc Fix race in doctest integration tests (#6364) 2020-06-16 13:46:32 +02:00
ghcide Get ghcide from the new upstream repo (#2867) 2019-09-11 08:57:48 +02:00
hie-core Get ghcide from the new upstream repo (#2867) 2019-09-11 08:57:48 +02:00
lsp-tests Turn warnings for module name/record name mismatches into errors (#5266) 2020-03-30 10:21:53 +00:00
repl-service Ledger id requirement (#6323) 2020-06-12 15:00:32 +00:00
scenario-service Ledger: use standard transactions in the indexer (#6297) 2020-06-11 16:12:21 +02:00
README.md open-sourcing daml 2019-04-04 09:33:38 +01:00

DAML Compiler

This directory contains several libraries used by and the executable for the DAML compiler.

Libraries

  • daml-lf-ast: The DAML-LF AST and type checker.