Skip to content

Commit adaccff

Browse files
iohk-bors[bot]rvlpaweljakubasIOHKPiotr Stachyra
authored
1411: Add GitHub workflow for running Windows tests nightly r=rvl a=rvl # Issue Number Relates to #1283 # Overview Runs the prebuilt Windows tests on Windows Server 2016. This is run nightly for the master branch. The wine tests can be run on every PR. # Comments - There is a test failure which will disappear when we sort out #1373. - Other tests failures were resolved by #1536. - For testing purposes, I temporarily added the "push" build trigger. Roll back the temporary git commit before merging. - The launcher unit tests fail on GitHub CI but pass locally on Windows. Not sure why. - The test suites `cardano-wallet-launcher:unit` and `cardano-wallet-jormungandr:integration` are set to "continue-on-error" - meaning failures are ignored. 1530: Add latency benchmark for byron r=paweljakubas a=paweljakubas # Issue Number #1527 # Overview - [x] I have added first benchmark that works with just one scenario inside - [x] I have extended scenario with all endpoints to be tested - [x] I have enabled testing for both icarus and random wallets - [x] I have added more benchmarks conditions (txs and utxos) - [x] I have added the benchmark to nightly # Comments - Manual build on Buildkite: [cardano-wallet-nightly](https://buildkite.com/input-output-hk/cardano-wallet-nightly/builds?branch=paweljakubas%2F1527%2Fadd-latency-benchmark-for-byron) 1543: Better error message when trying to generate address on icarus wallet. r=piotr-iohk a=piotr-iohk # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> # Overview - e3d6036 Better error message when trying to generate address on icarus wallet. # Comments Was: ``` $ cardano-wallet-byron address create 3fe1acf86fefbf66b7481470ea81244eadde079d Please enter your passphrase: ***************** It looks like something unexpected went wrong. Unfortunately I don't yet know how to handle this type of situation. Here's some information about what happened: ``` is: ``` $ cardano-wallet-byron address create 3fe1acf86fefbf66b7481470ea81244eadde079d Please enter your passphrase: ***************** I cannot derive new unused address for this wallet type. Make sure to use Byron random wallet id. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: Pawel Jakubas <pawel.jakubas@iohk.io> Co-authored-by: IOHK <devops+stack-project@iohk.io> Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
4 parents cd1e1e7 + b86c7b2 + 2b10cc8 + 6ee1950 commit adaccff

File tree

15 files changed

+670
-17
lines changed

15 files changed

+670
-17
lines changed

.buildkite/bench-latency.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33

44
set -euo pipefail
55

6-
bench_name=bench-latency
6+
bench_name_jormungandr=bench-latency-jormungandr
7+
bench_name_byron=bench-latency-byron
78

89
echo "--- Build"
9-
nix-build -A benchmarks.cardano-wallet-jormungandr.latency -o $bench_name
10-
11-
echo "+++ Run benchmark"
10+
nix-build -A benchmarks.cardano-wallet-jormungandr.latency -o $bench_name_jormungandr
11+
nix-build -A benchmarks.cardano-wallet-byron.latency -o $bench_name_byron
1212

1313
# Note: the tracing will not work if program output is piped
1414
# to another process (e.g. "tee").
1515
# It says "Error: Switchboard's queue full, dropping log items!"
1616

17-
./$bench_name/bin/latency
17+
echo "+++ Run benchmark - byron"
18+
19+
./$bench_name_byron/bin/latency
20+
21+
echo "+++ Run benchmark - jormungandr"
22+
23+
./$bench_name_jormungandr/bin/latency

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Every night at 00:00UTC
2+
# Download the latest master branch build of windows testing bundle
3+
# and run it.
4+
5+
name: cardano-wallet Windows Tests
6+
7+
on:
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
tests:
13+
runs-on: windows-2016
14+
name: Run tests on Windows
15+
steps:
16+
- name: Fetch Windows testing bundle
17+
shell: powershell
18+
run: |
19+
$url = "https://hydra.iohk.io/job/Cardano/cardano-wallet/cardano-wallet-tests-win64/latest/download/1"
20+
$output = "cardano-wallet-tests-win64.zip"
21+
Invoke-WebRequest -Uri $url -OutFile $output
22+
Expand-Archive -LiteralPath $output -DestinationPath .
23+
Get-ChildItem
24+
- name: 'cardano-wallet-core:unit'
25+
run: '.\\cardano-wallet-core-test-unit.exe --color'
26+
- name: 'cardano-wallet-byron:unit'
27+
run: '.\\cardano-wallet-byron-test-unit.exe --color'
28+
- name: 'cardano-wallet-byron:integration'
29+
run: '.\\cardano-wallet-byron-test-integration.exe --color'
30+
timeout-minutes: 60
31+
- name: 'cardano-wallet-cli:unit'
32+
run: '.\\cardano-wallet-cli-test-unit.exe --color'
33+
- name: 'text-class:unit'
34+
run: '.\\text-class-test-unit.exe --color'
35+
- name: 'cardano-wallet-launcher:unit'
36+
run: '.\\cardano-wallet-launcher-test-unit.exe --color'
37+
continue-on-error: true
38+
- name: 'cardano-wallet-jormungandr:unit'
39+
run: '.\\cardano-wallet-jormungandr-test-unit.exe --color'
40+
- name: 'cardano-wallet-jormungandr:integration'
41+
run: '.\\cardano-wallet-jormungandr-test-jormungandr-integration.exe --color'
42+
continue-on-error: true
43+
timeout-minutes: 60

.weeder.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
- AnyAddressStateId
1111
- AnyAddressStateKey
1212
- AnyAddressStateProportion
13+
- section:
14+
- name: test:integration bench:latency
15+
- message:
16+
- name: Module reused between components
17+
- module:
18+
- Cardano.Wallet.Byron.Faucet
1319
- package:
1420
- name: cardano-wallet-core
1521
- section:
@@ -136,4 +142,3 @@
136142
- message:
137143
- name: Module not compiled
138144
- module: Cardano.Startup.Windows
139-

0 commit comments

Comments
 (0)