Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry picked network changes for cardano-node-1.35.5 release #4120

Merged
merged 139 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
5ae90f8
improve/add documentation
mtullsen May 17, 2022
a079fea
GR-FIXME: comments and fixme's from Galois Review
mtullsen May 17, 2022
8396e9d
refactors
coot Jun 7, 2022
2c2cafd
refactor P2P api
coot Jun 7, 2022
eb2a282
Address review comments.
coot Jun 20, 2022
5738334
Address comments regarding ControlChannel
coot Jun 20, 2022
d788abf
Refused renaming of ProtocolTemperature
coot Jun 20, 2022
b85ed90
Addressed review comments.
coot Jun 20, 2022
49d3b2d
Renamed Bundle as TemperatureBundle
coot Jun 20, 2022
78a7d87
Race threads via `foldl1`.
coot Jun 20, 2022
43d1b6d
Addressed review comments in diffusion
coot Jun 20, 2022
2679ab9
Move P2P snocket utils to Ouroboros.Network.Diffusion.Utils module
coot Jun 20, 2022
684e9e1
Removed always true assertion
coot Jun 20, 2022
48e7251
Renamed splitPeers and partitionPeer
coot Jun 20, 2022
391cacb
Fixed TOC of Ouroboros.Network.PeerStateActions haddocks
coot Jun 20, 2022
e9d6ed5
Removed PeerState date type
coot Jun 20, 2022
af892dd
Change type signature of withPeerSelectionActions
coot Jun 21, 2022
92fd734
Renamed TokProtocolTemperature as SingProtocolTemperature
coot Jun 21, 2022
5611db5
showConnectionEvents: removed unnecessary brackets
coot Jun 21, 2022
dd0124a
JobPool: renamed collect to waitForJob
coot Jun 21, 2022
79f9b98
JobPool: improve haddocks, clean the code
coot Jun 21, 2022
8d706f4
Peer list lifetime constants, improved haddocks.
coot Jun 28, 2022
d438b16
Added server_CONNABORTED_DELAY constant.
coot Jun 28, 2022
f2583c7
Move a comment to the right place
coot Jun 28, 2022
bd9addd
Configurable inbound-governor idle timeout
coot Jun 28, 2022
6ae8cb4
Simplify DebugPeerSelection type using existential type variable
coot May 31, 2022
552abfe
Added initiator mini-protocols result type
coot May 31, 2022
d0a5273
ExitPolicy - compute reconnect delay
coot May 31, 2022
520ee0f
Use ExitPolicy to compute reconnection delay
coot Jun 2, 2022
c600064
Pass reconnect error delay through PeerSelectionPolicy
coot Jun 2, 2022
3f211eb
Updated ouroboros-network:test component
coot Jun 2, 2022
890f45a
Updated ouroboros-consensus
coot Jun 2, 2022
946c9d5
Updated ouroboros-consensus-test
coot Jun 2, 2022
b48a24e
Fixed code layout
coot Jun 6, 2022
1ce87f1
diffusion-test: pass seed through SimArgs
coot Jul 15, 2022
eca5b7a
Simulation.Node: renamed qualified import of NodeKernel
coot Jul 15, 2022
0e1c18a
Fixed show instances of some types
coot Jul 15, 2022
cfedfda
Organise exports for the testnet simulation
coot Jul 15, 2022
aff6c30
Fixed prop_diffusion_target_active_local_above
coot Jul 15, 2022
abf239c
inbound-governor: code style
coot Jul 13, 2022
7f9d7d3
outbound-governor: fixed haddock comments
coot Jul 7, 2022
348f8bd
peer-metrics: use a single TVar for upstreameness and fetchyness metrics
coot Jul 7, 2022
02e12bc
peer-metrics: added export list, improved haddocks.
coot Jul 7, 2022
59d789b
peer-metrics: removed getHeaderMetrics and getFetchedMetrics
coot Jul 7, 2022
5466558
peer-metrics: change IntPSQ qualified name
coot Jul 7, 2022
b0296f2
churn: added configurable churn interval
coot Jul 8, 2022
d819948
peer-metrics: added PeerMetricsConfiguration
coot Jul 8, 2022
6d3fc2c
peer-metrics: use averages to instantiate the peer metrics
coot Aug 9, 2022
e27ec1d
TraceLabelPeer: added Bifunctor instance
coot Jul 21, 2022
d4317ad
data-script: Added maybeStepScript and Delay
coot Jul 27, 2022
dd7697f
peer-metrics: resolve ties of hot demotion with slot number
coot Jul 30, 2022
05fc9c0
peer-metrics: added tests
coot Jul 27, 2022
6b81b6a
peer-selection: Improved haddock of 'TracePromoteWarmLocalPeers'
coot Aug 8, 2022
dd47a9a
peer-metrics: code style
coot Aug 8, 2022
240a532
Added FetchClientRegistry to NodeKernel
bolt12 Jun 24, 2022
d4aaf7d
Added Hashable Orphan instances
bolt12 Jun 28, 2022
95194d1
Added header body-split block-fetch to diffusion
bolt12 Jun 28, 2022
51b53e9
Added HotDiffusionScript
bolt12 Jun 30, 2022
0174a96
Remove time limit on events
bolt12 Jul 4, 2022
5995ef2
stylish
bolt12 Jul 26, 2022
e26ffae
Disables diffusion tests in windows
bolt12 Aug 1, 2022
693f1b7
Fixes #3935
bolt12 Aug 4, 2022
a8355e2
Reinitialise dns library
coot Aug 19, 2022
daec1f5
asyncResolverResource: use resolverResource on Windows
coot Aug 19, 2022
e4c7d02
dns-actions: fixed a typo
coot Aug 20, 2022
34b911b
dns-actions: provide getResolver function
coot Aug 20, 2022
12f62d8
dns-actions: make internal loops tail recursive
coot Aug 20, 2022
37e2d24
Fixed stylish-haskell parsing error
coot Aug 22, 2022
8bba172
Rebuild storage-test component
coot Aug 22, 2022
a849413
Updated network dependency
coot Aug 28, 2022
1cb249d
snocket: various stylistic changes
coot Aug 28, 2022
05efeba
snocket: do not configure sockets in bind method
coot Aug 28, 2022
4251787
connection-manager: add a method to configure connection sockets
coot Aug 28, 2022
44daa27
socket: added methods to configure sockets
coot Aug 29, 2022
b3756b6
subscription: exception handling
coot Aug 30, 2022
c10c3b8
subscription: configure sockets
coot Aug 30, 2022
1e17115
subscription: enhance test output
coot Aug 31, 2022
c0ab8f8
rethrow-policies: fixed typos
coot Sep 20, 2022
72ace21
connection-handler: rethrow exceptions using ExceptionInHandler
coot Sep 19, 2022
ece20e3
ouroboros-newtork-framework: changed ExceptionInHandler
coot Sep 20, 2022
7bfcf83
ouroboros-consensus: added top level error tracer
coot Sep 20, 2022
d28e77f
diffusion: DiffusionTracer
coot Sep 22, 2022
7bedf43
Updated CHANGELOG files
coot Sep 20, 2022
0c75890
Use newer version of io-sim
coot Sep 24, 2022
833eacc
connection-manager: reworded some comments
coot Oct 7, 2022
0a3c786
peer-state-actions: make monitorPeerSelection non-blocking
coot Oct 9, 2022
5e31046
peer-state-actions: use updateUnlessCold
coot Oct 5, 2022
c7e6be3
peer-state-actions: use epErrorDelay
coot Oct 9, 2022
b3ef894
exit-policy: derive semigroup via Max
coot Oct 9, 2022
a00fc83
exit-policy: derive Fractional instance for ReconnectDelay
coot Oct 9, 2022
1eb289e
peer-selection: trace reconnect delay with 'TraceDemoteAsynchronous'
coot Oct 9, 2022
62e4461
peer-selection: refactor monitoring connections
coot Oct 9, 2022
4b08411
peer-selection: added localRoots to PeerSelectionCounters
coot Oct 5, 2022
2370e5c
Updated docs/interface-CHANGELOG.md file
coot Oct 11, 2022
d259c16
peer-selection: throw an exception when monitorPeerSelection blocks
coot Oct 12, 2022
6fbd907
Refactored DiffusionScript
bolt12 Sep 13, 2022
76029f8
Stylish
bolt12 Sep 14, 2022
6531f05
Update ouroboros-network/test/Test/Ouroboros/Network/Testnet/Simulati…
bolt12 Oct 19, 2022
567d9d5
connection-manager: haddocks, code style & typos
coot Oct 17, 2022
829485c
net-sim: exported WithAddr
coot Oct 17, 2022
4df6633
net-sim: protect from establishing connection twice
coot Oct 14, 2022
d0ca5ed
net-sim: code cleanup
coot Oct 14, 2022
9fee29e
diffusion-sim: added prop_diffusion_target_active_local_above
coot Oct 11, 2022
a4a682a
diffusion-sim: reproduce peer-state-action bug
coot Oct 17, 2022
ede86e9
diffusion-sim: set keep-alive and ping-pong intervals
coot Oct 17, 2022
7aaf3ff
diffusion-sim: refactor how a tracer is used
coot Oct 13, 2022
1817774
diffusion-sim: fix ping pong time limits
coot Oct 14, 2022
674fa78
diffusion-sim: cleanup tracers
coot Oct 14, 2022
63185dc
diffusion-sim: added debugTracer
coot Oct 17, 2022
5512240
peer-state-actions: export traces
coot Oct 18, 2022
bac4161
signals: do not ignore tail in keyedTimeout
coot Oct 18, 2022
263fa74
signals: added fromEventsWith
coot Oct 20, 2022
86722da
diffusion-sim: added async demotion test
coot Oct 18, 2022
9e798ac
diffusion-sim: refactor test cases
coot Oct 19, 2022
ad66729
diffusion-test: use more relaxed imports
coot Oct 20, 2022
52ce688
Fixed a few typos and code layout
coot Oct 25, 2022
91e457e
DNSActions: refactor code
coot Oct 25, 2022
1a5448d
dns-actions: make sure TTLs are strictly greater than 0
coot Oct 25, 2022
50f533a
Support NodeToNodeV_10
coot Jul 5, 2022
15decad
Fix chocolatey CI error
amesgen Jul 13, 2022
ddb2b7e
Windows Github Actions now use MSYS2
jasagredo Jul 15, 2022
f3e41f0
Fix GH Actions Windows CI caching
amesgen Jul 19, 2022
678fe15
Updated versions of github actions
coot Sep 1, 2022
a49f806
github-actions: use `ubuntu-latest`
coot Sep 20, 2022
93797ad
Fix GH Actions Windows CI: switch from pkgconf to pkg-config
amesgen Oct 6, 2022
b1a9943
github-actions: update cabal before checking out the repository
coot Sep 27, 2022
b7820c4
Run GitHub Actions on pull requests
coot Oct 19, 2022
0f56618
Update io-sim & its bounds
coot Oct 31, 2022
80f47b9
Update typed-protocols & its bounds
coot Oct 31, 2022
fe28e03
peer-selection: added TraceDemoteLocalAsynchronous trace
coot Nov 3, 2022
3b337a1
Fixed stylish-haskell
coot Nov 3, 2022
224f9ec
github-actions: use $GITHUB_OUTPUT variable
coot Nov 3, 2022
5f8cabe
github-actions: fixed a installation failure on Windows
coot Nov 4, 2022
b78f805
Use newer version of io-classes, io-sim and strict-stm
coot Oct 26, 2022
f150eb7
Updated typed-protocols
coot Oct 26, 2022
c7a19c1
EarlyExit - removed unused pragma
coot Oct 27, 2022
e39ce07
Bump versions of packages
coot Nov 7, 2022
56f8fdd
Updated dependencies to match `cardano-node@release/1.35`
coot Nov 7, 2022
8e3b963
crypto components: add secp256k1 to pkgconfig
disassembler Nov 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
257 changes: 110 additions & 147 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,222 +1,185 @@
name: Haskell CI

