Since https://github.com/digital-asset/daml/pull/17989
A simple heuristic to remind you to consider adding `run-all-tests: true` to your commit message if making changes in corners of the codebase most likely affected.
* Add test-daml-version-and-install script, fix more updating issues
* Test `daml install`, improve checks for snapshots.txt
run-full-compat: true
* bring diff into scope for test-daml-version-and-install.sh
* Use runfiles to locate daml in test-daml-version-and-install.sh
* Bound versions.is_at_least("2.7.5") for test-daml-version-and-install.sh
run-full-compat: true
* Add logged diffing to diagnose issue
run-full-compat: true
* Add diff to data of test-daml-version-and-install.sh
run-full-compat: true
* Fix `daml install` call breaking - cache should still be refreshed
* Address minor issues: Daml 10.x.y matching, quoting, wrong comment
run-full-compat: true
* Drop printing
* Improve logging for test-daml-version-and-install.sh
* Fix undercased variable name DAML_CACHE, rerun CI
run-full-compat: true
* disable on windows
run-full-compat: true
Old version is not available anymore.
Also revert the latest canton bump as the canton artifacts have changed.
Co-authored-by: Remy Haemmerle <Remy.Haemmerle@daml.com>
* Update to rules_haskell v0.16
* Update comments re bazel patches
* clean up bazel overrides
* Upgrade to Bazel 5.2.0
* Remove '--distinct_host_configuration=false'
* Update buildifier to 6.3.2
* Suffix macos and ubuntu caches with yyyymm
* bump windows cache to v14
* [REVERTME] bump linux/macos/darwin timeout to 4h
The output of `cd` might be altered by `CDPATH` set on a
system, leading to `dade` being broken because it cannot
read the current path. Instead, using `readlink -f` seem
to get the job done without side effects.
I've seen a handful of failures of the form:
```
>> Installing 'nsis-3.04' ...
<< Unknown state:
Installing 'nsis-3.04' (3.04) [64bit]
The request was aborted: Could not create SSL/TLS secure channel.
URL https://downloads.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04.zip is not valid
<< Unknown state:
Installing 'nsis-3.04' (3.04) [64bit]
The request was aborted: Could not create SSL/TLS secure channel.
URL https://downloads.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04.zip is not valid
At D:\a\3\s\dev-env\windows\libexec\core.ps1:159 char:13
+ throw $msg
+ ~~~~~~~~~~
+ CategoryInfo : OperationStopped: (<< Unknown stat...s not valid
:String) [], RuntimeException
+ FullyQualifiedErrorId : << Unknown state:
Installing 'nsis-3.04' (3.04) [64bit]
The request was aborted: Could not create SSL/TLS secure channel.
URL https://downloads.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04.zip is not valid
```
on CI recently. Hopefully this will fix it. As usual, you can check that
the file is the same because the hash has not changed.
* Add `pre-commit` tool to dev-env
* Add pre-commit configuration
Fixes#15522
* Install pre-commit hooks inside the nix shell
* Limit buildifier hook to files to be comitted
The `:buildifier-fix` tool always runs on all Bazel files (by calling `find`),
which is not useful when using pre-commit.
* Install pre-commit hook only when `DADE_NO_PRE_COMMIT` is unset
Since direnv does not execute the shellHook, install in `.envrc` too.
At this point it's mostly a Vim syntax plugin for the pre-open-source,
pre-GHC version of Daml, as the "last udpated in 2015" comment attests.
For setting up Vim for Daml code editing, see this [forum thread].
CHANGELOG_BEGIN
CHANGELOG_END
[forum thread]: https://discuss.daml.com/t/daml-on-vim/465
Prior to this change the installation of msys2 would fail because packages fail
to validate their signature:
```
:: File /var/cache/pacman/pkg/perl-HTTP-Cookies-6.10-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP s
ignature)).
Do you want to delete it? [Y/n]
error: perl-Net-SSLeay: signature from "David Macek <david.macek.0@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-Net-SSLeay-1.90-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP
signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package)
```
CHANGELOG_BEGIN
CHANGELOG_END
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
* Add --ghc-repo-override flag to override GHC used in daml-sdk-head build
CHANGELOG_BEGIN
CHANGELOG_END
* Add BAZEL_MODE_FLAGS to third `bazel build` call
Azure is telling us to stop using 2019, so I've updated the job to be
compatible with 2022. (And future Windows images, too.)
CHANGELOG_BEGIN
CHANGELOG_END
The binary should be called `cs`, the full `coursier` name causes the following error
```
/path/to/digital-asset/daml/dev-env/bin/../lib/dade-common: line 143: /nix/store/hsbnxsgqhaxavqdwmqyvcdp3ng22gvaf-coursier-2.0.16/bin/coursier: No such file or directory
```
changelog_begin
changelog_end
Process:
- `git ls-files -z | xargs -0 -n 100 sed -i --follow-symlinks 's/DAML/Daml/g'`
- `git add -p`
- `git restore -p`
- Check there is no unstaged change left.
To review:
- Check for false positives by carefully reviewing the diff in this PR.
- Check for false negatives with `git grep DAML`.
- Quicker check for fals positives:
```
git grep DAML | grep -v migration | grep -v DAML_
```
Fixes#13190
Note: This is the "second half" of #13191, which failed to cover all the
remaining DAMLs because of:
```
$ git ls-files | grep "'"
compiler/damlc/tests/daml-test-files/MangledScenario'.daml
```
CHANGELOG_BEGIN
CHANGELOG_END
This should hopefully get CI working again.
There are two changes in here:
1. We can no longer change our patched Bazel. I didn’t switch away
from the current patched version for now (we upload it to gcp bucket
so it still works fine even if we cannot build it) but if we upgrade,
we need to go to an unpatched version for now.
2. We need to get `az` from dev-env. I tested the self service compat
job stuff and it works fine with this but there is a chance other
parts don’t.
changelog_begin
changelog_end
* Drop 7zip from Windows dev-env
The download has flaked a few times over the last few days and if we
don’t need it, there’s no point in worrying about it.
changelog_begin
changelog_end
* .
changelog_begin
changelog_end
* Revert "."
This reverts commit 56c2d23ddf.
* Upgrade msys2
We’ve seen some weird errors with outdated signatures and it seems
plausible that an upgrade may help.
changelog_begin
changelog_end
* .
changelog_begin
changelog_end
I didn’t even know alp existed and this is definitely not the right
repo for Scala vim syntax defs. I’ve kept the daml def for now at
least since it’s at least in the right repo even if unmaintained.
Also seems very unfair towards emacs users to only have vim files.
changelog_begin
changelog_end
NodeJS 12 is eol in April and there are already packages (e.g. vsce)
that dropped support. We probably should upgrade even further but for
now I’m going with the most conservative approach.
changelog_begin
changelog_end
* devenv: Factor out a function to get the Nix version.
* devenv: On newer versions of Nix, use `NIX_USER_CONF_FILES`.
This stacks, rather than overwrites.
* devenv: Append Nix caches, instead of overwriting them.
The "extra-" prefix tells Nix to append.
We also switch to non-deprecated configuration keys.
CHANGELOG_BEGIN
CHANGELOG_END
* devenv: Just require Nix v2.4 or newer.
* devenv: `NIX_USER_CONF_FILES` may not be set already.
Somewhat error-prone, so please review carefully.
Reasons we need this:
- Some file types are not properly handled by the script.
- The only exclusion mechanism we currently have (`NO_AUTO_COPYRIGHT`)
is overly coarse.
CHANGELOG_BEGIN
CHANGELOG_END
New year, new copyright, new expected unknown issues with various files
that won't be covered by the script and/or will be but shouldn't change.
I'll do the details on Jan 1, but would appreciate this being
preapproved so I can actually get it merged by then.
CHANGELOG_BEGIN
CHANGELOG_END
The corresponding Nix attribute is missing
```
$ xxd
[dev-env] Building tools.xxd...
error: attribute 'xxd' in selection path 'tools.xxd' not found
[dev-env] Build of tools.xxd has failed!
```
changelog_begin
changelog_end
Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
* Bump go rules
Was debugging something else and this seemed simple enough to factor
it out.
changelog_begin
changelog_end
* Bump Bazel on Windows
changelog_begin
changelog_end
* bump bazel manifest
changelog_begin
changelog_end