Skip to content

Commit

Permalink
ci debug
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeShimizu committed Jun 30, 2024
1 parent e2cd3fa commit 166c30f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v25
with:
extra_nix_config: |
trusted-public-keys = nix.casatta.it:HseKZh7436/vKXfZDBHbhr7wwAkzjLwY5BIq+OOrITg= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://nix.casatta.it https://cache.nixos.org/
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: "test"
run: nix develop --command make test-${{matrix.test-vector}}
- run: nix-shell --run "make test-bitcoin-cln"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OUTDIR=./out
TEST_BIN_DIR=${OUTDIR}/test-builds
PAYMENT_RETRY_TIME=10
PEERSWAP_TEST_FILTER="peerswap"
PEERSWAP_TEST_FILTER=""
GIT_COMMIT=$(shell git rev-list -1 HEAD)

BUILD_OPTS= \
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
inputs = {
# Pinning to revision 755b915a158c9d588f08e9b08da9f7f3422070cc
# - cln v24.05
# - lnd v0.18.0-beta
# - bitcoin v27.1
# Pinning to revision f54322490f509985fa8be4ac9304f368bd8ab924
# - cln v24.02.1
# - lnd v0.17.4-beta
# - bitcoin v26.0
# - elements v23.2.1
nixpkgs.url = "github:NixOS/nixpkgs/755b915a158c9d588f08e9b08da9f7f3422070cc";
nixpkgs.url = "github:NixOS/nixpkgs/f54322490f509985fa8be4ac9304f368bd8ab924";
flake-utils.url = "github:numtide/flake-utils";
# blockstream-electrs: init at 0.4.1 #299761
# https://github.com/NixOS/nixpkgs/pull/299761/commits/680d27ad847801af781e0a99e4b87ed73965c69a
Expand Down
2 changes: 1 addition & 1 deletion test/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/require"
)

const defaultLines = 30
const defaultLines = 1000

func IsIntegrationTest(t *testing.T) {
if os.Getenv("RUN_INTEGRATION_TESTS") != "1" {
Expand Down
1 change: 1 addition & 0 deletions testframework/clightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func NewCLightningNode(testDir string, bitcoin *BitcoinNode, id int) (*CLightnin
fmt.Sprintf("--bitcoin-datadir=%s", bitcoin.DataDir),
fmt.Sprintf("--developer"),
fmt.Sprintf("--allow-deprecated-apis=true"),
fmt.Sprintln("--disable-plugin=offers"),
}

// socketPath := filepath.Join(networkDir, "lightning-rpc")
Expand Down
4 changes: 2 additions & 2 deletions testframework/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ var TIMEOUT = setTimeout()

func setTimeout() time.Duration {
if os.Getenv("SLOW_MACHINE") == "1" {
return 420 * time.Second
return 100 * time.Second
}
return 150 * time.Second
return 100 * time.Second
}

func WriteConfig(filename string, config map[string]string, regtestConfig map[string]string, sectionName string) {
Expand Down

0 comments on commit 166c30f

Please sign in to comment.