on: [push]
on:
pull_request:
push:
branches:
- 'bors/*'

jobs:
build:
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash
shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash' }}

strategy:
fail-fast: false
matrix:
ghc: ["8.10.7"]
os: [ubuntu-20.04, windows-latest]
os: [ubuntu-latest, windows-latest]

env:
# current ref from: 27.02.2022
SECP256K1_REF: ac83be33d0956faf6b7f61a60ab524ef7d6a473a

steps:
- name: Install Haskell
uses: haskell/actions/setup@v1
- name: "WIN: Setup MSYS2 and libraries"
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
base-devel
autoconf-wrapper
autoconf
automake
libtool
make
git
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-libsodium
mingw-w64-x86_64-jq

- name: "WIN: Setup pkg-config"
if: runner.os == 'Windows'
run: |
pacman --noconfirm -S mingw-w64-x86_64-pkg-config

- name: "LINUX: Setup haskell"
if: runner.os != 'Windows'
uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 3.6.2.0

- name: Show Haskell tool versions
run: |
ghc --version
cabal --version

- name: Select build directory
- name: "WIN: Setup Haskell"
id: win-setup-haskell
if: runner.os == 'Windows'
run: |
if [ "$OS" == Windows_NT ]; then
CABAL_BUILDDIR="D:\\a\\_temp\\dist"
else
CABAL_BUILDDIR="dist-newstyle"
fi

