cosmos.nix
cosmos.nix copied to clipboard
feat: make check optional in release
assuming all packages are release, not sure why i have in nix run tests always, now I get
2024-03-19T22:36:58.4253330Z building '/nix/store/2whfv0bvayzhhgrg1bjrhgq1sij264y6-gaia-v10.0.2.drv'...
2024-03-19T22:37:37.6837330Z error: builder for '/nix/store/5qr4qx1dkl4ih1agqf6m0p59imlryad6-crescent-v1.0.0-rc3.drv' failed with exit code 1;
2024-03-19T22:37:37.6933060Z last 25 log lines:
2024-03-19T22:37:37.7033530Z > "send_enabled": [
2024-03-19T22:37:37.7135800Z > {
2024-03-19T22:37:37.7239380Z > "denom": "stake",
2024-03-19T22:37:37.7335780Z > "enabled": true
2024-03-19T22:37:37.7337510Z > }
2024-03-19T22:37:37.7338900Z > ],
2024-03-19T22:37:37.7339590Z > "default_send_enabled": true
2024-03-19T22:37:37.7340000Z > }
2024-03-19T22:37:37.7340760Z > --- FAIL: TestRandomizedGenState (0.00s)
2024-03-19T22:37:37.7341390Z > genesis_test.go:58:
2024-03-19T22:37:37.7343020Z > Error Trace: genesis_test.go:58
2024-03-19T22:37:37.7344050Z > Error: Not equal:
2024-03-19T22:37:37.7345220Z > expected: "cosmos1p8wcgrjr4pjju90xg6u9cgq55dxwq8j7u4x9a0"
2024-03-19T22:37:37.7409100Z > actual : "cosmos1ghekyjucln7y67ntx7cf27m9dpuxxemn4c8g4r"
2024-03-19T22:37:37.7409800Z >
2024-03-19T22:37:37.7410290Z > Diff:
2024-03-19T22:37:37.7411370Z > --- Expected
2024-03-19T22:37:37.7411940Z > +++ Actual
2024-03-19T22:37:37.7412550Z > @@ -1 +1 @@
2024-03-19T22:37:37.7413480Z > -cosmos1p8wcgrjr4pjju90xg6u9cgq55dxwq8j7u4x9a0
2024-03-19T22:37:37.7414370Z > +cosmos1ghekyjucln7y67ntx7cf27m9dpuxxemn4c8g4r
2024-03-19T22:37:37.7414900Z > Test: TestRandomizedGenState
2024-03-19T22:37:39.5668190Z > FAIL
2024-03-19T22:37:39.5669350Z > FAIL github.com/crescent-network/crescent/x/claim/simulation 0.060s
2024-03-19T22:37:39.5670430Z > FAIL
2024-03-19T22:37:39.5672860Z For full logs, run 'nix log /nix/store/5qr4qx1dkl4ih1agqf6m0p59imlryad6-crescent-v1.0.0-rc3.drv'.
2024-03-19T22:37:44.5577920Z error (ignored): error: cannot unlink '/private/tmp/nix-build-gaia-v10.0.2.drv-0/go-cache': Directory not empty
in CI.
So may be run tests only in some test mode, but not in release.
In Flakes it is possible to provide test/debug/release input overrides