Commit Graph

713 Commits

Author SHA1 Message Date
Remy
ea4085bd28
do not build canton as separate task (#18058) 2023-12-21 09:47:48 +01:00
Paul Brauner
56018b5d6e
do a proper canton 3.x code drop in the canton-3x directory (#17980)
* do a proper canton 3.x code drop in the canton-3x directory

* copy the code from canton3

* address Gary's comments

* fix canton-3x
2023-12-06 10:47:47 +01:00
azure-pipelines[bot]
aa67b0bf30
bump blackduck script to bee7a8c6 (#17984)
CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
2023-12-06 10:47:10 +01:00
dylant-da
40b5eb8476
Fix split release for deps (#17968)
* Resolve release version for sdk build checks

* lint

* lint

run-full-compat: true

* Simple test for using daml-script in release versions

* Fix build issues in tests using pSdkVersion

run-full-compat: true

* Fix build issues with DamlcIntegration

* fix bad sdk version being an invalid version

run-full-compat: true

* Fix the linux "mmap 4096 bytes at (nil): Cannot allocate memory" error

* Fix compat tests on Windows

run-full-compat: true

* test windows os correctly

run-full-compat: true

* temporarily disable canton_3x

run-full-compat: true

---------

Co-authored-by: Paul Brauner <paul.brauner@digitalasset.com>
2023-12-05 23:46:27 +01:00
Paul Brauner
1794212369
build canton 3x in the CI (#17966)
* build canton 3.x in build.yml

* Apply suggestions from code review

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* Apply suggestions from code review

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>

* apply suggestions

---------

Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-12-05 15:18:35 +00:00
Paul Brauner
e22f8bebd9
Run costly tests after only after merging (#17956)
* do not run pr-only tests on main, do not run main-only tests on prs

* split data dep tests into main-only and pr-only

* run non-dev conformance tests on main only
2023-12-04 10:52:33 +01:00
tudor-da
e9c4feb562
Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions (#17916)
* Make ci/build-canton-3x.sh work on MacOS by managing dir exclusions

* No need to add the cloned sources to git
2023-11-27 10:08:58 +00:00
Paul Brauner
18e0e9e656
Test that canton 3.x builds with bazel hourly (#17876)
* introduce a canton2 directory

* rename to canton-3x and only keep the bazel rules

* add canton-3x to bazelignore

* fix visibility rules

* add a build-canton-3x script

* add build-canton-3x.sh temporarily to prs.yml to test it out

* try sending a message to stack when failing

* backport 243125adee

* restore prs.yml and add the job to azure-cron.yml

* restore tell-slack-failed condition

* address comments

* display the revision at which canton was cloned, to ease debugging
2023-11-23 08:54:35 +01:00
Paul Brauner
ca31b1beab
restrict code drop and canton jars to 2.x (#17882) 2023-11-22 11:19:22 +01:00
Paul Brauner
f7dd1e6124
Stop downloading the canton opensource jar (#17877)
* stop downloading the canton opensource jar

* udpate obsolete README

* fix one remaining mention of @canton

* remove all mentions of canton_dep.bzlP
2023-11-22 08:36:41 +00:00
Paul Brauner
e4d8609515
try to reset the windows cache (#17825) 2023-11-15 02:05:42 +00:00
Gary Verhaegen
444536ba24
fix daily canton bump (#17781) 2023-11-08 16:30:00 +00:00
Paul Brauner
313b789731
Bump netty and grpc-netty (#17770)
* pin dependencies to json and add missing dep

* fix cyclic dep

* remove unused dep

* add missing dep to //ledger-api/testing-utils:testing-utils

* remove unused dep in //ledger/ledger-api-auth:ledger-api-auth

* remove more unused deps

* more dep fixes

* yet more dep fixing

* more fixing..

* more of the same

* hopefully the last deps to fix

* Bump the version of protobuf and fix everything that depends on it. Took shortcuts that I need to fix in a next commit, but would like to run the CI on this now that it compiles

* don't error out in the grpc-haskell patch

* remove obsolete patch

* patch absl to compile on mingw

* Add a patch to recognize the compiler

* Define _DNS_SD_LIBDISPATCH for macOS gRPC

* bump netty_tcnative_version according to https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty

* pin maven deps

* Fix macos linking errors 'dyld[xxx]: missing symbol called'

* Skip Darwin frameworks in package-app.sh

* pin stackage packages

* pin stackage windows deps

* use the netty version agreed on

* bump the windows global cache to try and debug the upb issue

* restart the CI after timeout

* clean up

* disable failing tests for now

* comment out unused code

* reset the windows machine name to 'default'

---------

Co-authored-by: Moisés Ackerman <6054733+akrmn@users.noreply.github.com>
2023-11-07 19:35:50 +01:00
Gary Verhaegen
442c57b5f4
docker: switch to jammy (#17766) 2023-11-07 12:39:32 +01:00
Remy
44169064ea
fix update_canton_ jobs (#17762) 2023-11-07 11:51:45 +01:00
Gary Verhaegen
00b28969b2
re-start publishing daml-sdk image (#17760)
Turns out some people depend on it. I still think they shouldn't, and we
should work with them to help them move away, but short-term the right
thing to do is to not block their upgrade.
2023-11-06 17:58:23 +01:00
Remy
dc0b2f71a6
mege bump_canton and update_canton_sources jobs (#17757) 2023-11-06 17:37:31 +01:00
Gary Verhaegen
28eadc6e69
fix CODEOWNERS & related files (#17579) 2023-10-16 18:37:14 +02:00
Remy
91b965bd8c
add readme to canton code drop (#17560) 2023-10-16 12:59:20 +02:00
Gary Verhaegen
4a84d2de3c
canton_drop: fix canton credentials (#17551) 2023-10-11 16:13:26 +00:00
Remy
0823af627e
fix name of canton update job (#17544) 2023-10-11 13:12:13 +02:00
Remy
1f31feac2b
Code drop of canton community (#17540)
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-10-10 11:29:37 +00:00
Paul Brauner
158cdd90d7
Fix the external name of daml3-script.dar to mention 2.dev (#17512)
* Fix the external name of daml3-script.dar to mention 2.dev

* make the compilation and distribution of daml3-script dars more future proof

* fix path in ci/copy-unix-release-artifacts.sh
2023-10-03 09:16:00 +00:00
Remy
623f305e9c
Move canton directory to let place for code drop (#17506) 2023-09-29 14:37:01 +00:00
Gary Verhaegen
33929d12ae
fix canton bump (#17494)
We've got a few failures recently that report not having delete access
on GCS. This should address those.
2023-09-27 15:22:44 +02:00
Gary Verhaegen
c1280e4439
run blackduck when intended (#17454)
That is, on the daily run and on blackduck-bump PRs.
2023-09-21 22:50:10 -04:00
azure-pipelines[bot]
7d74dc0aa9
bump canton to 2.8.0-snapshot.20230919.11183.0.v52763301 (#17457)
* bump canton to 2.8.0-snapshot.20230919.11183.0.v52763301

CHANGELOG_BEGIN
CHANGELOG_END

* fix canton url

---------

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
Co-authored-by: Gary Verhaegen <gary.verhaegen@digitalasset.com>
2023-09-20 18:39:59 +02:00
Gary Verhaegen
3d08291ae6
fix typo in bump-canton job (#17435) 2023-09-19 10:36:14 +00:00
Gary Verhaegen
82655f2f29
keep stable copies of Canton artifacts (#17415) 2023-09-18 18:16:24 +02:00
Gary Verhaegen
8494cff36a
blackduck update: do not fail if branch already exists (#17417) 2023-09-18 16:25:05 +02:00
azure-pipelines[bot]
78487e18a8
fix blackduck update PR run (#17402) 2023-09-15 15:42:44 +02:00
Gary Verhaegen
2dbfb68080
fix BlackDuck scan (#17400)
The latest udpate of the BlackDuck script broke our run. In order to get
a successful scan tomorrow, this PR:

- Pins us back on yesterday's script version, and
- Adds an auto-update mechanism.

This way, we get to stay reasonably up-to-date with automated update
PRs, but we also get to choose when we upgrade.
2023-09-14 16:29:39 -04:00
Gary Verhaegen
4bf7693f42
fix cache (#17377)
Looks like the issue was Bazel 5.2.0.
2023-09-08 10:31:42 +02:00
Gary Verhaegen
675a325cd3
fix Linux cache (macOS still seems broken) (#17369) 2023-09-06 21:21:56 +02:00
Gary Verhaegen
a87818464e
fix bazel cache use on CI (#17363) 2023-09-05 16:51:18 +00:00
Moisés Ackerman
6ae0e0111e
Upgrade to Bazel 5 (again) (#17319)
* 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
2023-09-01 15:15:36 +02:00
Samuel Williams
6146149a22
Expose daml3-script to sdk (#17291)
* Expose daml3-script to sdk

* Add warning to daml3-script
2023-08-24 10:42:47 +01:00
Samuel Williams
9179b2e7d0
Jar licensing (#17299)
* Add _distribute.jar target with correct license
Use it everywhere

* Fixes from review

* Change NOTICES to NOTICES.txt for consistency
2023-08-22 15:56:29 +01:00
Paul Brauner
21e8a5408e
Update slack_user_ids (#17251)
Add myself to daml/ci/slack_user_ids
2023-08-09 13:59:06 +02:00
Remy
ae596d7398
Revert "Disable temporary windows build" (#17192)
This reverts commit 908a39e55a.
2023-07-28 09:47:00 +00:00
Remy
9f9e25168d
Disable temporary windows build (#17186)
until we have windows back in the pipeline
2023-07-27 09:05:15 +00:00
Raphael Speyer
47d21fe717
JSON API: add PruningTest and make it pass (#17167)
If the ledger has been pruned more recently that the last cached copy, then attempting to fetch the changes since that last offset will fail, rending the relevant template(s) unqueryable. This PR detects that condition, clears the cache for the relevant template and queries again, which will refresh the cache with a fresh copy of the ACS for that template, and serve the query from that.

I also made some usability tweaks around running canton-ee tests, to help improve the dev experience for failures I came across while trying to run them. Specifically
* Use `--config=canton-ee` to opt into the tests which require canton-ee
* When downloading that EE from artifactory, provide better diagnostics if the required auth isn't set up.
2023-07-27 09:12:22 +10:00
Gary Verhaegen
d03ffb0329
fix bump_canton (#17166) 2023-07-24 13:19:05 +02:00
Gary Verhaegen
eda4698ced
enable manual cnaton bumps (#17155) 2023-07-20 14:59:26 +02:00
Gary Verhaegen
03a2d336d2
fix local canton for compat (#17146) 2023-07-19 12:18:58 +00:00
Gary Verhaegen
a6cb39d545
release: notify canton channel (#17151) 2023-07-19 14:04:32 +02:00
Gary Verhaegen
c71b781cc6
stop publishing daml-sdk image (#17132) 2023-07-17 17:21:12 +02:00
Samuel Williams
f82fb77102
Update tests to match canton changes (#17093) 2023-07-12 16:53:32 +01:00
Gary Verhaegen
af9ce9fc8e
delete old logs before starting (#17117) 2023-07-12 10:08:20 +00:00
Gary Verhaegen
3b9951bc7f
run m1 sometimes (#17099) 2023-07-12 11:31:38 +02:00