echo "CABAL_BUILDDIR=$CABAL_BUILDDIR"
echo "CABAL_BUILDDIR=$CABAL_BUILDDIR" >> $GITHUB_ENV
# see https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | \
BOOTSTRAP_HASKELL_NONINTERACTIVE=1 \
BOOTSTRAP_HASKELL_ADJUST_CABAL_CONFIG=1 \
BOOTSTRAP_HASKELL_ADJUST_BASHRC=1 \
BOOTSTRAP_HASKELL_GHC_VERSION="${{ matrix.ghc }}" \
BOOTSTRAP_HASKELL_CABAL_VERSION="3.6.2.0" \
sh

- name: Set cache version
run: echo "CACHE_VERSION=9w76Z3Q" >> $GITHUB_ENV
# MSYS2 doesn't inherit $GITHUB_PATH so this is needed
cat <(echo "source /c/ghcup/env") ~/.bashrc > ~/.bashrc.new
mv ~/.bashrc.new ~/.bashrc

- name: Install pkgconfiglite
if: matrix.os == 'windows-latest'
run: choco install -y pkgconfiglite
source ~/.bashrc

- name: Install libsodium (Windows)
if: matrix.os == 'windows-latest'
env:
RUNNER_TEMP: ${{ runner.temp }}
run: |
echo "RUNNER_TEMP=$RUNNER_TEMP"
cd "$RUNNER_TEMP"
# There is an issue with crt libraries, fixed by prepending the ghc
# mingw32 libraries directory to every other library directory.
echo "# Original cabal config extra-lib-dirs"
grep extra-lib-dirs /c/cabal/config

