-
Notifications
You must be signed in to change notification settings - Fork 370
feat: use cronos store and rocksdb v9.11.2 #1200
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
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1200 +/- ##
==========================================
+ Coverage 31.02% 33.83% +2.80%
==========================================
Files 106 114 +8
Lines 18910 19209 +299
==========================================
+ Hits 5867 6499 +632
+ Misses 12000 11634 -366
- Partials 1043 1076 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f1c3be3
to
af0a887
Compare
780f284
to
39ea8ae
Compare
0651ea1
to
d0415ab
Compare
update cronos-store use go_1_24 update nix/sources.json add nix_path update nix/testenv.nix add poetry-lock ci use nixpksg 25.05 nix/rocksdb.nix
529449b
to
332fe51
Compare
.github/workflows/nix.yml
Outdated
submodules: true | ||
- uses: cachix/install-nix-action@fc6e360bedc9ee72d75e701397f0bb30dce77568 # v31.2 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if local build can pass we may not need to use unstable channel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I removed this, it encountered errors (it may be warnings).
https://github.com/crypto-org-chain/chain-main/actions/runs/17815005611/job/50646493618?pr=1200, open the link title.
error:
… while calling the 'import' builtin
at «string»:1:2:
1| (import <nixpkgs> {}).bashInteractive
| ^
… while realising the context of a path
… while calling the 'findFile' builtin
at «string»:1:9:
1| (import <nixpkgs> {}).bashInteractive
| ^
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
I want to remove these errors; howerver, there may be better approaches.
"description": "Convert poetry projects to nix automagically [maintainer=@adisbladis] ", | ||
"homepage": "", | ||
"owner": "nix-community", | ||
"owner": "a-sup", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the poetry2nix wheels 404 issue, if the upstream can't apply the fix we may need to fork it and apply it on our own repo, cc @thomas-nguy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the error you are getting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it encoutered errors
Trying to fetch with predicted URL: https://files.pythonhosted.org/packages/wheel/a/attrs/attrs-23.2.0-py3-none-any.whl curl: (22) The requested URL returned error: 404 error: builder for '/nix/store/dfnxx42m7jcqmw66m646zqx2bf0b08q6-attrs-23.2.0-py3-none-any.whl.drv' failed to produce output path for output 'out' at '/nix/store/dfnxx42m7jcqmw66m646zqx2bf0b08q6-attrs-23.2.0-py3-none-any.whl.drv.chroot/root/nix/store/wgvnnwdmhdg36kh8whl9bj4fn2m9waay-attrs-23.2.0-py3-none-any.whl' building '/nix/store/spmwnjqqr39g6mqqscg7lmkiyy8lk653-charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.drv'... error: Cannot build '/nix/store/hgrr0704gi7f7f90cryxmcn1bzjbl8dz-python3.11-attrs-23.2.0.drv'. Reason: 1 dependency failed. Output paths: /nix/store/4xrwkcvv987ksaj2dihw8qg51s1w0zfr-python3.11-attrs-23.2.0-dist /nix/store/jqdgp3rxzjdfvlxr3ys3z1c284bf2nl9-python3.11-attrs-23.2.0 error: Cannot build '/nix/store/0v631l33p9py55yf51q9vx0s0j2na805-python3-3.11.13-env.drv'. Reason: 1 dependency failed. Output paths: /nix/store/aafs4jb09k5nzkfp0v6sb655n8fq2vc9-python3-3.11.13-env error: Cannot build '/nix/store/xcz2rhc7aj3wazhpqvncw6554gxlh1qd-lint-ci.drv'. Reason: 1 dependency failed. Output paths: /nix/store/b0m5ck787xi5a1mw9wgf9508jq470f58-lint-ci error: build of '/nix/store/jaz1q35nrs6vx75f87k6xqs500xhkd3p-stdenv-linux.drv', '/nix/store/xcz2rhc7aj3wazhpqvncw6554gxlh1qd-lint-ci.drv' failed make: *** [Makefile:171: lint-ci] Error 1
(import ./build_overlay.nix) | ||
(pkgs: prev: { | ||
go = pkgs.go_1_23; | ||
go = pkgs.go_1_24; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it encountered errors
1030| go_1_23 = throw "Go 1.23 is end-of-life and 'go_1_23' has been removed. Please use a newer Go toolchain."; # Added 2025-08-13 | ^ 1031| gogs = throw '' error: Go 1.23 is end-of-life and 'go_1_23' has been removed. Please use a newer Go toolchain.
,
so I updated it.
"-DFAIL_ON_WARNINGS=${if stdenv.hostPlatform.isMinGW then "NO" else "YES"}" | ||
] ++ lib.optional (!enableShared) "-DROCKSDB_BUILD_SHARED=0"; | ||
] | ||
++ lib.optionals stdenv.hostPlatform.isWindows [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it encountered errors
rocksdb-x86_64-w64-mingw32> /build/source/port/win/env_win.cc:921:3: error: 'FILE_ID_INFO' was not declared in this scope; did you mean 'SIID_INFO'? rocksdb-x86_64-w64-mingw32> 921 | FILE_ID_INFO FileInfo_1; rocksdb-x86_64-w64-mingw32> | ^~~~~~~~~~~~ rocksdb-x86_64-w64-mingw32> | SIID_INFO rocksdb-x86_64-w64-mingw32> /build/source/port/win/env_win.cc:922:54: error: 'FileIdInfo' was not declared in this scope; did you mean 'FileNameInfo'? rocksdb-x86_64-w64-mingw32> 922 | BOOL result = GetFileInformationByHandleEx(file_1, FileIdInfo, &FileInfo_1, rocksdb-x86_64-w64-mingw32> | ^~~~~~~~~~ rocksdb-x86_64-w64-mingw32> | FileNameInfo rocksdb-x86_64-w64-mingw32> /build/source/port/win/env_win.cc:922:67: error: 'FileInfo_1' was not declared in this scope rocksdb-x86_64-w64-mingw32> 922 | BOOL result = GetFileInformationByHandleEx(file_1, FileIdInfo, &FileInfo_1, rocksdb-x86_64-w64-mingw32> | ^~~~~~~~~~ rocksdb-x86_64-w64-mingw32> /build/source/port/win/env_win.cc:931:15: error: expected ';' before 'FileInfo_2' rocksdb-x86_64-w64-mingw32> 931 | FILE_ID_INFO FileInfo_2; rocksdb-x86_64-w64-mingw32> | ^~~~~~~~~~~ rocksdb-x86_64-w64-mingw32> | ; rocksdb-x86_64-w64-mingw32> /build/source/port/win/env_win.cc:932:62: error: 'FileInfo_2' was not declared in this scope
so I updated it.
github.com/crypto-org-chain/cronos/versiondb => github.com/crypto-org-chain/cronos/versiondb v0.0.0-20241028093154-0f94930c27ce | ||
github.com/crypto-org-chain/cronos-store/memiavl => github.com/crypto-org-chain/cronos-store/memiavl v0.0.0-20250912125026-c998a90e2881 | ||
github.com/crypto-org-chain/cronos-store/store => github.com/crypto-org-chain/cronos-store/store v0.0.0-20250912125026-c998a90e2881 | ||
github.com/crypto-org-chain/cronos-store/versiondb => github.com/crypto-org-chain/cronos-store/versiondb v0.0.0-20250912125026-c998a90e2881 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use github.com/crypto-org-chain/cronos-store instead of these 3 independent components? Do we bump these components' version separately or just the cronos-store version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see previously bump these component's version, but actually they use the same commit hash.
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
ref crypto-org-chain/cronos-store#5
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)