daml/ci
Moritz Kiefer 631ed3e891
Bump timeouts in compat tests (#6689)
This bumps the timeout of the compat tests on PRs to 360 minutes
matching other jobs on a PR (we mainly hit this if ghc-lib is rebuilt)
and the timeout on the daily jobs to 720 minutes (we hit this if
_everything_ is rebuilt).

I am slightly worried about the timeout on the daily job. After having
taken a look at it, there are a few reasons how we ended up here:

1. We started including more tests, e.g., sandbox-classic. Not much we
   can do here, those tests are useful.

2. We have a very large number of snapshots for 1.3.0. There are a few
   reasons for this:

   1. Timing: We branched off early for the 1.2.0 release so the first
      snapshot for 1.3 was on June 3th. For 1.4 it looks like the first
      snapshot will be on July 15th so that’s roughly 2 extra
      snapshots just due to timing.

   2. Additional snapshots: We had one broken snapshot due to a broken
      VSCode extension that we didn’t delete (probably not worth doing
      at this point). We also had to backport to an old snapshot which
      resulted in another extra snapshot. We also had one extra
      snapshot which was supposed to be the RC but wasn’t since the
      ANF revert needed to go in.

   The only thing that is clearly useless is the one broken snapshot
   but that doesn’t change things that much. I see 2 orthogonal
   options for improving this assuming we agree that the current
   runtime is worryingly high.

   1. Prune snapshots more aggressively, e.g., only include the last 3
      snapshots. That’s a pretty arbitrary decision but it would
      enforce a hard limit.

   2. Reduce test combinations. E.g., only test snapshots vs stable
      releases but not snapshots vs snapshots.

3. We end up forcing a full build quite frequently. Here are just 2
   examples of how we’ve done that so far.

   1. Upgrade rules_haskell. Basically all tests are run by a Haskell
      binary so this forces a full rebuild.

   2. Change runfiles of `daml`.

I don’t think there is much we can do about 1 or 3 which leaves us
with 2. One not entirely unreasonable option is to just do nothing. We
did have periods where things went pretty smoothly for the most part
and each month we reset to a much smaller number of releases (we also
have to start throwing out old stable releases at some
point). Otherwise reducing the number of test combinations seems the
most promising option to me.

changelog_begin
changelog_end
2020-07-10 12:34:53 +00:00
..
cron Bump timeouts in compat tests (#6689) 2020-07-10 12:34:53 +00:00
da-ghc-lib Update ghc-lib, da-ghc-master-8.8.1 (#6460) 2020-06-23 08:29:16 -04:00
docker/daml-sdk Add /etc/nsswitch.conf to our Dockerfile (#5882) 2020-05-07 09:44:44 +02:00
patch_bazel_windows Sort files when calculating CACHE_KEY (#6173) 2020-05-31 22:02:13 +02:00
build-unix.yml Use Sandbox Classic as DAML on SQL (#6095) 2020-05-27 08:31:27 +02:00
build-windows.yml trigger all releases from master (#6016) 2020-05-19 19:18:10 +02:00
check-changelog.sh enable patch releases (#5584) 2020-04-16 17:50:55 +02:00
clear-shared-segments-macos.yml document shared memory segment issue (#6546) 2020-06-30 17:48:14 +02:00
compatibility_ts_libs.yml Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
compatibility-windows.yml Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
compatibility.yml Include create-daml-app tests in compatibility tests (#5945) 2020-05-13 10:39:51 +02:00
configure-bazel.sh Reset windows cache (#6604) 2020-07-03 16:36:35 +00:00
daily_tell_slack.yml fix error message on daily compat failure (#6337) 2020-06-14 22:52:57 +02:00
dev-env-install.sh Fix nix installation (#6400) 2020-06-18 10:34:08 +02:00
dev-env-push.py replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
postgresql.conf CI: Increase the PostgreSQL connections from 100 to 200. (#6647) 2020-07-08 10:49:11 +00:00
report-end.yml replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
report-start.yml replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
slack_user_ids Notify Sofia on #team-daml-ci (#5487) 2020-04-08 09:31:54 +00:00
tell-slack-failed.yml fix tell-slack-failed CI "function" (#5670) 2020-04-22 15:21:04 +02:00
windows-diagnostics.ps1 windows: CI agent diagnostics (#1146) 2019-05-15 11:59:56 +02:00