RUNNER_TEMP_FWD="$(echo "$RUNNER_TEMP" | sed 's|\\|/|g')"
sed -i 's/C:\\msys64\\mingw64\\lib/C:\\ghcup\\ghc\\8.10.7\\mingw\\x86_64-w64-mingw32\\lib, C:\\msys64\\mingw64\\lib/g' /c/cabal/config

curl -Ls \
--connect-timeout 5 \
--max-time 10 \
--retry 5 \
--retry-delay 0 \
--retry-max-time 40 \
https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-mingw.tar.gz -o libsodium-1.0.18-mingw.tar.gz
echo "# Modified cabal config extra-lib-dirs"
grep extra-lib-dirs /c/cabal/config

tar zxvf libsodium-1.0.18-mingw.tar.gz
sed -i "s|/d/a/1/s/|$RUNNER_TEMP_FWD\/|g" libsodium-win64/lib/pkgconfig/libsodium.pc
ghc --version
cabal --version
echo "cabal-store=$(dirname $(cabal --help | tail -1 | tr -d ' '))\\store" >> $GITHUB_OUTPUT

export PKG_CONFIG_PATH="$(readlink -f libsodium-win64/lib/pkgconfig | sed 's|^/d|D:|g' | tr / '\\')"
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
- name: Update Hackage index
run: cabal update

export LIBSODIUM_PATH="$(readlink -f libsodium-win64/bin | sed 's|^/d|D:|g' | tr / '\\')"
echo "LIBSODIUM_PATH=$LIBSODIUM_PATH"
echo "$LIBSODIUM_PATH" >> $GITHUB_PATH
- name: Set cache version
run: echo "CACHE_VERSION=20220719" >> $GITHUB_ENV

- name: Install build environment
if: matrix.os == 'ubuntu-20.04'
- name: "LINUX: Install build environment (apt-get)"
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get -y install libsodium23 libsodium-dev
sudo apt-get -y install libsystemd0 libsystemd-dev
sudo apt-get -y remove --purge software-properties-common
sudo apt-get -y autoremove

- name: Install secp256k1 (Linux)
if: matrix.os == 'ubuntu-20.04'
- name: "LINUX: Install build environment (for secp256k1)"
if: runner.os == 'Linux'
run: |
sudo apt-get -y install autoconf automake libtool
mkdir secp256k1-sources
cd secp256k1-sources
git clone https://github.com/bitcoin-core/secp256k1.git
cd secp256k1
git reset --hard $SECP256K1_REF
./autogen.sh
./configure --prefix=/usr --enable-module-schnorrsig --enable-experimental
make
make check
sudo make install
cd ../..

- name: Install secp256k1 (Windows)
if: matrix.os == 'windows-latest'
env:
RUNNER_TEMP: ${{ runner.temp }}
echo "CI_SECP_FLAGS=--prefix=/usr" >> $GITHUB_ENV
echo "CI_SECP_INSTALL_CMD=sudo" >> $GITHUB_ENV

- name: "Install secp256k1"
run: |
echo "RUNNER_TEMP=$RUNNER_TEMP"
cd "$RUNNER_TEMP"

RUNNER_TEMP_FWD="$(echo "$RUNNER_TEMP" | sed 's|\\|/|g')"

curl -Ls \
--connect-timeout 5 \
--max-time 10 \
--retry 5 \
--retry-delay 0 \
--retry-max-time 40 \
https://hydra.iohk.io/job/Cardano/haskell-nix/windows-secp256k1/latest/download/1 -o secp256k1.zip
mkdir secp256k1
cd secp256k1
unzip ../secp256k1.zip
cd ..
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH;$(readlink -f secp256k1/lib/pkgconfig | sed 's|^/d|D:|g' | tr / '\\')"
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
export SECP256K1_PATH="$(readlink -f secp256k1/bin | sed 's|^/d|D:|g' | tr / '\\')"
echo "SECP256K1_PATH=$SECP256K1_PATH"
echo "$SECP256K1_PATH" >> $GITHUB_PATH

- name: Set up temp directory
env:
RUNNER_TEMP: ${{ runner.temp }}
git clone https://github.com/bitcoin-core/secp256k1
( cd secp256k1
git switch $SECP256K1_REF --detach
./autogen.sh
./configure $CI_SECP_FLAGS --enable-module-schnorrsig --enable-experimental
make
make check
$CI_SECP_INSTALL_CMD make install
)

- uses: actions/checkout@v3

- name: "Configure cabal.project.local"
if: runner.os != 'Windows'
run: |
echo "TMPDIR=$RUNNER_TEMP" >> $GITHUB_ENV
echo "TMP=$RUNNER_TEMP" >> $GITHUB_ENV
cp .github/workflows/cabal.project.local.Linux cabal.project.local

- uses: actions/checkout@v2

- name: Update Hackage index
run: cabal update

- name: Cabal Configure
run: cabal --builddir="$CABAL_BUILDDIR" configure --enable-tests
- name: "Configure cabal.project.local Windows"
if: runner.os == 'Windows'
run: |
cp .github/workflows/cabal.project.local.Windows cabal.project.local

- name: Record dependencies
id: record-deps
run: |
cabal build all --dry-run
cat dist-newstyle/cache/plan.json | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
date > date.txt
echo "weeknum=$(/bin/date -u "+%W")" >> $GITHUB_OUTPUT

- uses: actions/cache@v2
name: Cache cabal store
- uses: actions/cache@v3
name: "Cache `cabal store`"
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: cache-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
restore-keys: |
cache-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
cache-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}

- name: Use cabal.project.local.ci
run: |
cat ./cabal.project.local.ci >> ./cabal.project.local

cat >> cabal.project.local <<EOF
package cardano-crypto-praos
flags: -external-libsodium-vrf
EOF
path: ${{ runner.os == 'Windows' && steps.win-setup-haskell.outputs.cabal-store || steps.setup-haskell.outputs.cabal-store }}
key: cache-dependencies-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
restore-keys: cache-dependencies-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}

cat ./cabal.project.local
- uses: actions/cache@v3
name: "Cache `dist-newstyle`"
with:
path: |
dist-newstyle
!dist-newstyle/**/.git
key: cache-dist-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ steps.record-deps.outputs.weeknum }}
restore-keys: cache-dist-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}

- name: Install happy
run: |
cabal --builddir="$CABAL_BUILDDIR" install happy --install-method=copy

- name: Build dependencies
run: cabal --builddir="$CABAL_BUILDDIR" build --only-dependencies all

- name: Print logs
if: always()
run: |
for x in $(find 'C:\Users\runneradmin\AppData\Roaming\cabal\logs' -name '*.log'); do
echo "==== $x ===="
cat "$x"
done

- name: Set checkinvariant flag
run: |
cat >> cabal.project.local <<EOF
package io-classes
flags: +checktvarinvariant
EOF

cat ./cabal.project.local
run: cabal build --only-dependencies all

- name: Build projects [build]
run: cabal --builddir="$CABAL_BUILDDIR" build all
run: cabal build all

# Test network packages

- name: ntp-client [test]
run: cabal --builddir="$CABAL_BUILDDIR" run ntp-client:test
run: cabal run ntp-client:test

- name: network-mux [test]
run: cabal --builddir="$CABAL_BUILDDIR" run network-mux:test
run: cabal run network-mux:test

- name: ourobors-network-testing [test]
run: cabal --builddir="$CABAL_BUILDDIR" run ouroboros-network-testing:test
run: cabal run ouroboros-network-testing:test

# issue: #1818
- name: ourobors-network-framework [test]
run: cabal --builddir="$CABAL_BUILDDIR" run ouroboros-network-framework:test -- -p '$0 != "typed-protocols.Socket.socket send receive IPv4"'
run: cabal run ouroboros-network-framework:test -- -p '$0 != "typed-protocols.Socket.socket send receive IPv4"'

- name: ouroboros-network [test]
run: cabal --builddir="$CABAL_BUILDDIR" run ouroboros-network:test
run: cabal run ouroboros-network:test

# Consensus tests take too long on GitHub's Azure machines
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
max-backjumps: 5000
reorder-goals: True
ignore-project: False
tests: True

package Win32-network
ghc-options: -Werror
Expand All @@ -9,14 +11,14 @@ package ntp-client
ghc-options: -Werror
flags: +demo

package io-sim-classes
ghc-options: -Werror
flags: +asserts

package io-sim
ghc-options: -Werror
flags: +asserts

-- Add strcittvar check
package io-classes
flags: +checktvarinvariant

package monoidal-synchronisation
ghc-options: -Werror

Expand All @@ -43,3 +45,6 @@ package ouroboros-network

package cardano-client
ghc-options: -Werror

package cardano-crypto-praos
flags: -external-libsodium-vrf
Loading